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

2
votes
1answer
41 views

Is there a tool to save a snapshot terminal session for later recovery, like a virtual machine?

I work on multiple projects with multiple type of servers required, and when I switch project I shut down any of the applications and start the ones I need at that moment from the terminal. I ...
2
votes
1answer
64 views

Special character codes are displayed in the Terminal for diacritics when connecting to an Ubuntu Server

When I connect to an Ubuntu Server (ssh) and I try to see some text in the Terminal form the remote server, I get character codes instead of the appropriate text with diacritics. for example for a ...
6
votes
5answers
28k views

How to cd to a directory with a name containing spaces in bash?

I tried cd "~/Library/Application Support/" -bash: cd: ~/Library/Application Support/: No such file or directory also cd ~/Library/Application Support/ -bash: cd: ~/Library/Application Support/: No ...
5
votes
4answers
2k views

iTerm2/Terminal full screen

Why is it not possible to have iTerm2 or Terminal app take up the full available space on the screen. Let me show an example: It's hard to see but if you look on the right and bottom edge, there is ...
0
votes
0answers
24 views

set default browser (all users) from CL?

Is it possible to set the default web browser for the computer (i.e. for all users) from the command line? If I understand correctly, individual users' browser preferences are stored in ...
2
votes
2answers
124 views

How to disable Notification for Terminal app?

When i am starting a new server from the Terminal app, and i have the window not active, the Dock icon "jumps" up and down, also called "notifies me". I don't want this behaviour, i want a quiet ...
4
votes
3answers
554 views

pbpaste, pbcopy using wrong pasteboard?

I'm converting a shell script which xclip and similar tools on Linux, to use pbpaste and pbcopy on Mac. The problem is the default pasteboard ('general' according to the man-page) for these tools is ...
3
votes
4answers
11k views

How do I download folders through FTP in Terminal?

How do I download a whole folder through FTP in Terminal?
0
votes
1answer
38 views

How to install the RHIDE C++ IDE in OS X?

I'm looking to mimic the environment of the classic Turbo C++ compiler from the DOS days on Mac OS X. I have used DOSBox with actual Turbo C++ installed in the virtual drive, but I'm just ...
0
votes
1answer
61 views

Move files to individual folders, using file name as folder naming convention for folder, using Terminal

I've been looking for answer on the web now for a few hours and can't find what im looking for. What i want to do is move each file in a directory to a new folder using the name of the file, excluding ...
1
vote
2answers
2k views

Wake Other Computers from Mac OSX

Is there a terminal command within Mac OSX that will allow me to use WOL (Wake On LAN) to wake up other computers? Windows has wolcmd, is there an equivalent within OSX? I am trying to wake a ...
6
votes
5answers
2k views

How to make terminals open side-by-side?

I use terminals a lot, and I frequently open and close them. The problem is that whenever I open a new terminal using ⌘+n it overlaps the current one, and I have to move it out of the way first. ...
8
votes
4answers
7k views

How do split panes in Terminal work?

I tried to open a split pane to run another command but instead it displays the same in both panes and I can only interact with one of them. I thought it would split the view so I could use the two ...
16
votes
6answers
30k views

How do I start TextEditor from the command line?

I work a lot at the command line in a Terminal and would like to start a text editor on a certain file. I'm from Linux Land and normally use kwrite or gedit from a bash shell. Trying to find the Mac ...
0
votes
3answers
164 views

Is there a package management system for shell scripts on Mac OS?

Is there a package system (think npm, cpan, or even homebrew) that would be suitable for shell scripts?
2
votes
5answers
531 views

List all tags in Terminal in Mavericks?

Is it feasible to list all tags already defined in OS X in Terminal? I know there are some third-party applications that list all tags, but I just want to use Terminal to find all tags, since I use ...
1
vote
1answer
62 views

How to install terminal application globally?

So I mess around with terminal once in a while. Occasionally I find I have to compile from source with the usual: ./configure make (sudo) make install I'm trying to install gtk+ following the ...
3
votes
1answer
40 views

