Using programs and commands that do not have a graphical user interface (GUI) but are rather controlled by typing text commands into a terminal program, or shell.

learn more… | top users | synonyms (2)

1
vote
3answers
26 views

Missing bash prompt

My bash prompt is missing as shown on the image. I'm not even sure how to open the .bash_profile since dot files are hidden in the finder. I restarted the machine to no avail.
0
votes
2answers
36 views

Are there replacements for the reg commad on Mac OS X 10.9

I believe reg existed on 10.8 and lower as documented here - https://developer.apple.com/library/prerelease/mac/documentation/Darwin/Reference/ManPages/man1/reg.1.html However, in OS X 10.9 I only ...
2
votes
0answers
24 views

How do I use non-“legacy” launchctl commands to load and unload plists?

I have some plist files in ~/Library/LaunchAgents. I have been happily using launchctl load -w and launchctl unload -w to turn these on and off for years. However, I notice that now load and unload ...
1
vote
1answer
21 views

unable to install homebrew

unable to install homebrew I am using this command. ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" getting this error. i have already installed updated ...
0
votes
0answers
13 views

All applications got paused after disk space usage got near 99% and back to normal. What's next?

Mac does some pretty fancy background stuff to try and keep enough disk space for whatever it needs. In my case, 512 gb ssd, it needs to have at least 20gb free to run smoothly, so I usually have 40. ...
-1
votes
1answer
22 views

Is there any way to view iOS device logs on the Terminal?

Is there any way to view iOS device logs on the Terminal? Do the logs get stored in any file?
0
votes
2answers
51 views

terminal: how do i pipe the results of grep to open a file

I'd like to grep and open a file in just one terminal command. Suppose I'm in this directory: $ ls 1.txt 2.txt 3.txt 4.txt 5.txt and I want to open 3.txt I thought I could do ls | grep 3 ...
1
vote
1answer
52 views

How do I create user accounts from the Terminal in Mac OS X 10.11?

I would like to be able to create new users in Mac OS X 10.11 remotely after ssh'ing into the machine. On Mountain Lion, these steps were listed. Running dscl . -create /Users/joeadmin dscl . ...
3
votes
2answers
242 views

Easy way to execute shell script

