The terminal emulator included in Mac OS X.

learn more… | top users | synonyms

2
votes
2answers
57 views

How to fix files and directories in Mac terminal from being inverted?

I recently was going through some directories and realized that my files/directories are inverted as opposed to being alphabetic from top to bottom. As the terminal is after an ls -al: Public ...
33
votes
3answers
32k views

How can I install 7zip so I can run it from Terminal on OS X

I would like to be able to run 7zip from the command line on Mac. Does anyone have instructions on how to set this up?
0
votes
0answers
18 views

using FISH shell — set default folder for multiple tabs?

I'm using fish shell in OS X. Using the standard bash shell, you can open multiple tabs in Terminal, cd to a different directory in each, and then save the setup as a Window Group (via Window > ...
10
votes
3answers
2k views

name terminal/tabs

Is there a way to name a terminal window or even better give each tab a name. at the moment they just get the underlying process name : for example a tab running elasticsearch gets the name java
0
votes
1answer
2k views

Save a remote server (ssh) connection including password on Mac Terminal

Can I save an SSH connection similar to the answer to this question but including the password?
1
vote
2answers
22 views

How do I to modify Automator Service ditto command?

Using and Automator Service and an AppleScript that is redly available and exists on this thread of but a "GUI" around ditto. The solution works well, however, I am not getting the behavior I ...
20
votes
2answers
9k views

Use terminal scrollbar with tmux

I know how to scroll in tmux using the keyboard, but I noticed that it looks like there's a way to use the terminal scrollbar with GNU Screen. Can this be done with tmux?
0
votes
0answers
31 views

MAC OSX Terminal (TERM)

I am using debian wheezy, I installed mysql but when I login to mysql using command mysql -u root -p and then after typing my password, I don't see any output. According to log file I am successfully ...
0
votes
2answers
37 views

understanding the -R flag and * in rm commands