Using `say` to read terminal output from a command line tool?

I'm not sure if this is possible. I'm using a command line log parser for an MMO I play. Information is shown in Terminal window but I have to read it while playing rather than hear it while playing. ...
0
votes
2answers
42 views

Convert audio to OGG format via Terminal

Is there an app or a method that I can use from Terminal to convert audio files to the OGG format? I know about afconvert but that doesn't provide the ogg format that I want.
1
vote
1answer
43 views

How to share .bash_profile between different users in the same group? [duplicate]

I have searched by google but cannot find a right solution.The scenario is like this: in my mac, there are two users, lets say user1, user2. these two users are in the same group, which is staff ...
0
votes
1answer
28 views

How to script a logout while screen is locked?

I want to log out a user via a shell script, after a delay. However, there's a few other issues: User does not have admin and/or root. Logout must complete even if screen is locked. Currently, I'm ...
1
vote
1answer
32 views

How to monitor output sound from terminal

Is it possible to read current volume or frequency of outgoing sound from terminal? I am using OS X Mavericks
7
votes
2answers
1k views

How can I install the Command Line Tools completely from the command line?

I'd like to script the installation of the the Xcode Command Line Tools. On Mavericks, xcode-select --install will open a dialog prompting the user to install, but I'd like to trigger the install ...
0
votes
1answer
56 views

How is $PATH created?

I am still relatively new to the workings of the Mac OS but have extensive knowledge of Linux. I updated my php on Mavericks using the php_osx and the instructions stated to use export ...
0
votes
1answer
32 views

Sound effects for commands completing in inactive tabs/windows

I think my life would be that much better if a subtle sound effect was played when a task completed in a terminal window/tab that's not the current one. It'd be even better if an exit code 0 sounded ...
0
votes
0answers
63 views

Mount Folder in Maverick

I want to mount a folder to another folder. My reasoning is: I have a free box.net account with 50GB, but it does not include versioning. So I would like to put the folder under git. But I do not want ...
2
votes
1answer
102 views

Forward slash doesn't work when in terminal… works in every other application

I'm trying to use terminal and in every tab I open, when I try to change directory such as cd / I get a beep and am unable to type the character. I am on the same computer and am able to ...
6
votes
3answers
6k views

How do I find my IP Address from the command line?

I know you can do ifconfig | grep inet, but that shows you several IP addresses. How do I get the specific one for SSHing et al?
11
votes
2answers
4k views

How can I find the serial number on a mac programmatically from the terminal?

What command can I use to retrieve the system's serial number from the unix command line? As uname will output some information about the software and hardware, I would like to retrieve the serial ...
0
votes
1answer
27 views

How can I set a shortcut to close the window of TotalTerminal

TotalTerminal is great. But, if it is not the active application, in order to close its window, I have to enter again the application. Is it possible to set a shortcut to close the window of ...
1
vote
2answers
151 views

Is it possible to use TotalTerminal with Go2Shell?

I am using TotalTerminal. Now, I want to use Go2Shell, so that I can access quickly a terminal in the good folder. But, when I click on the Go2Shell icon, it opens a usual Terminal and not a ...
1
vote
1answer
93 views

Tail multiple log files

I have an application which generates new log files each time it is run. They all go to one folder, with filenames like this, and the next log isn't started until the current one is finished. ...
0
votes
0answers
13 views

“Lastb” command in Mountain Lion [duplicate]

I just got a new MacBook, coming from years on linux, and I must say: I love it. I am currently working on a personal project that relies on seeing previously invalid log in attempts. In linux, there ...
1
vote
0answers
40 views

Terminal wraps at 80 chars even if window is wider

Problem description If I increase the width of a Terminal version 2.3 (309) window, and then use less (or some command invoking less, like man) in that window, I often get garbled output, since the ...
1
vote
1answer
63 views

How do I route internet through local PPP connection I have on PTY terminal?

