Terminal (or Terminal.app) is the program included in Mac OS X for running applications and issuing commands using the command line interface. These programs are controlled by typing lines of text, rather than using the mouse or keyboard commands in the usual graphical user interface (GUI).

learn more… | top users | synonyms

0
votes
2answers
83 views

Run .command with input at runtime

I need to run a .command file with input at runtime, but I want to run via double click, not from terminal. I have a file adbInstall.command file with this code adb install /Directory/$1.apk From ...
5
votes
1answer
4k views

Using bash/terminal to get number of battery recharge cycles

I would like to get the number of recharge cycles using bash (terminal commands). I understand the following command will display all of the battery data, but I want the cycle count on its own ioreg ...
1
vote
1answer
59 views

How do I make my list filter in Java usable in Automator as a service?

A friend of mine has written me a small Java application that is used to filter two lists of words (used for work sadly). Currently I would run the application in the terminal like so: java ...
3
votes
3answers
4k views

Find all executable files within a folder in terminal

I have a folder myfolder that contains a huge hierarchy of files/folders. How to find all executable files within this folder? On Ubuntu this works: find . -executable -type f But Mac OS X Mavericks ...
4
votes
2answers
3k views

How can I enable and/or disable OS X's power nap feature from within Terminal?

I can deal with it using some command-line commands such as defaults write … etc, but don’t know what the exact command and argument names to use?
5
votes
1answer
1k views

How to launch TextMate (and probably other software) from the command line?

I am very new to Mac, coming from Linux. I am using TextMate, and I suddenly discovered I do not know how to launch TextMate from command line. Using completion, nothing looks like TextMate. Where ...
5
votes
1answer
286 views

What is the relationship between `launchctl limit` and `ulimit`?

There is not any ulimit configuration in system startup files/ shell startup scripts. ulimit -a shows: -u: processes 1064 -n: file descriptors 256 launchctl ...
2
votes
2answers
575 views

Terminal.app equivalent of `xterm -e 'cmd'`

With xterm (and gnome-terminal, terminator, etc), you can run the following command: $ xterm -e 'vim somefile.txt' xterm will open and run the specified program (in this case, Vim). When the ...
3
votes
1answer
159 views

How to get everything from terminal mail(1) sent to my email address?

I'd like to be notified by email whenever a message gets sent to my terminal mail, how could I achieve this? I see some information about cc'ing in this documentation, but I don't know how to use it ...
3
votes
1answer
2k views

Terminal problem with Ctrl + Arrow and Shift + Arrow keys

I am running Mavericks on a new Macbook Pro. When I use the Ctrl and Shift keys together with the arrow keys, I get some sort of key codes as output in the terminal. I am pretty sure that this problem ...
0
votes
1answer
640 views

Why can't I navigate to /.ssh folder on jailbroken iPhone 5S

I have installed OpenSSH on my jailbroken iPhone 5S, I am trying to set up ssh keys for it but I need to get to my /.ssh folder. I try to cd there while at root with cd ~/.ssh but it says "not a ...
1
vote
1answer
3k views

Purge command - Unable to purge disk buffers, error #-2?

When I attempt to run the purge command, I get the same error every time. [ERROR] <CPDevice.c:3816> Unable to create new counter client. [ERROR] <CPOSX.c:1172> Unable to get user ...
1
vote
1answer
4k views

Can I run an SQLite operation from Terminal?

When I download transactions in Quicken Essentials for Mac, my bank adds "DEBIT PURCHASE" and other junk to the Payee info. Quicken has no ability to find and replace globally. But I dug into the ...
11
votes
2answers
2k views

Shell Script for Yesterday's Date

I'm trying to execute the following shellscript with hazel app on any file in the folder. It works, but the only thing thats causing a problem is the date for yesterday. #! /bin/bash saveDir="TJ" ...
0
votes
2answers
435 views

How to view previous inputted MAC Address for WiFi network

I have a Belkin Router and accidentally changed the MAC Address for the Wireless Area Network. Is there a way to retrieve previous inputted MAC Address using Terminal? I'm looking around system and ...
2
votes
1answer
151 views

Showing wrong name in terminal

My Macbook's name is 'Suman'. But in terminal I have something different. How to solve it ?
2
votes
0answers
65 views

“l/” in shell creates a whitespace

