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)

8
votes
1answer
271 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
30 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
37 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 ...
1
vote
1answer
31 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
757 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
8 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 ...
3
votes
0answers
370 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 ...
4
votes
1answer
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 ...
67
votes
7answers
37k 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
45 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
22 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
1k 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
397 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 ...
1
vote
2answers
126 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 ...
1
vote
2answers
800 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 ...
19
votes
8answers
10k 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
30 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
113 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
196 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 ...
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 ...
1
vote
2answers
24 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
37 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
80 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
14k 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 ...
28
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
42 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
95 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
56 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
37 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
132 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
46k 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
67 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
20 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 ...
0
votes
0answers
31 views

Using spell checker on plain text files from the command line / in scripts

I see that libhunspell-x.y.z.dylib is installed on my mac (macos 10.9.5) but I did not find any way to invoke the spell checker from the command line, as in % spell file.txt Indeed, man -k spell ...
1
vote
0answers
15 views

Install CA from Command Line?

I run a small PKI at my house. There's not much too it - a CA, a few servers and a client certificate on occasion. I'm looking for a way to install my CA on my iOS devices from the command line. ...
20
votes
5answers
56k views

How can I list all user accounts in the terminal?

How can I list all local user accounts (whether logged in or NOT so 'users' or 'who' is no good) in the terminal on a mac? OS X version is 10.6.8. I have seen this suggested - dscacheutil -q group ...
3
votes
2answers
32 views

See live report of process's status

Under Linux, I can use top to see a live report of what processes are running. An important field I use is the Process Status field, which shows whether a process is running, a zombie, sleeping, etc. ...
1
vote
1answer
1k views

How to list bluetooth devices from command line

I have to list all available bluetooth devices from command line. I tried to google it, but got only results like "how to turn on bluetooth from terminal". Simply: bluetooth scan Thanks for help in ...
0
votes
0answers
43 views

Disable Safari plug-in management using the command line

Safari 6.1 introduces a feature called "plug-in management". In our organization, I'd like to disable this feature, or set all plug-ins to Always Allow for all websites. I need to do this using the ...
43
votes
9answers
80k views

Why doesn't .bashrc run automatically?

I put some alias commands in my .bashrc file, so that they might be loaded everytime I open a new Terminal window. Yet this doesn't happen. I have to select run script: in the ...
3
votes
1answer
65 views

Is there a command line utility to display a string or an image in the status bar in Mavericks?

Basically I want to issue a command in a bash script or an Apple Script and see some string (or icon) in the status bar aka "where the clock is". Something similar to osascript but for the status ...
2
votes
2answers
3k views

Is there a free command line program for converting PDF files to SVG?

Once upon a time I used Corel Draw to edit vector graphics. Now I'm looking at using Sketch. I previously converted all my old CDR files to PDF but Sketch doesn't seem to like to open PDFs containing ...
10
votes
3answers
3k views

How can I force command-line arguments to a program shortcut in the dock?

I have Chrome installed in Applications, and a shortcut to it in the Dock. How can I achieve to force some command-line arguments to each start-up of this app? Let me be clearer, in the Terminal, I ...
5
votes
6answers
7k views

How to fix curl: (60) SSL certificate: Invalid certificate chain when using sudo

So since the Mavericks upgrade curl has more issues with certificates. When trying to curl a file from my web server with it's self-signed certificate it was getting the error "SSL Certificate: ...
1
vote
1answer
36 views

From the command line, how do I tell if a particular VPN connection is up?

Suppose that I have multiple VPN connections configured in System Preferences/Network. How do I tell if a particular one (identified by the service name in System Preferences/Network) is up, on the ...
2
votes
4answers
21k views

How to send text with telnet in Terminal?

I would like to send some text to a port on my machine using telnet in the Mac OS X Terminal. I start telnet using: telnet localhost 8080 Then I type some text. Is that text send automatically or ...