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 (1)

2
votes
1answer
31 views

Time Machine progress from the command line

The Time Machine control panel gives information on in-progress backups. For example Is there a way to get the information from the command line?
4
votes
2answers
2k 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 ...
40
votes
7answers
15k 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 ...
2
votes
1answer
35 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 ...
5
votes
3answers
583 views

Is there a htop-on-linux like alternative for top / Activity Monitor on OS X?

I'm looking for a better alternative for top. Both top and Activity Monitor are highly limited with regards to features. In particular, I'm interested in the following features: Limit processes by ...
21
votes
6answers
7k views

How can I change a file or folder icon using the Terminal

How can I change or set the icon for a file or folder, in the terminal, do I need to use a scripting language?
1
vote
2answers
898 views

“xcode-select --install” versus retrieving the dmg from Apple's developer website

I would to ask a question closely related to already existing posts (How to install command line tools without error that is not currently available on Software Update server? and ...
4
votes
2answers
172 views

Changing display resolution on Retina machines while in Command Line Mode

I frequently prefer to boot into the command line mode (CMD + S on boot) instead of booting to the normal GUI-imposed version. I do most of my work in the terminal, so it's nice to save some time and ...
1
vote
4answers
3k views

PageUp and PageDown keys for Irssi (IRC) in Macbook?

I cannot find the keys on my mackbook. I need them to go page-up and page-down in irssi (IRC). I have tested the tips here but they do not work. They model some different Up/Down, not the traditional ...
1
vote
1answer
19 views

Check brew and brew-cask for valid package names

I have a iMac and Macbook for work and another set for home. I end up getting a new one every couple of years so I end up re-setting up everything atleast couple of times a year. So I wrote a script ...
0
votes
0answers
23 views

can anyone explain the default view of top on OS X 10.10

There are a lot of fields that are not described in the man page (as far as I can tell anyway). In particular these 3: BOOSTS %CPU_ME %CPU_OTHRS
3
votes
1answer
1k views

How can I use RSVG with ImageMagick?

I'd like to use the RSVG for SVG processing in ImageMagick (the included library is fairly incomplete). RSVG is a supported delegate but needs to be installed separately. I've installed librsvg and ...
4
votes
1answer
57 views

Is there a way to put switches at the end when using OS X command-line?

For example: rm long/path/to/some/dir -r instead of: rm -r long/path/to/some/dir Is it possible to make it work like that, as in GNU command line utils? TIA, Karol
18
votes
15answers
9k views

Lock Screen Command One-Liner

I'm trying to find out whether there is any kind of equivalent command line one-liner which replicates the exact identical functionality of the 'Lock Screen' menu option available via the Keychain app ...
2
votes
0answers
60 views

How to record human voice and display as text on command line?

I am looking tool or a script that records human voice and displays as text purely on command line. I am not looking for text to speech, but rather speech to text. I do not want to work at all with ...
60
votes
4answers
24k views

git auto-complete for *branches* at the command line?

On my linux machine I have autocomplete for branches with git. For example I can type git checkout [TAB] and get a list of branches. Or I can type git checkout feb* [TAB] to get all branches that ...
13
votes
2answers
493 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
50 views

Can I launch the File (Save/Open) Dialog from the command line?

Bash and vim's file completion facilities are effective for navigating through a few levels of a directory structure, but can be cumbersome when working with unfamiliar directories. Alternatively, I ...
1
vote
1answer
48 views

What is the equivalent of netstat -tln on OS X?

What is the equivalent of Linux's netstat -tln on OS X? Options: -l, --listening (Show only listening sockets. (These are omitted by default.) --numeric , -n (Show numerical addresses instead of ...
2
votes
1answer
77 views

/usr/local doesn't exist in fresh install Yosemite

I am trying to install ssh-copy-id, and it wants to be placed in /usr/local/bin/ but when I do cd /usr/local/ it responds with -bash: cd: /usr/local/: No such file or directory Is this ...
1
vote
2answers
787 views

How to install and setup s3fs on OS X 10.7 (Lion)

I installed s3fs, a tool that allows mounting Amazon S3 buckets as a file system. I created folder for mounting in /mnt/s3 then I created a file in /etc/passwd-s3fs with the content ...
0
votes
1answer
15 views

Monitor DNS queries by IP

I'm running DNS on a Mac Server V2.4. I want to log all DNS queries made - is there a way of doing this? TCPdump only shows me whats happening at a moment in time and is difficult to read, what other ...
4
votes
0answers
452 views

Is it possible to dock a detached Web Inspector in Safari 8? [closed]

I'm running OS X Yosemite. I detached the web inspector and cannot find a way to dock it again. The usual dock/detach button isn't there, and I couldn't find any help elsewhere on the internet. Does ...
68
votes
7answers
39k views

What is the difference between iTerm2 and Terminal?

I keep hearing that iTerm2 is much better than Terminal. I downloaded iTerm2 today and played around with it, but I couldn't see what is so much better about iTerm2. iTerm2 seemed just like Terminal. ...
0
votes
3answers
51 views

Command-line tool to check if current user has the desktop?

Is there a way, via the command line, to check if the current user has the desktop? That is, if I run a shell script in a window, I want to be able to tell (in the script) if the user has switched to ...
0
votes
1answer
28 views

After Using LP Printer Utility “unable to communicate”

I tried using lp to print to our HPLazerJet P1102w from the command line. Items were added to the queue, as returned by lpq: macbookpro1:~ mikekilmer$ lpq HP_LaserJet_Professional_P_1102w is ready ...
4
votes
2answers
2k views

How can I enable and/or disable OS X's power nap feature from within Terminal?

I can deal with it using some command-line commands such as defaults write … etc, but don’t know what the exact command and argument names to use?
2
votes
1answer
416 views

How to execute a Parallels Windows application with command line parameters from Mac?

I am trying to call Beyond Compare Windows app to perform a file compre directly from Mac but I am block with command line argument passing. You can call Windows applications from the OS X command ...
2
votes
2answers
140 views

Troubleshooting “Unexpected argument” error when running defaults write

Trying to change the default screenshot directory to a specific folder in my google drive, but when I try the following command defaults write com.apple.screencapture location ‘~/Users/tommy\Google ...
21
votes
8answers
11k views

Can home and end keys be mapped when using Terminal?

The home and end keys on a MacBook Pro can be emulated with fn + left arrow or fn + right arrow. Or when certain settings are changed, with the Command (Apple) key instead of fn. None of these ...
2
votes
0answers
31 views

How to fix “You are not allowed to use ”Application“”

How do I fix this message, I am Admin, Mobile. Even if i login to a root account this message still appears. I have iTerm so if any commands need to be inputted to fix this problem I can still do ...
6
votes
3answers
2k 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 ...
2
votes
1answer
166 views

GCC : Command not found

I'm very new to Mac and right now my operating system is 10.10 Yosemite. I installed XCode and Xcode CLT, gcc came along with it as well. I was asked to change the default compiler to gcc. I went ...
5
votes
1answer
206 views

pbcopy exits code 1, no error message

I'm trying to use pbcopy and pbpaste to copy and paste to the clipboard from a shell. I read the man page to learn the syntax for these programs. However, no matter how I try to invoke pbcopy or ...
1
vote
2answers
34 views

iTerm - going one word backwards and forwards

Would it be possible to configure iTerm 2 to go backwards and forwards one word through the curent text in the command line using a keyboard shortcut?
0
votes
1answer
38 views

When is a folder not a folder?

I have a "folder" (as it appears from Finder), but I can't cd into it from the terminal. if I ls -la this is what it looks like. -rw-r--r--@ 1 christopher admin 1317440 Oct 17 22:23 Tomcat ...
8
votes
3answers
4k views

How do I change the time format used by ls command line on osx?

I want to make ls display time in ISO format (military format). How can I change this behavior? On Linux I knew that I could force ls to display time in long format by usin --full-time but this ...
2
votes
2answers
1k views

How to enable Maven autocomplete on Mac OS X command-line?

When using Maven (mvn) on OS X Terminal, how can I get tab-completion for Maven goals, plugin names, etc? Things like this: mvn pa [TAB] -> mvn package mvn je [TAB][TAB] -> mvn jetty:run
1
vote
2answers
2k views

Display dialog from command line (like xmessage does)

Background I'd like to be able to display a notification window in OS X from within a script. The script will be running in background, so the notification should not go to the terminal but instead ...
1
vote
1answer
118 views

How do I open a URL with a custom scheme in Yosemite with cron and open?

I had a cron job that ran every morning at 10:30 to call into our daily status meeting on Go2Meeting. After I upgraded to Yosemite it stopped working, and I figured out that it was because open -g ...
1
vote
3answers
16k views

How Do I Use 'cp' to Overwrite Files?

Using a shell script or Terminal, how do I overwrite files that may or may not be present. I looked at man page for cp, it said use the -f argument to force overwrite. But, it does nothing. $ cp -f ...
29
votes
4answers
17k views

MacPorts vs. Fink vs. Homebrew

I always used MacPorts to install and maintain my GCC compilers (4.4, 4.5, 4.6, 4.7, ...) and gnuplot. Now I've heard about Fink and Homebrew. I think these two utilities are gaining ground in the Mac ...
1
vote
0answers
68 views

Aggressize standard stream buffering in latest Command Line Tools (6.1)

I just upgraded my "Command Line Tools" via App Store.app's update process to Version 6.1. It seemed to install just fine, but a lot of commonly used command line tools now have much more aggressive ...
2
votes
1answer
120 views

What is the relationship between Xcode and Xcode command line tools

When I install Xcode from App Store, I can compile programs in Xcode as well as command line too. Several command line utilities like clang, make and git all become available when Xcode.app is ...
1
vote
1answer
84 views

xemacs: Bad CPU type in executable

OK. So I worked around this error: /sw/bin/xemacs: Bad CPU type in executable. but I don't understand why what I did worked and am curious. All I did was replace /sw with what should have been an ...
1
vote
0answers
43 views

How to set positioning/filling of desktop background image with AppleScript

How can I set the positioning/filling of the desktop background image from the command line with one of the available options listed in the Desktop & Screen Saver preferences: Crop, SizeToFit, ...
2
votes
1answer
228 views

How to repair Homebrew permissions after installing as root?

I run brew as root, now it's defunct. No updates anymore. How to fix? $ brew update && brew upgrade error: Unable to append to .git/logs/HEAD: Permission denied error: Unable to append to ...
21
votes
6answers
48k views

How do I start TextEditor from the command line?

I work a lot at the command line in a Terminal and would like to start a text editor on a certain file. I'm from Linux Land and normally use kwrite or gedit from a bash shell. Trying to find the Mac ...
0
votes
1answer
102 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 ...
0
votes
1answer
21 views

Change header of all text files in directory in commandline

I have tons of *.csv measurement files with following header: Start time: Thu Oct 09 15:46:16 CST 2014 Trend type: Average Wavelength over [259.09, 259.09] Trend offset: None ...