Whenever I type l/ in terminal on OS X (Mavericks), it replaces it with a blank space. I can't seem to find any relevant problems or fixes on Google and I have no idea why this happens. For example, ...
66
votes
2answers
99k views

How can I create a symbolic link in Terminal?

What command is used to create a symbolic link/soft link?
5
votes
1answer
324 views

pbcopy exits code 1, no error message

I'm trying to use pbcopy and pbpaste to copy and paste to the clipboard from a shell. I read the man page to learn the syntax for these programs. However, no matter how I try to invoke pbcopy or ...
1
vote
0answers
104 views

Battery value in terminal different to battery value in menu bar

My MacBook Pro Retina is currently reporting 100% battery in the menu bar, however if I run the following command in terminal; ioreg -l -w0 |grep Capacity The following is returned; | | ...
3
votes
3answers
5k views

Use rsync to automatically copy a file to another folder

I found this command to copy the content of source to a destination folder. rsync -r source/* destination What I would really like is to have this command run automatically each time a file is ...
1
vote
1answer
212 views

Strange characters appearing in Terminal

When using Terminal, I sometimes get the following appearing. Last login: Fri Dec 27 22:04:56 on ttys002 ޕ:~ agrimm$ cd ruby ޕ:ruby agrimm$ cd .. ޕ:~ agrimm$ cd ruby/ ޕ:ruby agrimm$ pwd ...
3
votes
1answer
1k views

Command Line: create a link to folder and access files in this folder

I want to do this thing: Create a link to a folder. Put this link in home (~) directory Access files in linked folder from home directory (~/LinkToFolder/file) What is the best way to it? Main ...
4
votes
2answers
6k views

Change compile configuration of package installation in brew

How can I change the compiler configuration when I use brew install? I want to compile vim with +farsi using brew. But it seems that +farsi is not available options in brew: $ brew install +farsi vim ...
6
votes
2answers
5k views

How to put a custom launcher in the Dock (Mavericks)

I am new to Mac OS (I am currently using Mavericks) and I have performed google searches as well as search on StackExchange regarding my question but the discussions I came across don't quite answer ...
2
votes
3answers
132 views

Defining some global GIT settings to be automatically inherited

Sysnopsis Coming from a Linux background I still find Apples' modifications to the Unix hierarchy somewhat confusing. Nevertheless these subtle changes make it difficult for me to quickly do what I ...
0
votes
2answers
74 views

Why are the terminal color brighter than the ones I set?

I've changed my terminal's color but, as always, the color I set are rendered brighter than they really are. Here's the proof, I set the exact same color on ST and on my term, you can clearly see the ...
1
vote
1answer
96 views

OS X Terminal fn+delete doesn't work, prints ~

I recently did a fresh install of Mavericks, and ever since I haven't been able to use the fndelete keystroke in Terminal. On the command prompt, fndelete prints ~ and if I'm in vim, fndelete will ...
9
votes
6answers
4k views

Completion for git commands

I recently switched from using an Ubuntu box for the last 7 years to a Mac. I have read other posts like Switching from Ubuntu to OS X and I'm lost and What is the difference between iTerm2 and ...
1
vote
2answers
384 views

What options does Terminal pass to bash on startup?

In the Terminal preferences, I'm able to configure the Terminal to "Open shells with:" -> "Command (complete path):" /opt/local/bin/bash. What options is the terminal passing when invoking this ...
2
votes
2answers
1k views

Bash Terminal keeps showing “No such file or directory” at startup

-bash: /Users/MarksMac/Library/Enthought/Canopy_64bit/User/bin/activate: No such file or directory Basically, how do i remove the above error? I am using a mac 10.9.1 I have tried looking up ...
2
votes
2answers
356 views

Why isn't `history -a` working?

I am working under OS X 10.9.1 (Mavericks), using Terminal, which reports that it is GNU bash, version 3.2.51(1)-release (x86_64-apple-darwin13) I noticed some weird issues where history was not ...
1
vote
1answer
52 views

Open Terminal to a Specific Directory [duplicate]

On Windows I can Shift Right-click in a folder and I am presented with the option to Open a Command Window Here. Is there a way I can do this on my MacBook Air? Or, do I need to open the terminal ...
6
votes
1answer
290 views

Can the default permissions on /dev/disk* be changed?

Is it possibile to change default permissions /dev/disk*? In Linux this is done in the udev configuration files; which is the equivalent on OS X? I'd like to give group write permissions so members ...
2
votes
1answer
929 views

Change default alert sound from terminal in Mac OSX

The version of Mac OS X being used is 10.8.5. When I click the back button on an empty terminal windows if give a alert sound which is the 'Funk' sound in the System Preferences -> Sound -> Sound ...
0
votes
0answers
115 views

Opening Terminal shows a list of ttys - unable to use

Having the latest Mavericks installed, I tried to update PATH using nano and creating a .bash_profile file. I'm not sure what happened, but now when trying to run Terminal all that shows is a list of ...
2
votes
1answer
367 views

How can I rename an ordered list of files with an ordered list of file names?

I have a series of files. I need to apply a series of file names. So, 001.jpg -> apple.jpg 002.jpg -> banana.jpg 003.jpg -> orange.jpg etc. I will have to repeat this for each of 16 folders with ...
2
votes
1answer
903 views

iterm - what's the key-combo to switch panes?

I've learned how to split my terminal windows with apple-d and apple-shift-d. Its very useful. How do I then switch between the two panes (see below) using the keyboard? I know I can use the mouse ...
2
votes
0answers
101 views

Activity Monitor confusion

I have two java programs that run forever until I terminate the process, I start both at once using a script.... Cobrakai$more startCapture nohup startCaptureA.sh & nohup startCaptureB.sh & ...
2
votes
0answers
68 views

How to prevent OS X's 'screen' command from resizing the terminal upon entry?

I usually run my terminal sessions in 132 character wide mode in iTerm. However, when I start the 'screen' command, it re-sizes the terminal back to 80 characters. Is there a way to prevent this?
1
vote
1answer
341 views

Does Apache require special settings to run a command?

I am trying to create an image using Bio::Perl/Bio::Graphics and implement it on my webserver. However, whenever I am trying to run my scripts online, the command line does not respond to run my ...
3
votes
1answer
17k views

Full privileges on .command file, but it says I don't have appropriate privileges

I have a command that I regularly need to run in the Terminal (for application code signing). Normally I launch the Terminal, press the up arrow until I reach the command I want, and then hit enter. ...
5
votes
5answers
3k views

OSX Bash for loop - issues with spaces in folder names?

I'm getting a bit confused on how to handle spaces in path names when returned in a for loop. Rationale: I'm cleaning up the permissions on folders and files that I copy over from Windows. Most of ...
2
votes
2answers
17k views

Sudo password doesn't work even if I have no password

I've erased the password from preferencenow I can log in without using any password but when I run a sudocommand terminal ask me a password if I insert nothing or the old one it return error. What's ...
0
votes
1answer
3k views

Unable to enable AVB under Mavericks on MacBook Pro

I have a MacBook Pro that has the Thunderbolt hardware which means it should be able to support EthernetAVB. I have done a search and found the command to enable it at the website Manual Pagez. The ...
3
votes
4answers
251 views

How to get to know OS X/Unix better? [closed]

Not sure how to ask this but this problem has troubled me for so long. I'd long been a DOS/Windows user until about 12 years ago when Mac OS X first came out I turned to the Mac, and stayed here ever ...
4
votes
2answers
9k views

How to debug Trace/BPT trap: 5?

I get a Trace/BPT trap: 5 error when using the open command: $ open -a Emacs Trace/BPT trap: 5 $ open -a Safari Trace/BPT trap: 5 $ open -a TextEdit Trace/BPT trap: 5 Any suggestions how I can ...
3
votes
3answers
1k views

Parental Controls Through Terminal

I have it setup so that my son only has 1 hour of computer use per day. He commonly needs extensions, and I think the only solution to do it while I am away is through terminal. Is there a way to ...
1
vote
0answers
458 views

Building netgen on Mac OS 10.9 - problem with tcl and tk

I am a very beginner in building from source on Mac. (It's my first request here...) I am trying to build netgen and ngsolve. Mac OS 10.9, Xcode 5.0.2, macports version 2.2.1 After installing tcl ...
1
vote
1answer
165 views

Add color to custom ls alias

I created an alias to display permissions in octet format: alias lso="ls -l | awk ' { k=0; for (i=0;i<=8;i++) k+=((substr($1,i+2,1)~/[rwx]/)*2^(8-i)); if (k) printf("%0o ",k); ...