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)

6
votes
3answers
266 views

Terminal command to bring up shutdown dialog?

I know how to shutdown a Mac from Terminal, but is there a way to actually bring up the shutdown dialog you get from Apple → Shut Down…?
0
votes
1answer
207 views

Setup a scanner from command line or ARD

I know how to add a networked printer via the command line or ARD (Apple Remote Desktop); and, I know how to install the TWAIN scanner drivers for a particular vendor (again, using ARD). But, what ...
3
votes
1answer
6k views

No GDB in the new Command Line Tools (OS X Mountain Lion) for Xcode - September 2013?

I've recently formatted my Mac and when I reinstalled the command line tools, I installed the new Command Line Tools (OS X Mountain Lion) for Xcode - September 2013. I've just typed gdb in my ...
0
votes
1answer
405 views

Check Camera Path through command line

is that a command to type in terminal that lists all the webcams connected to my computer? Maybe using ffmpeg package?
1
vote
0answers
52 views

Command-line cloud file backup?

Is there a free cloud file server for personal files with shell commands like Unix ls, cp etc. ? Along the lines cloud ls [-options] pattern cloud cp-up pattern cloud cp-down pattern My ideal would ...
2
votes
1answer
90 views

How can I wipe an encrypted volume when the password is forgotten?

I have encrypted disk volume that is in the way and the passphrase is gone. How can I erase the contents and reuse the disk space?
2
votes
1answer
318 views

How can I run a command that requires user input through oh-my-zsh alias?

I'm trying to add Reminder.app items through the command line by invoking an alias. I use the Automator workflow solution from this question: How can I add reminders via the command line?, which ...
25
votes
1answer
36k views

How do I launch Finder from terminal or command line [duplicate]

I use command line a lot, like most programmers. I want to be able to launch Finder, Safari or any other application for that matter from command line e.g. finder . where it will start Finder ...
6
votes
1answer
190 views

Verify Time Machine Encryption from the Command-Line?

Is it possible to verify whether a given Time Machine volume (for example, returned by tmutil machinedirectory) has encryption turned on? This is for regulatory compliance, so it needs to be fully ...
1
vote
0answers
50 views

Is there another way apart from screencapture to take a screenshot of a background window?

I'd like to take a screenshot of a background window given its title. I know this can be made with screencapture -l idwindow output but unluckily I can't use this method because I'm on a 10.5.8 ...
0
votes
1answer
157 views

screencapture -l not working: illegal option

I've wrongly opened the same question on StackOverflow. I hope to find a better explaination here. I've seen in many pages (for example here: How do I find the windowid to pass to screencapture -l?) ...
0
votes
2answers
44 views

wacked a directory from the command line

I was copying a file to /usr/local/bin from the commandline on a Snow Leopard Server 10.6 ... anyhow i typed the following ... sudo cp ./le /usr/local/bin Ouch ... that missed last forward slash ...
2
votes
1answer
417 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
1answer
77 views

How do I find links for iTunes U Videos to download using the 'resume' feature in curl

I have a flaky internet connection and I was trying to download some course videos on iTunes U. Three attempts to download 800 MB files failed because the connection was reset. So I'm now trying to ...
0
votes
1answer
379 views

Why did Apple Decide not to install Command Line Tools as default? [closed]

Why did Apple Decide not to install Command Line Tools which now have to be installed through xcode?
1
vote
2answers
696 views

How to make a command line executable an application?

I have a command line executable (specifically JMeter), which opens a GUI application when launched from the terminal. However, I would like to create a link to it that would wrap it up to become a ...
0
votes
1answer
3k views

Mac OS X Terminal: -bash: $: command not found

While trying to install pagekite on OS X Snow Leopard using the following command: $ pagekite.py --signup I got: -bash: $: command not found I am a noob with the terminal but after reading a bit ...
33
votes
2answers
756 views

Where should I store command line applications?

When I download command line applications they are located in my ~/Downloads/ directory. But I feel this is wrong place to have a command line application located. Where in the Mac OS X filesystem ...
0
votes
1answer
272 views

Changing the background image in all spaces

I'm running Max OSX Mountain Lion, 10.8.4. I have tried several solutions to change the background image in every space/desktop, but can only get one. I have tried this shell script, have tried using ...
1
vote
1answer
2k views

How to I display the current DNS servers from the command line under OS X?

I want to display the DNS serververs that are used by the current network setup on OS X, from the command line.
0
votes
2answers
684 views

Script or workflow to modify find and replace text in clipboard

I need give unique names to many, many files as part of my job. I download dozens of PDFs from a research database which all come with the same name (date of download). I have to open the file, select ...
1
vote
2answers
3k views

How to get Apple Command Line Developer Tools without App Store?

I got a mid-2013 MacBook Air for UNIX development. I'm disappointed that it came with no C/C++ compilers and with no make, which are apparently part of Apple Command Line Developer Tools, which is ...
0
votes
0answers
34 views

Why nc doesn't response even if the “w” option set?

For some servers: nc -w 1 -z x.x.x.x 22 doesn't work. It has no response, but is looking like very busy: only ctrl + C can help. So -w 1 seems to be a useless option, to specify the timeout. Does ...
1
vote
2answers
788 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 ...
1
vote
2answers
115 views

Terminal path bar style for prompt

I recently saw this in a demonstration online in someones Terminal: Notice the path-bar-like style of the prompt, any ideas how you can get that? Some kind of customisation I'd assume?
0
votes
1answer
284 views

