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)

2
votes
1answer
581 views

What's the BSD equivalent of the linux date command for adding subtracting days/weeks/months from a given date?

I have a given date, such as 2013-10-31 and I need to accurately determine the next day (taking into account DST, leap years, leap minutes, timezones, etc). I have no way of knowing whether the date ...
11
votes
4answers
3k views

How to deal with commands of conflicting names listed in `brew doctor`?

So after brew doctorI`ll get the following without any recommendation: Warning: You have external commands with conflicting names. Found command `brew-cask` in following places: /usr/local/bin/brew-...
3
votes
2answers
731 views

How do I programatically kill the CCLibrary process by PID?

I need to know how to write a command or script to kill the CCLibrary and CCXProcess processes. They are part of Adobe's Creative Cloud, and since their previous update they keep respawning and ...
0
votes
1answer
28 views

'soft return' in iTerm2

I'm just wondering is there a way to enter a new line in iTerm 2 without executing the line being typed? I am looking to make use of some relatively long commands to automate some things, but not ...
4
votes
2answers
478 views

How to use cd with shell variable containing spaces

I am trying to create an environment variable for a path that is long, has a space, and syntax. I tried the following: export temp=/Users/username/Dropbox (Personal) And added it to my .profile. ...
1
vote
2answers
45 views

How do I remove multiple owners from a file/folder?

While trying to set up MAMP/PHPStorm, I CHOWNed the OWNER of my Sites folder to _www from myUser. Since this did not resolve the problem I was experiencing, I attempted to CHOWN myUser /Users/myUser/...
0
votes
1answer
189 views

install libsoup on macbook pro

I have a shell script from a open source project, when I run it in terminal, I get the following error: ./configure: line 17678: syntax error near unexpected token `soup,' ./configure: line 17678: ` ...
2
votes
1answer
410 views

Terminal wraps at 80 chars even if window is wider

Problem description If I increase the width of a Terminal version 2.3 (309) window, and then use less (or some command invoking less, like man) in that window, I often get garbled output, since the ...
2
votes
0answers
51 views

How to customize drag-n-drop-to-Terminal path escaping results?

How can I change the way in which filenames are escaped (formatted) when dragged from applications and dropped into Terminal? For example, paths may be escaped with \, just spaces (), or other ...
5
votes
2answers
4k views

How can I update my version of `unzip` to version 6.00 or higher?

Its a common problem that, when unzipping (read: 'open by double-click'), some .zip files result in a similar sized .cpgz file. But you expected an unzipped file or folder instead. The default unzip ...
14
votes
2answers
1k views

Can I call a phone number from the Terminal?

In Yosemite, is there a way to start a phone call from the command-line aka Terminal? Something like: call +316123456789
0
votes
1answer
34 views

Adding a compiled application to $PATH. Understanding the problem

I'm trying to understand the whole $PATH problem but I've got no luck so far. Suppose that I've just compiled an executable with make and I need to launch it with the shell without using the full path....
3
votes
3answers
907 views

How to check installed OS X version from the command-line on each partition?

I'm managing a lot of Macs and each machines has several partitions with different OS versions. I would like to create a script that I could run to do an inventory of all partitions of all machines ...
1
vote
2answers
76 views

Shell script failing in Automator but works if I copy/paste into Terminal

Workflow I'm trying to achieve: Export SVG file from Adobe Illustrator to Desktop Drag SVG file from Desktop onto Automator Droplet Automator runs script (basic summary below) Script executes and ...
8
votes
2answers
3k views

Adding a song file to iTunes via the command line without playing the file

I want to add song files to iTunes via the command line. open -a iTunes -g song.mp3 does exactly this. - However it starts playing the song, too. Any way to avoid this?
8
votes
6answers
44k views

How do I execute command line scripts?

In Windows, I can create .bat files. I double click it and all lines are interpreted as if I had entered it into the console. In OS X, what file or program do I have to use? If I want write a file ...
19
votes
4answers
7k views

Install shuf on OS X?

