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
3answers
2k views

Find/Unrar/Delete Script

I'm a PC convert, and quite novice when it comes to shell/bash scripting, but I really want to learn/understand more. My need: I need to be able to scan a folder, find any .rar files, extract the ...
2
votes
4answers
5k views

How to find all files that are larger than 1GB on the Mac HD?

It seems that either one of these commands can be used: sudo find / -size +1G sudo find / -type f -size +1G But when it gets to /Volumes, it actually look at all the back up files by Time Machine ...
2
votes
1answer
430 views

Mac Terminal: emacs-style command editing messed up

This has been a "quality of life" issue for me for a while now- command-line editing in the Mac terminal is messed up for me. If I type a few chars, and then hit CTRL-A to move to the beginning of ...
2
votes
4answers
3k views

How to run Wireshark in the background without the GUI?

I am trying to run Wireshark on Mac OS X in the background. I installed the command line utilities, and so I am able to start Wireshark and capture packets using the command line. The only thing I ...
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 ...
2
votes
1answer
55 views

Size in bytes is significantly less ( half the size) then size in MB in get info window

In the get info window it says 387,037,139 bytes which is 387 MB whereas the size on disk is 716.9MB which is 716,900,000 bytes. du -sh paramgen result (in MiB) 684M paramgen Why is there such ...
2
votes
3answers
24k views

How to run .exe files on Mac without virtual machine?

I do have one software(.exe) file which I need to run on my macbook pro. For that I need cross platform application just like wine in Ubuntu. Can anyone suggest me the application?
2
votes
3answers
1k views

How to manually trigger background image change?

I have set the wallpaper to change every hour and have enabled it to cycle them in a random order. Sometimes the background image changes to an image that was set just few rounds ago and I'd like to ...
2
votes
4answers
121 views

Get Info of a hidden file (to change its default app)

I have a hidden file (.htaccess). When I double click it I would like it to open with a certain app (Sublime Text for this particular file type). In order to set the default app I have to open the ...
2
votes
2answers
190 views

make it easier to call often used terminal commands

I have a java tool that I use quite often from the command line but to use it I have to type java -jar dsim.jar. I want to make it so that I can call it just by typing dsim regardless of what ...
2
votes
2answers
456 views

Terminal : needs full path to execute a command

Let's suppose i have an application in /Applications/MacPorts/KDE4/myapp.app/Contents/MacOS/myapp. When i use cd to reach the directory 'MacOS' and then issue the command myapp it says command not ...
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 ...
2
votes
2answers
56 views

Terminal window title rapidly changes when first opening

When I open a fresh terminal window, the title at the top has this format: [house icon][username]-[command]-[terminal size] The command portion of the title initially says login, then it very quickly ...
2
votes
2answers
670 views

Unix command to recursively copy JPG files in a complex directory tree

I have a large directory tree structure that contains multiple JPG files in each directory root and their subsequent subdirectories. I need to recursively extract a single JPG file from each directory ...
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
3answers
1k views

How to determine the absolute path to a file in a shell script

I am writing a generic script that can get passed both absolute and relative (to the current working dir) paths to existing files. I need a fail-safe way to turn all those passed paths into absolute ...
2
votes
2answers
251 views

How to investigate fragmentation of one file?

I'd like to see if one of my file is "all over the place", ie fragmented in little pieces at different locations on my hard drive. I'm not looking for a software like iDefrag but rather a command ...
2
votes
1answer
735 views

How can I kill or refresh Desktop Wallpaper with a Terminal command?

Is there a command for refreshing the Display Settings? Or, in specific, refreshing the Desktop Wallpaper?
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 ...
2
votes
3answers
520 views

Editing iPhoto-specific metadata

Perpetua:2011-01-16 ashley$ mdls IMAG0107.jpg ... kMDItemComment = "Cat with is tongue out." So, here's my question. xattr can be used to modify some ...
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?
2
votes
1answer
98 views

How -exactly- do I remove a specific directory, from my PATH, in OSX, Mavericks?