I'm doing this hack job where I have routed a cell phone's GPRS modem over to a local PTY. The proprietary debug software actually routes the modem over TCP, I then use socat to route it to a PTY ...
3
votes
1answer
934 views

How to Sync MacOS Applications + Preferences across multiple Macs without OS X Server?

Will the following work? If not, can someone propose better alternaives to solve this problem? Summary problem: I want to sync multiple MacBook Air's, Pro's and possibly Mini's with the same ...
8
votes
2answers
1k views

mount is adding a quarantine flag, causing: /bin/bash: bad interpreter: Operation not permitted - but not the usual suspects

OK, I'm having a similar problem to: -bash: Applications/mvim: /bin/sh: bad interpreter: Operation not permitted - but it's not the same problem. I'm getting the same result. I've already verified ...
1
vote
1answer
50 views

Compiling / installing shotdetect for OS X

I would like to find scene changes in a video with this command line tool: Shotdetect is a free software (LGPL) which detects shots and scenes from a video. Dependencies are: sudo apt-get ...
1
vote
0answers
23 views

Can't use Alt+N in Terminal

I installed Zsh the other day but didn't like it so I promptly removed it. Since doing so however I'm no longer able to type alt+n to get a ~ character, whilst it works everywhere else. Yes, I know I ...
0
votes
0answers
73 views

Command line tools for OSX Mavericks unavailable after installation

I'd like to install TuxMath on my Macbook running OSX Mavericks. In order to do so I need to install command line tools. In the Terminal this can be done by xcode-select --install It tells me ...
1
vote
1answer
59 views

Root crontab won't save

I'm trying to add a crontab entry to my root user's crontab. I'm able to add an entry without issue to my regular user's crontab, but when I su to root user and try adding a crontab entry it does not ...
1
vote
1answer
146 views

How to debug slow terminal prompt?

Ever since I upgraded to Mavericks, the Terminal prompt became a bit slower at coming back. It's not a huge deal, but there's now a slight noticeable delay before the prompt comes back (maybe like a ...
0
votes
2answers
3k views

MySQL not working on mountain lion

I'm using mountain lion, I have installed MySQL. GUI It shows MySQL is running, but when I type mysql --version It gives error "mysql: command not found"
1
vote
1answer
52 views

Use find in Terminal to remove directories and files of same search parameter

If I type the following into Terminal, it will remove all files that meet the search parameter: sudo find . -type f -name "*Xilisoft*" -exec rm -rf {} \; Then if I start again and type it with d ...
0
votes
3answers
14k views

Access Applications directory in Terminal

I'm really new to command line and I'm trying to access my Applications directory within Terminal. By default, I am stuck in my user directory but Applications is a child of the "Macintosh HD". ...
4
votes
1answer
62 views

Find and replace with grep and perl

I'd like to grep and replace specific text in textfiles within a directory and all subdirs. I try the following: ls -R | egrep '.*\.txt' | perl -i -p -e 's/one.a/two.a/g' Although grep spits out a ...
1
vote
1answer
200 views

Open terminal using a keyboard shortcut

I am using Alfred and hence I don't have any use for the Cmd+Space keyboard shortcut. I want to invoke terminal using that shortcut. Just like in Ubuntu, when you press Ctrl+Alt+T, is there a way to ...
5
votes
5answers
4k views

How do I restore my .bash_profile?

I've accidentally overwritten my ~/.bash_profile file. Does anyone have a "sample" one I could copy, or know where I might be able to find one?
2
votes
0answers
36 views

Why is Terminal.app corrupting my tcsh history?

I've had an ongoing problem that appears to be specific to OS X and Terminal.app: periodically, I get garbage in my tcsh history that looks like this: ^[[1m^[[4mcomputername:~/Code/emacs-source ( ...
0
votes
0answers
31 views

How can I hide the TotalTerminal Visor from the command line?

I am using TotalTerminal. I know that I can set hotkeys to show or hide TotalTerminal's visor, but is there a command I can put at the end of a command line to hide it? For example: latex ; ...