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
0answers
34 views

Is it possible to dock a detached Web Inspector in Safari 8? [on hold]

I'm running Yosemite Public Beta 2. 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 ...
0
votes
1answer
23 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
16 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
17 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
28 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
14 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
30 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
39 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
16 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: ...
-1
votes
0answers
23 views

Security command “add-internet-password” and Safari

I am using the security command to add an internet password to the login keychain, specifically to our internal intranet, which requires authentication. I know i have the command correct, because the ...
0
votes
1answer
33 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
26 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
61 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
14 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 ...
0
votes
0answers
7 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
19 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
22 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
43 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
52 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
37 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/> ...
0
votes
1answer
31 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
18 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
19 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 ...
1
vote
1answer
237 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
33 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 ...
0
votes
0answers
29 views

How to record human voice and display as text on command line?

I am looking tool or a script that records human voice and displays as text purely on command line. I am not looking for text to speech, but rather speech to text. I do not want to work at all with ...
2
votes
4answers
87 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 ...
1
vote
1answer
42 views

com.apple.quarantine extended attribute gets re-added each time I open the file

I have a file called tasks.taskpaper that I associated with FoldingText. When I open the file, the dialog pops up with text “tasks.taskpaper” may be a script application. It was created by ...
0
votes
0answers
45 views

Having trouble installing apache ant on mac os 10.9

In the terminal when I type 'ant' I get this back: The program 'ant' can be found in the following packages: * ant * ant1.7 Ask your administrator to install one of them How do I, the administrator, ...
6
votes
1answer
56 views

Get ambient light sensor value from ioreg

I'm using the ioreg command line tool to try and read sensor information available on my computer (iMac). Particularly, I'd like to read the current value of the ambient light sensor. So far, I have ...
1
vote
1answer
13 views

Viewing/Changing App paths used by `open -a foo.app …`

When using open -a iTerm.app SOMEPATH from a shell-script or Emacs eshell command, it appears to launch a different instance of iTerm than the one in /Applications/iTerm.app that I'd expect. ...
3
votes
1answer
75 views

open image full screen with “open -a Preview”

Using osx 10.9.3 I would like to write a script that opens images full-screen with preview but I can't seem to find the command line options for the Preview application.
0
votes
0answers
31 views

open command could not be found

Where can I find 'open' command?(OS X 10.9.3) I think there may be some issues in my environment or I may remove this tool by mistake. ➜ ~ open zsh: command not found: open ➜ ~ which open open ...
6
votes
6answers
357 views

How to prevent the application launched in Terminal from undesirably exiting?

I launch applications from the Terminal with commands like this one : /Applications/Mail.app/Contents/MacOS/Mail & The important part is the &. For Unix / Linux / Solaris : I have ...
1
vote
2answers
60 views

Rename screencapture program

I would like to rename the "screencapture" utility triggered with the shift+cmd+3 keys, in order to take screenshots from a program that recognizes and disables this utility. Specifically, I want a ...
2
votes
1answer
58 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 ...
1
vote
2answers
258 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 ...
2
votes
1answer
51 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 ...
1
vote
0answers
39 views

Terminal speed up doesn't accept command line arguments from outside source?

From a previous suggestion I changed terminals startup command from default to '/usr/bin/bash' which I created as a link to '/bin/bash' which stops terminal from login in every time I open a tab ...
1
vote
1answer
49 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 ...
0
votes
0answers
60 views

How can I export a single private key in OSX with the command line?

I need to export a identity from my OS X Keychain with the command line. With security I can only export all identities as a single p12, but I need to export just one (I want to use it with Xtify) I ...
1
vote
3answers
87 views

Accessing Apple Mail's mailboxes remotely, maybe over SSH?

Because of the way my work email is set up, I currently have my Mac (at home, running Mavericks) fetching my email via POP from my work's email server. I've been able to access my email over SSH ...
1
vote
1answer
32 views

Keychain: ask for certificate from command line

Is it possible to ask for certificate (.certificateRequest file) from command line? I want to mimic behavior like Keychain -> Certificate Assistant -> Request for Certificate in Certificate Buro from ...
2
votes
1answer
24 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 ...
1
vote
0answers
30 views

SIDO Error: unbound variable: voice_kal_diphone, to generate prompt using festival

I have tried to generate the prompts and their label files with the following command The to synthesize the prompts festival -b festVox/diphlist.scm festVox/us_schema '(diphone-gen-waves “prompt-wav” ...
1
vote
1answer
207 views

Is there a built in command line utility for airport and other wifi networks?

Is there a built in command line utility to show information about Apple Airport networks and other wireless networks? Where? What's its usage?
0
votes
0answers
37 views

Way to bypass USB lockdown from the ProfileManager via command line?

As I manage a few MacBooks in a company we enforce security policies by Profile Manager. One of those policies is blocking USB ports. We have a group of people that we allow to use USB. It works well, ...
1
vote
2answers
39 views

Writing special characters to the clipboard with the command line

I'm trying to write the string あいうえお to my clipboard using the pbcopy command line tool like this echo あいうえお | pbcopy But what I'm getting in my clipboard is completely different : „ÅÇ„ÅÑ„ÅÜ„Åà„Åä. ...
5
votes
2answers
246 views

Understanding the 'staff' user group

It's known that all users are members of the 'staff' group. If you setup a standard user and create any file, a list of that file in the terminal with 'ls -la' shows the user group to be 'staff'. ...