Ok - so this issue has become somewhat of a white whale for me. I have browsed some of the questions here, but I cannot seem to figure out how to, very simply, delete a directory from my PATH. (I ...
2
votes
1answer
64 views

Adding a username alias using the command line

How do I add a username alias using the command line? I can do it fine using the preferences dialog through the "Advanced Options", but I need to do it during an installation script. Can someone ...
2
votes
1answer
1k views

Use find in Terminal to remove directories and files of same search parameter

If I type the following into Terminal, it will remove all files that meet the search parameter: sudo find . -type f -name "*Xilisoft*" -exec rm -rf {} \; Then if I start again and type it with d ...
2
votes
1answer
203 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 ...
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
2
votes
1answer
362 views

Paste <TAB> into Mac OS X command line

I want to paste <TAB> into command line, in order to execute cut command with <TAB> as the delimiter. Everytime I try to do it, it simulates clicking the tab key and completes the command ...
2
votes
1answer
244 views

Why do debuggers need an admin password?

Why does running LLDB or instruments require elevated privilages?
2
votes
2answers
602 views

Exclude files from “central metadata store”

I'm fairly familiar with the mdfind utility. I find it's very useful when I can't find a file or when I need to find a file with certain contents. The problem is that I need to exclude some files from ...
2
votes
1answer
579 views

Why doesn't the screen command source my .profile?

When I start a new screen, the aliases that I have set in my ~/.profile do not seem to be sourced. Does anyone know where I can change this or which file is actually read when starting a new screen?
2
votes
1answer
1k views

Open source iSightCapture?

Is there an open source program like iSightCapture?
2
votes
1answer
209 views

How can I run a shell command at login time without showing a Dock entry? [duplicate]

Possible Duplicate: How to run something automatically when the system boots or a use logs on? I need to automatically run a command when I log in but I don't want to add an item to the ...
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 ...
2
votes
1answer
139 views

Which of the GNU coreutils applications are included in the MacPorts coreutils package?

In general, I would like to know if there are any discrepancies between the MacPorts coreutils and the GNU coreutils, and how I might go about answering this question myself. In particular, I don't ...
2
votes
1answer
537 views

How to boot OSX into desktop from single mode?

Is there any possibility to boot graphical mode once I'm in single mode (CMD+S on boot time) logged as root? Related: http://www.mactalk.com.au/11/90219-boot-into-desktop-single-user-mode.html ...
2
votes
1answer
72 views

How can I move fast in CLI in Mac?

In linux in CLI I can press ALT + F or ALT + B to move back and forth in terms of words and not one character at a time. Is this available in Mac? There is no ALT and I tried Control + F, Fn + F, ...
2
votes
1answer
604 views

Fixing two user groups with the same ID

Suddenly, my home directory is in the group messagebus instead of the usual staff.(I blame texlive for this, but have no evidence.) The problem is that both groups have the same ID: $ dscl . -read ...
2
votes
1answer
1k views

How to patch a file that resides in /Applications (patch can't find file to patch at input line)?

I am trying to patch 5 files within an Mac application bundle using the Terminal patch command. The files to be patch are specified using an absolute file path (the file name and path start with a ...
2
votes
2answers
327 views

place text over image without imagemagick

I have a png image file which I would like to overlay text onto, via the command line (for use in a Makefile). The text to be overlaid is dynamic, decided at the time the image is modified. I am ...
2
votes
1answer
35 views

CLI to copy to clipboard but still output to term ?

I know that piping to pbcopy copies command line outputs to the clipboard. How can I still show the output in the terminal ?
2
votes
2answers
2k views

curl command can't be found, OSX utilities have been replaced by GNU coreutils… how to start from scratch?

I recently installed homebrew and I was having a hard time because I could not install it as curl command couldn't be found, someone pointed me to use wget and that worked to install homebrew but now ...
2
votes
2answers
6k views

Restore disk in single user mode

I wonder if it is possible to restore one partition to another in command line? The similar operation can be performed with Disk Utility, but unfortunately I cannot boot in graphics mode (even safe ...
2
votes
1answer
19 views

Piping into printf

In Terminal, I'm trying to replace MY_SUBJECT and BODY_OF_EMAIL from the command below: printf "From: Sender Name <sender@domain.com>\nTo: recipient@domain.com\nSubject: ...
2
votes
1answer
26 views

top, group by command

Is it possible to run top and group processes by COMMAND? Seeing every single individual Chrome process not very helpful PID COMMAND %CPU ...
2
votes
1answer
57 views

Cannot seem to download command line tools

I'm trying to download and install Command Line Tools for my Mac through Xcode, but it is not in the downloads section like youtube videos tell me to go. So, I manually download it and install it, and ...
2
votes
1answer
397 views

Deleting with rm did not free up space [duplicate]

I deleted a 5gb video using rm video.mp4, but the space hasn't freed. This was the situation: while encoding a video with FCP X, I ran out of space, I only had 50 MB free. Since in the trash I had ...
2
votes
1answer
553 views

Escape character ^] not working from Mac terminal

If I ssh into an Ubuntu machine from my Mac with a "UK extended" keyboard and run telnet localhost 4730 I see: me@ip-10-xx-xxx-30:~$ telnet localhost 4730 Trying 127.0.0.1... Connected to localhost. ...
2
votes
2answers
68 views

History commands render incorrect on Bash Vi mode

I'm having this werid and really annoying issue in bash vi-mode. Env: Mac 10.9.2, iTerm 2 1.0 or Terminal.app, $TERM={screen-256color|xterm-256color|xterm|vt} Repro steps: Run some long commands ...
2
votes
1answer
2k views

Javaws unable to locate JRE on 10.9 Mavericks

From the command line, running javaws results in the message: $ javaws No Java runtime present, requesting install. Unable to locate a Java Runtime to invoke. $ java -version java version "1.7.0_40" ...
2
votes
1answer
114 views

cpio's file on disk is not older; skipping — how to suppress this warning?

I create shadow copies of a directory containing 50K+ images (I don't remove them from the card until they're in three other places). Every time I add images to the master, I update the shadow copies ...