A terminal is a hardware device used for entering data into and displaying information from a computer. Terminals were frequently used in the days of mainframe computers. Today, most operating systems offer text-based "terminal emulators", which replicate the functionality of a classical terminal, ...

learn more… | top users | synonyms

115
votes
12answers
93k views

How do I detach a process from Terminal, entirely?

I use Tilda (drop-down terminal) on Ubuntu as my "command central" - pretty much the way others might use GNOME Do, Quicksilver or Launchy. However, I'm struggling with how to completely detach a ...
75
votes
4answers
23k views

What is the difference between shell, console, and terminal?

I'm confused with the terminology. What is the difference between shell, console, and terminal?
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 ...
14
votes
4answers
22k views

OSX Terminal showing incorrect hostname

When I open Terminal I expect it to show what my PS1 is set to \h:\W \u\$. However it's not displaying my hostname Eriks-MacBook, as displayed in System Preferences. Instead, it's showing a random ...
46
votes
5answers
18k 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.
13
votes
9answers
22k views

How can I copy on select in the OS X Terminal like PuTTY does?

That PuTTY option to select and then right-click to paste is the best invention after the mouse. Is there any way to make Terminal in OS X do this? Hack the source code? Install something? Is the ...
21
votes
5answers
14k views

Save multiple gnome-terminal layout?

I have multiple gnome-terminal windows open. Is there a way to save the settings (window position, no. of tabs, title etc). across OS reboots ?
9
votes
3answers
8k views

OS X Terminal command to change color themes

Is there a command that can be used to change the color scheme of the Mac OS X Terminal? I like the idea of being able to change colors depending on scripts I run. So far I am just changing the color ...
16
votes
1answer
6k views

Making 256-color AND Line drawing characters both work in PuTTY

I'm having trouble setting up PuTTY with Ubuntu. I'm trying to get line characters to work in aptitude as well as 256-color support, but can only get one or the other. Ubuntu Config Using 64-bit ...
16
votes
3answers
14k views

How do I fork a process that doesn't die when shell exits?

If I run emacs from the shell: $ emacs foo & and then kill that shell, emacs dies. How can I run a command so that it will not die when the shell dies? I found references to nohup, but that ...
6
votes
2answers
6k views

How do I set up an AppleScript to open a new iTerm2 tab and change the directory?

In OS X, how do I set up an AppleScript to open a new iTerm2 tab change to a directory clear the console echo the current directory I had something like this before for regular Terminal, but I ...
7
votes
1answer
2k views

Make OS X Terminal commands I type BOLD

I'd like to make commands I've typed (input) into terminal stand out from all the output. For example: imac:~ buster$ chmod -R g-w myfolder imac:~ buster$ cd myfolder imac:myfolder buster$ ls -l ...
5
votes
3answers
4k views

OS X Terminal Tutorials [closed]

So, I am started to get settled into everyday life with my Mac now and want to be able to utilise the power of the Terminal. Can you provide any good tutorials or sources which will help me learn?
7
votes
1answer
611 views

bash: per-command history. How does it work?

OK. I have an old G5 running Leopard and a Dell running Ubuntu 10.04 at home and a MacPro also running Leopard at work. I use Terminal.app/bash a lot. On my home G5 it exhibits a nice feature: using ...
13
votes
7answers
33k views

How to get vertical split of terminal in Mac to execute different actions?

Every once in a while I see people using what looks like terminal in their Mac, except that in what seems to be one window they have a vertical 'split.' On one side of the split, they have emacs or ...
3
votes
1answer
3k views

All commands are not working on Mac OS X Lion

I am faced with a problem, that I can't run even a single command on my Mac OS X Lion terminal, even "ls" command, when i print $PATH variable, found My-Mac:/ Mac$ echo $PATH /usr/local/git/bin ...
86
votes
4answers
53k views

Way to avoid ssh connection timeout & freezing of terminal tab

