The terminal emulator included in Mac OS X.

learn more… | top users | synonyms

1
vote
1answer
38 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 ...
0
votes
1answer
53 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?
7
votes
4answers
17k 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
0answers
17 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
31 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 ...
6
votes
4answers
15k 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
31 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 ...
7
votes
2answers
9k 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.
17
votes
1answer
7k 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
1answer
33 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 ...
5
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 ...
4
votes
5answers
5k 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?
7
votes
4answers
5k views

Mac OS X Terminal not logging in

I am running Mac OS X version 10.6.3 and when I open the terminal (with terminal.app or iterm) it just hangs on the login process. I've tried restarting, changing the startup command to /bin/bash, and ...
0
votes
0answers
10 views

How would I enable 'full duplex' MTU?

How would I enable full duplex 4078MTU in my MacBook Pro 2011 i7 2.8GHz? Is this possible to do? fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 4078 lladdr ...
0
votes
0answers
14 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 ...
1
vote
1answer
38 views

How would I restart Apache using the Terminal in Mac OS X?

This is what I’ve done but I’m really new to terminal: Jeremys-MacBook-Pro-2:~ jeremyoconnor$ apachectl restart This operation requires root.
1
vote
1answer
2k views

Perl for matching with regular expressions in Terminal?

I'm trying to familiarize myself a little with Perl to use for regular expression searches in Terminal (Mac). Now, I'm not really looking to learn Perl rigourously, just trying to find out how to do ...
5
votes
2answers
2k views

Equivalent of 'clear' command when using tail -f

I am using the tail -f command to follow an error log, and I often want to "clear" the terminal, much in the same way that the clear unix command moves everything above the top of the window. Is there ...
1
vote
0answers
69 views

Midnight Commander function keys not working

I'm using Midnight Commander in a Mac Terminal. I'm using PC keyboard, so function keys work as F1-F12 keys, but they don't work in MC. I tested what character sequence is sent with each function key ...
1
vote
1answer
27 views

Mac command-line sort files into subfolders

I want to run a command on a very large folder to sort every item into subfolders based on modification date. Can this be done with one line? I.e., all files modified in July 2013 would be moved to ...
34
votes
6answers
41k views

Mac OS X keyboard shortcuts for terminal

After googling for some Mac OS X terminal shortcuts, I wanted to find how can I go back characters on a line on the terminal or words or similar. I found ALT + B but it does not work. Do you know ...
1
vote
2answers
376 views

DTerm: How to open into iTerm2 rather than Terminal.app by default?

In DTerm, one can open a full terminal application by typing ⌘-↩ after a command entered at the DTerm prompt. In a recent release, it is noted that support has been added for iTerm2 in DTerm via an ...
0
votes
0answers
2 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:~ ...
2
votes
1answer
31 views

How To Login To Terminal (OSX) Without Quitting Or Closing Window

I like to keep my windows open on my work machine so when I arrive in the mornings, I don't have to go through the process of opening them all again; and opening all my files. I can pick up where I ...
0
votes
2answers
5k views

How to use Terminal to navigate into a desktop shortcut or folder in applications?

I'm on a Mac and watching a tutorial on setting up Git. I'm in the terminal and currently on the Desktop. I can us ls to list all the items on my desktop, and cd into any of the folders on my ...
1
vote
2answers
561 views

Script for toggling OS X “Show Hidden Files” in Terminal

Is there a way to toggle the hidden files visibility on/off with a terminal script? In pseudocode: if can view hidden files set com.apple.Finder AppleShowAllFiles false else set ...
3
votes
2answers
415 views

How to make ls command not show Icon? files?

I have a folder (say, Downloads) with a custom icon. When I execute cd Downloads and then ls, it displays Icon? Subfolder1 Subfolder2 How can I make the ls command skip (thus not showing) ...
1
vote
1answer
42 views

MySQL in OS X Terminal.app — how to exit mysql command prompt but continue using the Terminal?

I type mysql and enter the mysql command prompt (denoted ~mysql) (I have ohmyzsh installed also). But I can't seem to do anything within it. No commands work. To exit, I type 'exit', and get [Process ...
20
votes
3answers
18k views

How to have full directory path always shown in mac terminal (like linux terminal)