I want to be able to search in Spotlight for a shell script (or something that calls a shell script) and that such shell script opens a Terminal window so the output is shown live (and I can interrupt ...
0
votes
1answer
20 views

Unable to install with admin

I am trying to update MAMP MySQL from this link, but when i double click the file as mentioned in the blog. I get message saying, The file “Install_MySQL_5.6.25.command” could not be executed ...
2
votes
0answers
27 views

Why would “ls -R” on a mounted CDROM fail with e.g. “ls: notes: No such file or directory”

I popped an old CDROM into my computer and executed ls -lR /Volumes/CDROM and received dozens of error like this: ./notes: ls: notes: No such file or directory but /Volumes/CDROM/notes does ...
0
votes
2answers
23 views

How to put Wifi card in monitor mode?

When I run tcpdump, I do so after having connected to an access point. Is there a way to run tcpdump without having connected already?
1
vote
1answer
25 views

how to throttle Internet bandwidth?

In previous releases of OS X, there was a command called ipfw, that permitted throttling of network bandwidth, which is useful for running some kinds of tests on software. It appears that as of ...
0
votes
2answers
36 views

Run command line tools as separate app

Is there a way to run command line tools as a separate app, so I can easily switch between them with apple+tab etc? I want this for things like a mail and irc client where I don't want to hunt down ...
1
vote
1answer
29 views

OSX Terminal no longer save my commands in history

Here's my issue. Last week I realized that my OSX (10.11.13) Terminal no longer saves the command I execute in the history file(s). To be more clear: I type the command test On the same terminal ...
1
vote
2answers
60 views

Exiting/Starting the Terminal (El Capitan)

In the latest Mac OS X Terminal version I noticed that if I type exit and the press Enter, I get the following: Last login: Wed Jan 27 09:18:48 on ttys000 Ian-iMac:~ Ian$ exit logout Saving ...
0
votes
1answer
29 views

Can I programmatically install a specific version of JDK (i.e. using command-line tools only) on OS X?

I know you can apt-get JDK on Ubuntu. Is there anything similar on OS X? It looks like Oracle requires you accept a license agreement on ...
0
votes
2answers
33 views

Backward compatibility of shell scripts

I use a .command file to start a basic shell script in the form: #!/bin/bash -- this simply starts Something at /usr/local/bin/Something myLittleOneLineScript To make it work I changed its ...
1
vote
1answer
35 views

Can't seem to redirect input in Terminal

I'm having issues getting redirection to work in Terminal. I'm in a C++ class where we have to create an application, then find that application in the Terminal and place a text file in the same ...
2
votes
0answers
45 views

Issues with Anki and BasicTeX

My last Mac worked with Anki to display LaTeX formatted equations but I am still, but I haven't been able to transfer it over. My steps thus far: I obviously downloaded and installed Anki and ...
0
votes
1answer
23 views

sudo and some other system commands not working with platypus

I am making a shell script that works great on its own, but does not work correctly when packaged with Platypus. It does not want to execute sudo, and a few other system commands. Are there any work ...
2
votes
2answers
148 views

Is it impossible to delete/move a file named “␀” on mac?

When I try to move, rename, or delete a file named ␀in Finder, I get this error message: The operation can't be completed, because an unexpected error occured (error code -50). With mv, rm or ...
0
votes
0answers
20 views

Why does Image Magick fail to read fonts?

I'm trying to create a simple contact sheet of all the photos in a directory using Montage: $ montage -font Helvetica -pointsize 10 *.png contact_sheet.jpg However, I keep getting a error reading ...
3
votes
2answers
188 views

Upgrade OS X operating system from the command line

You can upgrade software with sudo softwareupdate --install --all. Is it possible to upgrade the OS itself from the command line?
1
vote
1answer
27 views

FTP file to specific path on server

I try to FTP a file with a one liner in a shell from a mac to a folder on my server. Doing the same in the FTP-Shell is not a problem for me, but doing this in one line is not possible to me. I even ...
0
votes
0answers
37 views

Set default user in terminal

I just formatted my Mac and upgrade it to El Capitan, When I open Terminal I see that I am always logged in as root: How can I get my usual user name every time I open a new Terminal window, I ...
8
votes
2answers
470 views

How to download Firefox via command line FTP

I am attempting to install Firefox on my Mac, which currently does not have a browser. From a bash terminal I have ftp installed and am currently connected to the internet. However, I have been ...
0
votes
0answers
17 views

Schedule executing tasks based on bash scripts using CronniX

I'm still quite new you Mac and OS X but do have some background about other UNIX based systems, so please excuse for any misunderstandings. My goal is to implement a function that executes certain ...
1
vote
3answers
37 views

Create a custom terminal window

is it possible to create (and put in the dock) a custom terminal window? What I mean with "custom": it should have a different name (eg. "myTerminal"); it should automatically start running a ...
0
votes
0answers
27 views

How to set a Mac with Retina display's scaled resolution via command line?

I write a shell script I just have to launch it to completely set my Mac up. On long-term, I plan to make patched custom Mac O.S. builds that'll be first patched of security flaws, automated to set ...
0
votes
0answers
35 views

Command line developer tools missing after OSX update

I have noticed that every time I do Mac OSX update the Command line developer tools is getting lost. I had to install it again after each OSX update. Is there a way to prevent this? Or Is there a way ...
0
votes
1answer
24 views

How to get local directory names into terminal window titles?

The title of my terminal window is: Terminal -- bash -- 130x39 This is how I see them listed in Terminal->Window and it is very hard to know which one is which. When I use multiple terminals, the ...
5
votes
1answer
47 views

AppleScript : Set do script result as variable

I would like to get the result of this search and display the result in a notification or safari popup. " set result to do shell script "curl https://www.binlist.net/json/" & cc without altering ...
-1
votes
0answers
60 views

I need help with a automatic login AppleScript

I am running El Capitan 10.11.2 on a Mid-2015 MacBook Pro. I have attempted to write an AppleScript to enable automatic login then when finished modify to disable it. I am new to AppleScript but ...
1
vote
1answer
16 views

Cannot install libsodium via commandline

I am trying to install libsodium using ./configure --prefix=/usr make sudo make install In the install step, I get this error: usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] ...
0
votes
0answers
33 views