When using the rm command in OS X 10.9 I accidentally deleted an entire disk. As I understand the command I used: sudo rm -Rfv /Volumes/Disk/AppName\!\ Whatever\ X.app/Contents/Resources/* ...
0
votes
1answer
18 views

How do I remove SSHFS's Terminal library?

I installed OS X FUSE and SSHFS from the official site. Now whenever I type in ssh xxx@xxx.xx, the terminal window is different. Some folders are blue and the window is different; it's not the way it ...
1
vote
2answers
240 views

Homebrew slows my terminal down on startup

I've had some issues with my terminal being extremely slow while starting up (both new windows and new tabs), from 10 seconds and up. I've tried deleting the Apple System Logs, but it doesn't help. ...
0
votes
0answers
26 views

OS X: let scutil use stored secret when connecting L2TP VPN

This is a follow-up question of Start configured VPN from command line (OSX). I tried the answer by @encoded, which suggests the following command: scutil --nc start ...
0
votes
0answers
23 views

OS X terminal.app selection color when window inactive

I am using a solarized color scheme in terminal.app. When I select text it looks great, and I am able to change the color of the selection in the preferences. But when I move focus to another ...
1
vote
2answers
47 views

Changing the default action when clicking on links in Terminal.app

Previously I've been able to open links just by clicking them on Terminal.app. After updating my OSX, the terminal now gives Quick Look as default option for links. Is there any way to disable Quick ...
1
vote
1answer
77 views

How can I use kickstart or something else at the command line to view ARD settings?

I know I can use kickstart to configure Apple Remote Desktop from the command line, but, I can't find anything on the Internet or in kickstart's help message indicating how I can view the current ...
0
votes
1answer
28 views

How can I stop Drobox sync during the day and automatically start at night

I'm trying to stop the Dropbox daemon from running during the day. I'd like to start it and perform a sync around 6 pm daily. I'm running Mac OS X Yosemite 10.10 on an iMac 27'.
1
vote
0answers
39 views

How to display github emoji codes in Mac Terminal?

I want to display emoji codes from http://www.emoji-cheat-sheet.com/ (e.g. :+1: ) inside github commit messages when doing git log. I use Mac Terminal app.
7
votes
3answers
11k views

How to reset mac PRAM through the command line in Lion/Mountain Lion?

I'm trying to write a script to automate a PRAM reset and I've seen a lot of old guides that tell me to use the following command to reset the Mac's PRAM via the terminal: nvram boot-args="-p -r" ...
0
votes
1answer
27 views

Doubled terminal emulation sessions renders foreground and background of characters the same color from the destination

I have some no graphics card (“headless”) server that I have to operate via the serial port as the console to install Linux, VMware, and other OSes. For a terminal server I use a Linux box with a USB ...
0
votes
2answers
51 views

Redirect stderr to second terminal / tty

I've tried things like rse to differentiate standard-output and standard-error streams from a program; but I'd really like the option of viewing the two in separate terminals, without redirecting to a ...
1
vote
2answers
56 views

Awk to merge two files using hash

I have two files of the same length, and I want to swap out one files 3 columns with another file's contents. I want to print the following: f1Col1 f1Col2 f1Col3 f1Col4 f1Col5 f1Col6 f2Col1 f2Col2 ...
16
votes
2answers
5k views

Resume Zsh-Terminal (OS X Lion)

OS X Lion has "Resume" feature, i. e. when you reopen an app it restores all windows and their contents. That works for Terminal as well. But if you use Zsh instead of Bash it doesn't restore opened ...
7
votes
2answers
4k views

ip command in Mac OS X terminal

I use the command ip link in Linux. Now I want it on Mac OS X, but the Mac OS X terminal doesn't have ip. What should I use instead?
-1
votes
1answer
144 views

Mac Command Line Open PDF to Specific Page

The goal is to use command line to open a PDF file to a specific page. The more general question is how do I find out what args are available for any given app? I am able to open a pdf file in Mac OS ...
53
votes
6answers
24k views

Set the title of the terminal window to the current directory

How can I get the Terminal.app in OS X to display the current directory in its window or tab title? I'm using the bash shell.
9
votes
4answers
4k views

Any way to prevent Dropbox from opening the Camera Uploads folder when an iPhone is connected?

When I connect my iPhone to my MacBook Pro, Dropbox always launches its Camera Uploads folder in Finder. Is there any way to turn this off (some command I can run in Terminal, perhaps)? EDIT: To be ...
0
votes
1answer
55 views

How to close open (20+) notification windows from terminal or disable HP Alerts?

For some strange reason an app called “HP Alerts” filled my screen overnight with notification windows telling me one of my inkjet cartridges are low on ink. I have now disabled these notifications ...
48
votes
6answers
26k views

Mac OS X Terminal: mouse support?

Is there a native option (ie. without installing extra soft/package/plugins) to enable mouse support in the Terminal app? Actually, I'm using a lot vim with the option set mouse=a (activating mouse ...
0
votes
1answer
16 views

Mac Terminal Foreign Host-Name

When I was recently connected to a coffee shop wireless network using Terminal for some coding I saw a foreign "preface" (if that is the right word) before my username. Rather than Normal_Name:~ ...
18
votes
5answers
4k views

Copy colored output from Mac OS X terminal

I see a nicely colored output in my terminal. The terminal has a "Export Text As" command but it saves a plain-text file without the colors. Same with copy&paste. Do you know a way to save ...
38
votes
1answer
36k views

How to use Terminal to delete all .svn folders recursively?

what command can I type into Terminal so that I can: delete all .svn folders within a folder (and from all subdirectories) but not delete anything else ?
3
votes
2answers
1k views

Where to learn more about OSX terminal app keyboard settings codes?

If you look at the Terminal->Preferences->Settings->Keyboard pane it displays how some keyboard keys and combinations map to shell strings. The list seems really strange to me as it's missing a lot ...
0
votes
1answer
20 views

print names of files in folder from path in terminal

I was making a program and want to see all the items in a folder by giving it the path. my program uses the terminal so the commands are the same. something along the lines of echo ...
0
votes
1answer
38 views

OS X terminal eating the shift key

I'm switching from iTerm 2 to the stock OS X 10.8.5 terminal (work policy, iTerm isn't on the approved software list). In my tmux configuration, I've mapped shift-left and shift-right to change ...
0
votes
1answer
143 views

OS X command to make current terminal window full screen

I am trying to make a bash script to open up my working environment. I want 1) Open up Terminal.app and type a command like "time_to_work" 2) This command will: a. open up sublime text open ...
22
votes
3answers
27k views

Setting iTerm2 as the default terminal (OSX Lion)

I would like to set iTerm2 instead of terminal.app as my default terminal. Go2Shell for example let you open a terminal to the current directory in Finder. I want to ba able to use iterm2 instad of ...
9
votes
2answers
7k views

How can I export all my Terminal.app settings from one Mac to another?

I want to set a group of terminal windows, each one with personalized colours, etc. How can I move the whole Terminal.app setting from one computer to another? Where are they stored? Can't see them ...
2
votes
1answer
3k views

Using Mac OS X terminal to copy a selection of folders to a new location, with merge behavior

I have a folder 'foo' that contains a lot of sub folders, e.g. foo |---20101 |---20102 |---20103 |---20111 |---20112 |---20113 There are way more than this, but hopefully it explains the ...
7
votes
4answers
20k views

How do I make Vim beautiful (read: Textmate font/color ) on Mac OS X Lion? [closed]

I am just starting to make the Textmate to Vim switch. I love it, but it's so ugly. I'm running Mac OS X Lion and needed Ruby support so I am using Vim 7.3 as installed via Homebrew not the Vim Lion ...
0
votes
2answers
87 views

Does closure of Terminal stop remote script execution?

I have NAS (running Linux) and Macbook. What if I start the OSX Terminal application, connect to my NAS thru telnet and execute there some script: python myscript.py > log.txt Will it continue ...
1
vote
1answer
320 views

How to mount/unmount webdav server directory using Terminal

I use OS X 10.10.1 and I want to mount a HTTPS webdav server directory as a volume on my local machine using Terminal. I found this utility -- mount_webdav -- which seems to work - I created a ...
1
vote
1answer
186 views

Cancelling shutdown -h command on Mac

I usually use the command sudo shutdown -h +60 from the Terminal on my Mac. Although I'd like sometime to cancel the scheduled shutdown or postpone it. Is there a command to do so? If yes, how?
0
votes
0answers
47 views

OSX Terminal Command for Detecting a Language

I am aware that OSX can detect a language as part of it spell checking. Is there a terminal command for doing this? So far I have found file which reports the language of file but it doesn't seem ...
1
vote
2answers
44 views

Make perl regex search exit with failure if not found

With grep I get a failure return code/exit status if no result is found. How can I do the same thing with perl? Basically, I would like to change the following so that it exits with status 1 if no ...
7
votes
4answers
20k views

Does anyone have a Mac Terminal script to remove hidden files?

My car stereo can play music from USB flash drives, so I asked about copying MP3s from an iTunes playlist. That worked fine, but my stereo wouldn't play the MP3 files. I eventually put the flash ...
0
votes
1answer
32 views

Copying only files without a special string in filename

I have to copy only files from a folder that don't have following string in its filename: NNNNxNNNN (a 3 or 4 digit number followed by the character x followed by a 3 or 4 digit number again -> it's ...
8
votes
2answers
13k views

How to stop and start dropbox.app in Apple Terminal?

How to stop / start dropbox in the Apple Terminal? dropbox stop works when using Oracle Linux, but not within Mac OS 10.6.8.
0
votes
1answer
60 views

pstopdf mac terminal width and height options

Are there any options which set width and height of outcome document of pstopdf command in terminal? I've used a2ps command to convert my Java code files into .ps file, now I want to convert .ps file ...
6
votes
4answers
2k views

Mac OS Terminal - keyboard echo breaks after ctrl-c with some applications

The only two applications I've been able to reproduce the issue with are tail and cat. If I tail -f log/development.log or any file for that matter, and press CTRL-C to quit, when I type additional ...
5
votes
5answers
6k views

Spawn a new terminal window (Mac OS X)?

I am often working in a process in the Terminal and I've set some variables and used cd and so forth. Then I'd like to open another Terminal window from there. Is there any way to do this?