In my ubuntu terminal I have always current directory shown completely. Just like this: blabla@blublu:~/music/my_album/classical/beethoven$ But in my Mac (Mac OS X 10.6.5) terminal does not show ...
7
votes
4answers
3k 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
0answers
60 views

Localhost on Mac causing system-wide problems?

I had some trouble with my 2013 MBP bogging down this summer (apple wasn't sure why...too many chrome tabs or filesystem corruption. in any event a complete reinstall fixed it). I've been doing web ...
0
votes
1answer
25 views

Setting Terminal tab to current directory and program running

How can I make the terminal tab display <name of process running (vim, bash, ruby, etc)> - <parent directory/current directory>?
2
votes
1answer
917 views
11
votes
9answers
10k views

How to get Mac OS X Terminal.app and screen/vim scrolling to play nice?

OSX 10.6.3 Terminal.app Am a pretty dedicated screen user. Terminal.app line buffer and/or scroll does not seem to work for me. That is while in screen anything that goes past the top of the frame ...
21
votes
3answers
5k views

Replace OS X's shell commands with the linux versions?

The commands available by default in the Terminal in OS X, don't seem to behave like their linux versions. How can I replace all of them with the actual GNU linux commands? For example sed -i ...
0
votes
3answers
57 views

How can I see the size of each file in a particular directory in the terminal?

When using the terminal, is there a command that allows you to see the size of each individual file in a particular directory?
3
votes
0answers
19 views

Terminal file find location [duplicate]

I am using a mac terminal (.command) file to launch a Python program. My question is, how can I find the location of the .command file when I am inside of the .command file. Thank you.
0
votes
0answers
34 views

Run command on startup (Mac OS X)

I need to run the command: sudo apachectl stop So that my database web server can handle incoming requests instead of the Apple server. However, this does not survive a restart. I tried setting up ...
0
votes
1answer
74 views

Vim starts with beginning of a “change” command

I'm having an issue with vim startup. Whenever I run vim somefile, it starts as though I pressed c just after startup. So, if I then try to immediately jump to the end of the file with G, it instead ...
0
votes
3answers
353 views

How can I Pbpaste an image in to the command line?

Current use case: I select "copy image" on some random png in safari. I type pbpaste into terminal, and get the link to the image. Is there anyway to get the binary data instead?
3
votes
3answers
502 views

OS X Find and RM recursively through folders with spaces in the names?

WD My Cloud NAS added hidden .wdmc folders to every folder with a jpg without notifying or asking me first. There are many hundreds on my NAS drive. It has something to do with their media server ...
0
votes
0answers
34 views

Move Mac Terminal tab to right/left

Is there a way to set a keyboard shortcut to move a tab in OSX Terminal app to the left or right (note that I'm not asking for a shortcut to move to the tab to the right or left but to move the tab ...
2
votes
1answer
144 views

Open current bash location explicitly in Finder

When double clicking a bundle folder (folder called *.bundle), a Terminal window opens as expected. However, $ open . does not then open a Finder window but another Terminal. Is there a way ...
3
votes
5answers
747 views

How can I free files that are in use by quicklook?

I have a couple pictures I was looking through and deleting stuck in my trash (Mac OS X 10.6 latest) and finder tells me they are in use when I try to delete them. I looked around online and found ...
1
vote
4answers
163 views

How to move only files with other equal filename but different extension in the folder

I have a lot of folders, some with mp3 files only, others with m4a files only, other with files of both extensions. I need to identify which folders have files in both extensions, then move the mp3 ...
41
votes
6answers
22k 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 ...
14
votes
2answers
4k 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 ...
1
vote
1answer
74 views

Key and cursor glitch in Terminal.app

I am having a problem with Terminal. It is triggered when I do something that involves the Command key, Cmd-C, Cmd-V etc. It causes my keyboard actions to not be recognized until I click somewhere ...
0
votes
2answers
61 views

Mac OSX Terminal: Copy Window Contents

I am running a java script, which has some text output. I'd like to copy/paste that output. If I do ⌘-A, it copies everything that's been typed that session, even if I typed clear beforehand. How can ...
0
votes
2answers
3k views

View Shared Folders from Terminal

How can one list the shared folders of a server from the OSX Terminal? For example, I know that on server1, there are several shared folders, but to mount them, I need to know the name of these ...