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
1answer
123 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 ...
6
votes
4answers
14k views

How to download command line tools in xcode 4.5

I just installed xcode 4.5 and need to install the command line tools. The apple documentations says (with very little detail) that there is a download section in the preferences pane. I have yet to ...
0
votes
0answers
164 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
138 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
48 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
25 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
52 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
557 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
72 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
64 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
1k 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'. ...
4
votes
1answer
832 views

Is there a OS X equivalent for iproute2?

I am searching a command line tool collection like iproute2 on Linux. Network Utility is OK, but I would like it on the command line.
0
votes
0answers
123 views

GNU Radio Companion Osmosdr block

When using macports to install gnurado the build stalls and brings my MacBook Air to a snail's pace.I am running osx 10.6.8. I have a .profile file in ~/ but I have a feeling it has to do with ...
1
vote
2answers
45 views

Add commandline app shortcut

How do I run the app: ~/ngrok by typing ngrok? I want to add a shortcut to the ~/ngrok location so that I don't need to know the place where it is when I run the app.
4
votes
1answer
53 views

Graphical man pages viewer in Terminal.app

There is a feature in terminal to view man-page of selected string in external window with ⌃⌘? shortcut. But it has a priority to display preinstalled man pages. So for example I've installed gnu ...
0
votes
1answer
89 views

How can I use Torify for an App on OS X

I want one of my applications to use Tor; however the app itself does not have proxy setting and it uses the System proxy. The problem is that I don't want to set my system proxy and I just want this ...
0
votes
1answer
668 views

Whats the equivalent of the unix tree command on OSX

Whats the equivalent of the unix tree command on OSX (10.8.5)
3
votes
2answers
146 views

Is the power button on my iPhone being turned off programmatically?

I would like to know if there is a code / glitch to make the sleep/wake button on the iPhone 5/5S to stop working. i am almost 100% certain it exists due to some programmers making the code but i want ...
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
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 ...
1
vote
1answer
3k views

How to open a file in Excel from the command line

Is it possible to tell Excel to open a file from the command line? In Linux, I could do this using the command libreoffice --calc test.xlsx
2
votes
1answer
55 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 ...
10
votes
4answers
2k views

Updating modifier key mappings through defaults command tool

I am trying to automate the inital setup of my macbook, that includes installing software and changing OS X configuration to my needs. I have tried to update the modifier keys with defaults, the ...
0
votes
0answers
21 views

How do I make the batch command work correctly under under Darwin?

Under Linux, the command batch < script puts the script into a queue, and scripts (jobs) are started whenever the load average drops below a set value, usually 1.5. There's also a delay after any ...
0
votes
1answer
172 views

Add printer via lpadmin with custom queue

Is there a way to add a printer via the command line that has a custom queue that has two words separated by a space? My command so far is below but does not set the custom queue. Without the queue, ...
2
votes
0answers
30 views

Get RSS Memory usage from entire OS on command line

I need to get the entire count of RAM being used on a command line. I can get individual process RSS usage using ps -o rss= -p #{pid} How do I get all the memory usage for the entire system on the ...
3
votes
3answers
174 views

locate & updatedb - files not found

I ran sudo /usr/libexec/locate.updatedb then locate Radium3 but it returns nothing! but $ ls ~/Library/Containers/com.catpigstudios.Radium3/ Container.plist Data So why doesn't locate see ...
0
votes
1answer
205 views

Repeat a song in afplay

I am using afplay to play a song and I want it to be repeat. Is it possible just using afplay?
1
vote
1answer
84 views

skill -KILL -u $user Command on Max OS X?

Is there an alternative for the skill -KILL -u $user command on the Mac OSx. The basic requirement is I want to log out my current logged in user at end of shell script This program logs out Linux ...
2
votes
1answer
352 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
2answers
187 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 ...
0
votes
2answers
416 views

Adding Ricoh C4501 printer via command line - Installable options

