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)

0
votes
1answer
28 views

Terminal stuck at error won't accept any commands.

I was trying to install CLI package from github but I messed up during the process and ended up getting this error. It is persistent and won't go away. Terminal wont accept any commands like mkdir, ...
2
votes
1answer
38 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
43 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 ...
1
vote
1answer
20 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
24 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
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
13
votes
2answers
512 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
56 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 ...
2
votes
1answer
96 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
49 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
17 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
29 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
54 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 ...
2
votes
2answers
141 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
32 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
171 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
35 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 ...
1
vote
1answer
124 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
69 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
124 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
45 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
91 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
247 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
107 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
32 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
22 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
20 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
58 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
83 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
41 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
39 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
170 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 $ ...
4
votes
0answers
459 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 ...
1
vote
1answer
372 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
103 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
48 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
31 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
146 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
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 ...
1
vote
1answer
52 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
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: ...
0
votes
1answer
55 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
33 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
125 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
66 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
26 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
30 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
107 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.