When I connect via ssh terminal to certain servers, it timeouts and "freezes" the terminal (doesn't accept, doesn't disconnect, can't Ctrl-C to kill the ssh process or anything). This is in Ubuntu's ...
31
votes
7answers
10k views

How Can I Speed Up Terminal.app or iTerm on Mac OSX?

Every time I launch either iTerm or Terminal after not using it for a few hours, it takes anywhere from 10-20 seconds to return a prompt. The screen is blank, and although I can type I can't actually ...
34
votes
2answers
7k views

Icon? file on OS X desktop

When I ls my Desktop from terminal (by using ls ~/Dekstop), I see a file, Icon?. As far as I can tell, it's empty (nano Icon? shows nothing). It doesn't show up on my actual Desktop, and open Icon? ...
21
votes
6answers
10k views

OS X Terminal.app: how to start a new tab in the same directory as the current tab?

I frequently need to open a new tab in the same directory as my current tab to do something else while my current tab is occupied by a long running process. However, by default when you create a new ...
12
votes
4answers
12k views

TTY with 256 colors?

With URxvt and xterm it is possible to use a virtual terminal supporting 256 colors instead of only eight. Since my Intel GMA graphics card is well-supported by the KMS framebuffer driver, I am ...
41
votes
5answers
23k views

How can I change the keyboard shortcut for switching tabs in Mac Terminal?

I know that you can switch tabs with shift cmd [arrow key] in Mac Terminal, but it is painful to reach the arrow key. How can I change the default keybinding?
7
votes
4answers
17k views

how to kill process in Mac OS X and not have it restart on its own

When I run sudo kill -9 [PID] with the proper process ID, the process stops but then is restarted and has a new PID. I'm trying to kill the mysqld process. How can I mimic the Activity Monitor in ...
17
votes
8answers
6k views

Open a new tab in the same directory

Say you are in /very/cool/and/deeply/nested/folder . And you want to open a new terminal tab in the same folder. How would you do that? I use Mac OS and Zsh.
13
votes
4answers
3k views

Equivalent/Alternatives for Alt+Dot in Mac

One thing i miss from the Linux shell is the Alt+Dot shortcut. What it does is insert the last argument of the previous command. It appears to be a trivial technique, but it's really useful. i.e. if ...
13
votes
2answers
11k views

Linux - Set default terminal size and screen position?

I can't find any settings inside the terminal profile to allow me to set a geometry size and screen x,y coordinates so that the terminal window always opens (even after reboot) in the same location on ...
19
votes
7answers
17k views

Keyboard shortcut to jump between tabs on OS X Terminal

In OS X Terminal.app, if you open new windows, you can easily switch between them with Cmd-1, Cmd-2, Cmd-3, etc. You can also cycle between tabs, using Cmd-Shift-{ and Cmd-Shift-}. (or Cmd-Shift-Left ...
11
votes
7answers
5k views

Good Alternative to Cygwin with Copy/Paste?

I am annoyed that I can't copy and paste into Cygwin... is there a good alternative to Cygwin that will let me do this?
1
vote
2answers
12k views

Getting PATH right for python after MacPorts install

I can't import some python libraries (PIL, psycopg2) that I just installed with MacPorts. I looked through these forums, and tried to adjust my PATH variable in ~/.bash_profile in order to fix this ...
9
votes
6answers
15k views

How to open a clean terminal in Mac OS X Lion?

Whenever I open a terminal, the last used commands appear. I'd like to get a clean terminal when I open it, but I haven't found how to do it. For example if while using the terminal I do: defaults ...
7
votes
3answers
23k views

color coding mac terminal

how do i get the mac terminal to display colors? i.e. in fedora when i use ls it color codes the results based on if it's a file or folder. similar results on mac?
4
votes
3answers
5k views

How do I set my shell in Mac OS X?

I know I can set "Shells open with" in the Terminal preferences, but I'm curious if there's any system-wide way of setting this (similar to updating /etc/passwd in some Unixes).
1
vote
8answers
8k views

How do I rename a bunch of files in the Command Prompt?

I have a problem with filenames. The stupid camera I am using resets the autonumber sequence every so often, and therefore I am getting tons of conflicts if I try and put lots of photos in a single ...
8
votes
1answer
2k views

How to convert a date string to the current time zone on the command line?

How can I convert a date/time string, e.g. 2011-11-13 08:11:02 +0000, to my local time zone on the command line?
5
votes
5answers
35k views

linux terminal undo rm 'somefile' [duplicate]

Possible Duplicate: undo Linux's rm? is it possible to undo a rm somefile command in linux? and if so, how does one do that?
4
votes
3answers
2k views

Alternative terminal emulators for OS X

This might sound ridiculous, but my eyes are tired of looking at the crappy font rendering in OS X's Terminal.app, is there anything you guys recommend? I know it's like one of those things that you ...
3
votes
2answers
766 views

How can I create keyboard shortcuts to run commands in a terminal?

I was wondering is it possible to bind say F5 to output sudo apt-get update so I can press one key to write this into the terminal?
2
votes
1answer
2k views

Changing routing on Mac with two Ethernet ports

I have a Mac tower which has two Ethernet ports. One is connected to our corporate network, the other to a non-corporate network. Priority order states that the non-corporate network comes first and ...
9
votes
4answers
2k views

Different Color for command and output

I was wondering if it is possible to change the color of the output of a command in linux to a different color than that of the command line where I type in. It is som monotonous and hard to find ...
6
votes
2answers
4k views

OS X `say` command for Windows

The say command is perhaps OS X terminal's most compelling feature - it takes text as input and speaks it through the computer's speakers. Is there any equivalent command-line tool on Windows, either ...
4
votes
2answers
17k views

Close SSH connection

I'm using Mac's Terminal App and I know how to connect to an external server via ssh (ssh -l username domain.com). But how do I close the connection once I'm done? Thanks.
4
votes
1answer
1k views

Put 'nix box to sleep from command line?

What command(s) do I type in the terminal to put the computer to sleep?
3
votes
2answers
707 views

Is there any way to view which applications are accessing the Internet on Mac OS X?

I think I remember a command line utility that did this, but I can't remember what it's called and a few Google searches turn up nothing.
3
votes
1answer
674 views

How the computer could be used by two users at the same time

Running windows 7 64, Is there any application that allows me to connect an additional keeyboard and mice and monitor, so that this can be used by other user at the samee time while I use the main ...
2
votes
1answer
1k views

How can you turn off alternate screen in OSX's Terminal.app?

altscreen is evil. If you don't know what I'm talking about, see this page for visual demonstration. Problem is, there doesn't seem to be a way to stop it with Terminal.app (under OSX), when you're ...
0
votes
1answer
796 views

How to run bash_profile function from desktop alias .command file on OSX Lion?

Ok, so I have this great little function in my bash_profile which works great when I call it from Terminal (it opens a new firefox window instead of new tab): function firefoxNewWindow() { ...
8
votes
3answers
14k views

Can files deleted with rm -rf be recovered?

When I delete folders or files in through osx terminal using the rm -rf, where do they go? I heard that some say they are deleted directly, but some also say it only "remove the link to the file ...
7
votes
4answers
1k views

Is there a way to have Linux run a command every X minutes?

I'm using RSync with my buddy just for testing and general geekery, we want to somehow schedule the sync task to run every X time. Using the terminal, we run the command and it works. What can we ...
4
votes
6answers
4k views

Search Terminal Output

Using a default terminal and bash, there is no functionality to search the standard output of commands. One can gain such functionality using other tools, like emacs shell or screen, but I am ...
2
votes
1answer
672 views

“Open in PuTTY” command of WinSCP: Can I scp files from Linux back to Windows from terminal in opened PuTTY instance?

I use the command "Open in PuTTY" in WinSCP. A PuTTY window pops up, but I cannot find a way to scp files from Linux back to Windows using terminal command line in PuTTY. Do you guys think this is ...