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)

1
vote
1answer
24 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
1answer
34 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 ...
0
votes
1answer
7 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 ...
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 ...
0
votes
3answers
44 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 ...
1
vote
2answers
124 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
0answers
29 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 ...
2
votes
1answer
106 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 ...
1
vote
2answers
23 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 ...
1
vote
1answer
73 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
0answers
41 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
94 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
0answers
35 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, ...
1
vote
1answer
52 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 ...
2
votes
1answer
130 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 ...
0
votes
1answer
66 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
0answers
30 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 ...
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 ...
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. ...
0
votes
0answers
42 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 ...
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 ...
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
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 ...
1
vote
1answer
116 views

Disable line wrapping and horizontal scrolling for output in iTerm

I want to disable the interactive line wrapping that iterm does in my terminal application. I can run $ python -c 'print "\x1b[?7l"' to disable line wrapping on output, so long lines like $ ...
3
votes
0answers
358 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 ...
0
votes
1answer
202 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?
1
vote
0answers
76 views

Is it possible to launch and use Itunes with the command line on windows?

Is it possible to use iTunes with the command line on Windows? I want to pass actions to the program like to play a playlist. Is it possible to use any iTunes functionalities in the command line? ...
0
votes
1answer
36 views

broke my python easy_install how to fix?

Any idea how to fix: -bash: /usr/bin/easy_install: No such file or directory I kind of deleted it by accident before I realized that being behind a proxy was my issue not easy_install
3
votes
1answer
30 views

characters stick at the beginning of CLI

When I press arrow up to search through the command history, some characters always remain at the beginning of the command line. Does anyone know what's going on ? How can I fix it? for example, I ...
0
votes
0answers
105 views

Apple installer issue in terminal where -target keeps saying; error cannot find Volume

I am trying to use the Apple Installer commands to install a package and the output is that it was successful, however, the end result is that nothing actually happens meaning the package never gets ...
2
votes
2answers
45 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 ...
1
vote
1answer
51 views

How to get the domain name on the command line

I know this is a simple question, but I can't recall a method of doing it. I wrote a service using automator to copy the public URL of a file in my Sites folder. I wrote this script: sed -e ...
2
votes
1answer
18 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: ...
0
votes
1answer
52 views

I added my username to /etc/sudoers but using sudo still asks for password

I entered my username in the sudoers file, but when using sudo in scritps, it still asks for the password. This is my sudoers file: ~: ls -al /etc/sudoers -r--r----- 1 root wheel 1297 Aug 14 ...
0
votes
0answers
32 views

Which Unix command-line utilities besides /usr/bin/fgrep have severe bugs in 10.8?

I just got stung by /usr/bin/fgrep --file=7000.words matching nothing, on 10.8.3, version: fgrep (BSD grep) 2.5.1-FreeBSD. Gnu grep works fine with a file of 57000 words. Is there a list of other ...
1
vote
1answer
114 views

How to get a fall-through behavior in case statements in bash v3?

I just tested the following syntax on Linux: case "$OSTYPE" in linux-gnu*) ;;& linux*) echo $OSTYPE; ;; esac case "$OSTYPE" in linux-gnu*) ;& linux*) echo $OSTYPE; ;; esac which works ...
1
vote
0answers
56 views

Restoring original files from the trash by aliases

Someday in the future, (definitely not today) I might find myself in the following situation and be in need of assistance: Lets say I was trying to clean up my desktop and tried to move many files ...
1
vote
0answers
21 views

Updating modifier keys from the command line takes no effect

The goal: map "Caps Lock" to "Control" from the command-line. I'm trying to update the modifier keys from the command-line with the following command as explained here and here but to no effect. $ ...
0
votes
0answers
17 views

How to convert relative to absolute path? [duplicate]

As per this answer, the solution in most flavors of *nix is readlink -f /relative/path But the MacOS (I use 10.9.2) implementation of readlink does not support the -f option. How do I convert a ...
0
votes
1answer
24 views

Copy text from command line as formatted text

So I have a script that outputs this <pre style="background:#f1f1f1;color:#000;font-weight:bold;">echo 'Hello World';</pre> What I would like to do it copy it to the clipboard as rich ...
1
vote
0answers
76 views

How does Activity Monitor get the URLs related to a “Safari Web Content” process?

Does anyone know how Activity Monitor.app gets the list of URLs that are related to a Safari Web Content process? Those processes show up as com.apple.WebKit.WebContent in ps output.
1
vote
1answer
97 views

How to run apple and custom git side-by-side

I have installed the Apple Developer Tools 5 on Mac OS X 10.9.4 which comes with Git: git version 1.8.5.2 (Apple Git-48) I also have installed Git 2.0.1 using the Mac OS X installer. How do I best ...
0
votes
1answer
98 views

How to get rid of emoji (emoticons) in Terminal.app (OS X 10.9)

I am experimenting with Twitter API. I now have emoji characters in Terminal.app. I don't know how to handle that. How to get rid of that or use it well? see screenshot
0
votes
1answer
61 views

How to download images from an xml feed using terminal?

How can I download png images from an xml feed that looks the following way? <ListBucketResult xmlns="http://url1.com"> <Name>imagesToUse</Name> <Prefix/> <Marker/> ...
1
vote
1answer
51 views

Command line tools to replace bytes in a file

I need to write a script that patches a few bytes at a particular offset in a binary file. I know of textual tools for this task (sed, though I find it utterly hard to use) but can't find one for ...
0
votes
0answers
47 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
0answers
26 views

How to prevent TextEdit from commandline to cause Developer Unknown warning?

Is there any way (other than disabling Gatekeeper through preferences) to allow TextEdit to open my shell-script from a command-line? I'm more than ok with a dialog warning me, but the current dialog ...
3
votes
1answer
337 views

-d option for split is illegal on OS X 10.9

I have bash script that works on Ubuntu but for OS X 10.9 i get the error for split command: split -b 1000000 -a 3 -d $F $F && rm $F || { echo "Error: 'split' command not installed" ; exit 1 ...
1
vote
1answer
63 views

Using dd on video DVDs gets permission denied after about 700MB

I bought three movies on DVD on eBay. I am trying to make .iso backups onto my external hard drive. The first one I tried using Disk Utility, but it only produced a partial copy (without generating ...