Is there a command or script in mac OS X to set the creation date to match the modification date?

Somehow, the creation date of all the photos on my USB drive has been updated to a recent date, but the modification date remains untouched. So any photo app thinks the photos were just taken recently ...
1
vote
1answer
56 views

Permissions corrupted in OS X

I have run sudo chown -R Ankur / by mistake and now some apps are not opening and there icons are also not visible. How can I fix this? Here are some snapshots:
1
vote
1answer
52 views

How to open path in Double Commander from Terminal

If I type open $(pwd) or open /anypath/ I will get the path opened in Finder. How I can achieve similar results but with the path opening in Double Commander instead?
0
votes
1answer
57 views

Is $PATH just a file with a list (in order of preference) of directories?

I'm having trouble understanding exactly how $PATH works? I am on a Mac.. If I install Python with Homebrew, it will install Python into the /opt/local/bin directory. Now assuming Homebrew didn't ...
0
votes
1answer
56 views

OS X El Capitan: man, command not found

Today I was trying to update openssl in my MacBook Pro with El Capitan 10.11.2. I don't know where I made a mistake but it seems I have accidentally disabled man. In fact, if I launch man ...
1
vote
2answers
28 views

Why does my iTerm2 launch with an X in it's path?

After upgrading to El Capitan, then working on installing Rails, my iTerm2 shell now opens with x >, instead of just >. Can someone please explain why this is happening, and help me figure out ...
4
votes
2answers
93 views

terminal custom commands source every time

After following this comment I added all my startup/alias commands to ~/.bashrc file and in ~/.bash_profile I added source ~/.bashrc But still my aliases are not working. I have to manually source ...
0
votes
2answers
34 views

Is it possible to set the JAVA_HOME env in El Captitan?

I am unable to set the JAVA_HOME environment variable osx. I added the following line to my .bash_profile export JAVA_HOME=`/usr/libexec/java_home` and sourced it afterwards; yet when I printenv or ...
-1
votes
1answer
57 views

What is actually happens when moving a file onto/into another file?

I was trying to move some files to a directory, because of wrong destination directory path all files are moved to another file. Can I undo this action to get my files back? - Hopefully NO Is there ...
0
votes
1answer
35 views

OS X Terminal: 'ls' shows program but then says command not found?

I am trying to start MongoDB from the terminal. When I navigate to the folder and hit 'ls', all the applications show up but when I type in the name of the application( 'mongod'), it says it is not ...
1
vote
1answer
154 views

Manage login items from terminal in 10.11 El Capitan

Previously, % launchctl submit -l label -- command args was the way to go. This does not work in 10.11.2, I'm fairly sure it was working in 10.10.x, but cannot be certain. The likely-looking ...
3
votes
3answers
38 views

Unexpected changes to command line

When I open up a command line on my Mac the welcome message is usually Last login date Johns-MacBook-Pro$ This now reads... Last login: Fri Dec 18 23:48:34 on ttys000 Johns-MBP-2:~ johnw$ What ...
0
votes
0answers
34 views

Compiling Ghostscript in El Capitan

I'm trying to compile Ghostscript-9.18 ( i need libgs ) and I've run into the new Rootless Security stuff when I try to install the libs. How do I change the target from /use/include to ...
1
vote
1answer
69 views

What does “is not recognized as an internal or external command” error mean?

I have spun up a VM of OS X since my main user is not an admin and I need to do things that require admin access. My end goal is to install the Xcode command line tools into a VirtualBox VM I created ...
1
vote
0answers
10 views

Why the service does not start after logging in

The service is jenkins installed with homebrew on Yosemite. I have this: ~/Library/LaunchAgents/homebrew.mxcl.jenkins.plist and this: % launchctl list | grep jenkins - 0 ...