I need to deploy one Ricoh MFP to ~50 Mac users. I thus wan't to do this through ARD/CLI. I'm looking for the correct lpoption tags for the Ricoh MP C4501. I want to set the "Finisher" (SR3020) and ...
1
vote
1answer
59 views

Open Ruby installed gems in editor

How to open installed gems in editor such Sublime Text or Text Mate or Atom? I would like to do it from command line like: open -a Sublime\ Text\ 2 something_here
0
votes
2answers
59 views

“newgrp: too many groups” - why is it complaining?

In my earlier question, I got a response recommending the "newgrp" command. It diligently did the job of putting my desired group at the "top of the list" for the "id" command, but, why does it also ...
0
votes
1answer
64 views

Command Line - How do I change the order of a user's group memberships?

I have a troublesome Mac OS X server to deal with. When I ask for my current group membership using this: $ groups | perl -p -e 's/ /\n/g' I get a list of 20+ groups! cactuar ...
17
votes
4answers
6k views

How do I speed up new Terminal tab loading time?

How can i speed up the terminal startup in Lion? I'm not referring to the startup of the Terminal application, but to the startup terminal windows, like when i open a new tab. I don't have anything ...
1
vote
1answer
44 views

Need help to understand how this find command works

I'm a beginner on OS X and I believe this command will make a list of all files and subfolders of specific folders find /Volumes/Documents/ -exec stat -f "%N %Sm" {} + >~/Desktop/test.txt I ...
2
votes
1answer
491 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
76 views

Equivalent of Ubuntu’s write-mime-multipart?

I would like to generate a multipart mime-encoded document for use as user data on EC2 instances. On Ubuntu, one is supposed to use write-mime-multipart to do this, as per these instructions. Does ...
0
votes
1answer
307 views

Disabling the trackpad from the command line

How can I disable the trackpad (without restarting my computer) from the command-line on OS X Mavericks?
2
votes
0answers
85 views

Does OS X support AnyIP?

I would like to assign a complete block to my mac as described in this question: Can I bind a (large) block of addresses to an interface? There it is explained that AnyIP is supported for IPv6 by the ...
2
votes
1answer
498 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. ...
5
votes
2answers
8k views

Why does Java SE 6 Web Start (javaws) not find the JRE with Apple's Java for OS X 2012-006 on Mountain Lion?

In brief The JRE is installed but javaws can not find the JRE. What can I do on the command line to re-enable the web plugin for Apple's Java 6 in Chrome or Safari? I want to avoid Java 7. (We're ...
1
vote
0answers
98 views

What are the command(s) to script a daily time sync?

I'm experiencing clock drift on my Mac Mini of 1-2 minutes every day. Like questioner here, I get relief if I open Date & Time from preferences every day or two. It doesn't stop the drift, just ...
0
votes
0answers
16 views

Top command not outputting all information

I'm trying to put together a script which collects the information produced by the top command relating to the system rather than the processes (i.e. the top few lines). When viewing in top binary ...
18
votes
14answers
9k views

Lock Screen Command One-Liner

I'm trying to find out whether there is any kind of equivalent command line one-liner which replicates the exact identical functionality of the 'Lock Screen' menu option available via the Keychain app ...
0
votes
1answer
45 views

Does MS Word on Apple has any command line interface?

I wonder if MS Word on Apple has any command line interface? I tried the following: $ "/Applications/Microsoft Office 2011/Microsoft Word.app/Contents/MacOS/Microsoft Word" --help but no help.
1
vote
1answer
91 views

Anyone knows how to view the nice value of a process under Mavericks?

Used to be able to view the UNIX nice value of a process in the top CLI utility. I think it's gone from the top utility on Mavericks? Any other ways to view it?
2
votes
2answers
66 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 ...
1
vote
0answers
139 views

Building mysql with readline instead of editline

I'd really like to be able to use readline instead of editline with the mysql client, but I can't find out how to do this. The bottled mysql that brew installs by default for mavericks is using ...