Ubuntu Linux has a great tool called shuf, which works like head except that it gives you ten random lines. I couldn't find it on Homebrew. What is the simplest way of installing it on OS X?
0
votes
0answers
66 views

Command line to disable full screen behaviour of green button in windows bar

Is there a command line to revert the behaviour of green button in 10.10 and later? I don't like the full screen approach and I prefer a maximize behaviour. I don't want to use an external tool like ...
4
votes
3answers
6k views

chsh doesn't change $SHELL

I'm having some difficulties in changing the value of $SHELL in OSX's iTerm app. iTerm is starting in /bin/zsh, but the value of $SHELL doesn't seem to change. What I've done: Changed "command" as ...
10
votes
3answers
4k views

Are the OSX Mavericks tags visible from the command line?

For example, suppose I have a directory structure such as /Users /tlehman /Math algebraic_varieties.tex [tagged: Math, Documentation] projective_geometry.pdf [...
1
vote
1answer
388 views

Mac play not added to path

I have installed the play framework using typesafe-activator. However, this does not appear on in PATH. Therefore, I can not use Play from the command line: Octavians-MBP:exericsePS octavian$ play ...
1
vote
0answers
443 views

Does OSX 10.10.4 support LZMA compression at the individual file level (not tar files)?

From the command line, I would like to compress some database dumps using the LZMA algorithm. And, OSX adds XZ support (written in October of last year), claims " It turns out the XZ support in OS X ...
15
votes
3answers
9k views

Change default shell from bash to zsh

I've tried to switch my default shell to zsh, using chsh: chsh -s /bin/zsh and: chsh -s `which zsh` Both commands ended with: Changing shell for adamatan. Password for adamatan: chsh: ...
1
vote
1answer
538 views

How to send email from OS X command line

Dozens of tutorials followed and nothing works. msmtp doesn't work ("TLS certificate verification failed: unable to get local issuer certificate" (cert installed) postfix doesn't work (no way to ...
0
votes
0answers
26 views

How to see all services available for launching with launchctl?

I tried this on Yosemite: launchctl list but it doesn't show e.g. postfix which I have just launched with: launchctl kickstart system/org.postfix.master Is there any way of listing all the ...
1
vote
3answers
146 views

Terminal command to return network class

I'm trying to construct myself a primitive network scanner, and I understand that there are multiple network classes and it has become necessary for my program to determine exactly what class of ...
0
votes
0answers
25 views

Cannot use pcilib on in Terminal

I want to use lspci in command line, but it outputs pcilib: Cannot open AppleACPIPlatformExpert (add boot arg debug=0x144 & run as root) lspci: Cannot find any working access method. Then I ...
2
votes
0answers
38 views

Grant rights on a certificate to an app through the shell

I'm currently looking for a way to grant an application rights to a certificate in my /Library/Keychains/System.keychain through the shell. I can currently do this through the Keychain Access App by ...
1
vote
1answer
162 views

Using gnuplot terminal on OSX

I just installed gnuplot and I am trying to set the default terminal. On the wikipedia page for gnuplot, there is an image with a graph: Which terminal view is shown in the image at the link?
38
votes
7answers
52k views

How to always show menubar with fullscreen apps?

Does anyone know if it is possible to keep the menubar in Mac OS Lion visible for fullscreen apps instead of hidden until hovered over with a mouse or trackpad? I imagine there's some Terminal ...
12
votes
3answers
16k views

brew cask: howto uninstall an Application

I tried, while I am in /opt/homebrew-cask/Caskroom $ for i in *; do brew cask uninstall $i; done Error: appcleaner is not installed Error: avidemux is not installed Error: eclipse-ide is not ...
2
votes
2answers
783 views

Repeat a song in afplay

I am using afplay to play a song and I want it to be repeat. Is it possible just using afplay?
1
vote
1answer
27 views

u flag with ps command

According to the Mac man page for ps it says for the -u flag: -u Display the processes belonging to the specified usernames. However, it seems to display different information rather than just ...
1
vote
1answer
36 views

Root login using stdin

Can anyone tell me why this does not work? test:~ test$ echo 123 | su root su: Sorry Thanks
6
votes
0answers
957 views

Check the battery level of connected bluetooth headphones from the command line

I am trying to check the battery level of my wireless headphones from the command line. I came across a few discussions, and it seems all I need to do is enter the following: ioreg -c 'deviceName' |...
2
votes
1answer
45 views

Automator workflow only works when clicking “step”

I am trying to write a workflow that will use Shell to apply SHA256 to cells in an Excel spreadsheet. The Workflow (which may be a bit of a hack) is working, but only when I click through it using "...
10
votes
1answer
9k views

Is there a more-accurate indicator of an app download's progress than what appears in Launchpad?

While downloading an application from the Mac App Store, you are presented with a progress indicator in Launchpad, like so: For a large install (like Xcode, as shown) this doesn't provide a ...
1
vote
1answer
50 views

Downloading additional voices from command-line

I am using a MacOS X server (to which I only have command-line access) to convert text to speech which is saved to sound files (using PyObjC). I would like to install some of the optional OS X voices (...
2
votes
2answers
66 views

automatic save before “Run in Terminal” in BBEdit

I am a new BBEdit user, with a long experience as TextWrangler user. In TextWrangler, I am used at running python scripts with the command "Run in Terminal", and in TextWrangler the default behaviour ...
1
vote
1answer
194 views

Controlling audio output's sample/bit rate on OSX from command prompt

Is there a way to limit the output format of a soundcard on OSX, apart from Audio MIDI Setup? I have noticed that OSX has a bad habit of resampling audio while it is not needed at all (say the output ...
5
votes
3answers
2k views

Displaying calendar events as text, in the terminal

Using Yosemite, is there a way to display events from my calendar in the command line? I'm aware of the stock calendars apple supplies for things like holidays and such, /usr/share/calendar/ and the ...
69
votes
11answers
31k views

How to move files to trash from command line?

I do a lot of terminal work, and today had the experience of typing rm fileInQuestion.txt Before finding out that I did actually need fileInQuestion.txt. If I'd deleted in the GUI then I would have ...
0
votes
0answers
148 views

Command line app to change screen resolution with RETINA?

I'm looking for a command line app to change screen resolution. I've tried cscreen, screenresolution, and scrutil. The first two work to change resolution, but they do not enable retina scaling.
2
votes
2answers
365 views

Keyboard backlit light control from command line

Is there any command to control the intensity of keyboard light of a MacBook Pro?
2
votes
1answer
158 views

Backup files from corrupt disk to usb drive in single user mode

I try to backup my files of a corrupt system. I can start into the single user mode and want so store my home folder to my backup system. To mount my usb drive I need to mount the root disk as ...
1
vote
0answers
22 views

How to see the commands echoed on the Terminal?

Maybe is a silly question but I'm a newbie in OS X and I didn't found the answer anywhere. The thing is that when I execute some command that executes other scripts/commands/whatever I don't see on ...
2
votes
2answers
325 views

Terminal command that gives the type of computer you're on

I am running MATLAB code on two different computers, both with the same username. I would like to distinguish between the two Macs by having the code identify that one system is a desktop, and the ...
3
votes
2answers
680 views

Any way to reboot a iDevice that is connected to a USB port via terminal (Mac terminal)?

So, I am making a program to reboot iDevices (if there power buttons are broken), is there any way to induce the iDevice to reboot via the Mac shell?
6
votes
3answers
11k views

How to start OS X applications from the command line with optional arguments?

I am looking for an easy way to start different GUI OS X applications from the command line and with different parameters. If possible I would like to add them to the system PATH in order to call ...
1
vote
0answers
52 views

How to compare files for an entire drive from a before and after (or changes during) state?

I would actually very much like an option similar to fseventer, but it appears that not only will it support recent OS releases, but that it is altogether no longer available. What can I do for 10.10 ...