Changing OS X command line language

On Debian I managed to change it using dpkg and now UNIX commands, manual pages and supported packages are in my native language. Is there a way to do this also on OS X? I already have the locales set ...
0
votes
2answers
314 views

Visually distinguish different lines (for long wrapped lines) in iTerm2 / Terminal

I'm using an application that outputs very long lines. It's fine - it means things aren't cut off at 80 characters - but the default Terminal and iTerm2 config makes it hard to distinguish between: ...
2
votes
1answer
204 views

UTF8 filenames and shell utilities

Try the next commands from the terminal: touch á.txt $ ls á.txt find . -name á.txt -print prints nothing. My Terminal.app settings are utf8 - see here: The question: How to achieve to work ...
1
vote
1answer
604 views

Disable loopback interface lo0 on 10.8.4?

For testing purposes (testing raw network speed over a number of cables) i have equippped my Mac Book pro with a Thunderbolt to Gigabit Ethernet Adapter besides the built-in gigabit ethernet ...
3
votes
1answer
5k views

Update Xcode from 4.6.1 to 4.6.3 for Homebrew

I have installed Xode downloading the DMG (not from the Mac App Store). Now each time I run brew doctor it says: Your Xcode (4.6.1) is outdated Please install Xcode 4.6.3. But In App Store > ...
1
vote
2answers
930 views

How to properly register a file extension on mac so it will also work by running open from the command line?

I have the following problem, I registered a file extension to be opened by a Mac Application by clicking on the file in Finder and selecting to always use the target application to open the files. ...
0
votes
1answer
60 views

Run a program without networking?

Is there a way to run a program on OS X (e.g., from the command line) but without letting it see the network? I can turn off and disconnect all networking, but then all my other processes will be ...
1
vote
1answer
3k views

Server certificates are not properly validated by subversion/openssl

I noticed that the svn cli fails to validate https certificates and always ask for manual validation using the certificate fingerprint: mbp:~ user$ svn co https://svn.mysite.com/svn/testrepo Error ...
1
vote
1answer
85 views

prevent doubleapple files creation when tarring directories (Snow Leopard)

I'm looking how to prevent tar from saving or creating .AppleDouble shadow files and preferably do it in an automated manner. There are a few questions asking why this happens, but I want a solution ...
0
votes
2answers
35 views

Determining currently used NIC on CLI

I do a lot of work on Virtual Machines, and have several scripts to help me configure them quickly. I could fully automate spinning up a headless VM, except that I need to know the IP of my host ...
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 ...
7
votes
2answers
12k views

how to reinstall xcode command-line tools?

I had serious problems from two versions of Xcode on the same machine. I removed all Xcode app instances & many other non-System 'xcode'-related files, then reinstalled the app (4.6.2), fixing my ...
8
votes
6answers
685 views

Where can I find a comprehensive and detailed technical software manual for OS X?

Are there books written for OS X (particularly the most current version) like the hundreds of thousands written for Unix? I'd like to know about the command-line utilities and the locations of system ...
3
votes
1answer
318 views

List of GNU packages for homebrew

My team is working with Mountain Lion MacBook Pros, and we're using the GNU CLI tools, like wget and watch, intensively. Whenever a new team member joins us, we tell the new hire to install homebrew ...
4
votes
1answer
940 views

How do I prevent the permissions denied message from being displayed when I do a find command?

I'm trying to run a find command, aka: find / -name "some_file" -print and my results are full of permission denied messages: find: /.DocumentRevisions-V100: Permission denied How do I prevent ...
1
vote
2answers
214 views

Is there a way to set an Application Shortcut in the Keyboard Preference Pane via Terminal?

I'd like to have a bootstrap for my custom keyboard shortcuts to use on multiple machines...
3
votes
3answers
4k views

Change file association in terminal?

Is there a method for associating file types with applications via terminal? I thought ~/Library/Preferences/com.apple.launchservices.plist might do it, and I also have seen: Why is a command line ...
5
votes
2answers
962 views

Is it possible to get the full suite of unix options for the command line tools on OS X?

I follow Unix Tool Tip on Twitter and it is interesting that many of the tips that are posted are not available on OS X. For example: cp - u will only copy files that don't exist, or are newer ...
6
votes
1answer
1k 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?
2
votes
1answer
431 views

Play .ogg on command line

How can I play a .ogg music file on the command line? On Linux I can use ogg123, but what about on Mac?
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
1answer
460 views

Where do I find the full man page for afplay

In Terminal afplay -h shows full help text but the man page shows hardly nothing. Is there any way to get a longer help page for man afplay? I never use Terminal and it would be much easier if i ...
0
votes
2answers
675 views

Temporarily disable Notification Center in Mountain Lion from command line?

I've been trying to create a script to disable/enable the Notification Center, even if it's temporary. It should do the same as manually sliding the Notification Center, scrolling up, and toggling the ...
1
vote
2answers
635 views

Converting Audio to AC-3 using afconvert?

I'm trying to use afconvert to convert an audio file to AC-3 format. It's 5.1 audio, having already been converted from DTS to WAV (using ffmpeg, since afconvert doesn't seem to deal with DTS). As ...
5
votes
1answer
4k views

How to remove xattr com.apple.quarantine from all .webarchive files with that extended attribute?

Spread across multiple file system I have numerous .webarchive files that were saved by OmniWeb. So for example: sh-3.2$ ls -@ 2012-03-19.webarchive 2012-03-19.webarchive sh-3.2$ ls -@l ...