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

6
votes
1answer
871 views

OS X Mountain Lion terminal tab name + open a new tab in the same directory

1) In Mountain Lion, through Preferences, you can change the setting of Terminal so that a new tab can be opened in the same directory as the opening tab. (i.e. if I am at ~/workspace and I open a new ...
6
votes
1answer
576 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 ...
6
votes
2answers
7k views

How to login as a different user in terminal?

I'm currently logged in as a normal user in OS X. I'd like to start a terminal session and login as user foo. Is this possible?
6
votes
3answers
1k views

FTP - how to upload multiple files to FTP from linux server?

I have for example database backups in my linux server and I would like to write a script to upload it to remote FTP. I tried put command, but it can only transfer one file at a time. Then tried mput ...
6
votes
2answers
618 views

Screen divider / border width and color

In GNU screen, using a horizontal / vertical split, how do you set the color and width of the divider between the splits? I want to make them thin and darker so they don't stand out as much. There is ...
6
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 ...
6
votes
2answers
4k views

How can I determine a cmd.exe's parent process

Sometimes I find myself in a cmd.exe environment that itself was started by another cmd.exe or by another console-based application. Now, working in such an environment, I'd like to know what happens ...
6
votes
1answer
10k views

What is the difference between xterm and terminal in Ubuntu?

What's the difference between Terminal in Ubuntu desktop (Applications>Accessories>Terminal) and xterm? They look very similar.
6
votes
1answer
2k views

Redirecting Terminal.app to iTerm.app

Is it possible to redirect an app in Mac OS X to another app? If not, can you redirect Terminal.app to iTerm.app, so every app that wants to open a Terminal window, instead opens an iTerm window. ...
6
votes
3answers
430 views

Portable method of opening a new terminal window?

So, I'm working on a custom makefile script (for TinyOS, if anyone cares) that builds a file and then runs it in a simulator. The problem is that the simulator takes it's input from standard in, and ...
6
votes
1answer
554 views

Mac OS X Lion Terminal SSH connection sharing error

I sometimes get this error when I try to ssh to a remote host: mux_client_request_session: read from master failed: Broken pipe I'm using Macbook Air OS X Lion with this in ~/.ssh/config: ...
6
votes
5answers
9k views

Run a shell script on OS X without having a terminal window appear?

I'm trying to set up a few keyboard shortcuts that open specific iTerm sessions, which I was able to do with BetterTouchTool and a bit of AppleScript magic. The problem is that OS X insists to open a ...
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 ...
6
votes
3answers
1k views

Could not create directory '/var/empty/.ssh'

Every day, after several hours of use, anything using SSH will just randomly stop working. The only solution is for me to restart my machine, which fixes it until it randomly occurs again. > git ...
6
votes
3answers
1k views

How can I render a website as an image from the shell?

Looking to say "http://example.com/index.html -o website.png" Is there an existing program to do this? I'm ok with doing html to png. Is there a program for that?
6
votes
2answers
3k views

Smooth scrolling for vim in Mac Terminal/iTerm?

Is it possible to get smooth scrolling (using the mouse scroll wheel or macbook touchpad) within a terminal on Mac OSX (Lion)? Furthermore, could I do this within vim? I find that smooth scrolling ...
6
votes
2answers
2k views

Mac OS Lion - Always show menubar with fullscreen apps?

Does anyone know if it is possible to keep the menubar in Mac OS Lion visible for fullscreen apps instead of hidden until hovered over? I imagine there's some Terminal command I can enter to adjust ...
5
votes
2answers
3k views

How to disable command + q for Terminal on OSX

Is it possible to disable the cmd + q hotkey for Terminal on OSX? and if so then how?
5
votes
5answers
1k views

What is the difference between “Shell” and “Terminal”?

I am fairly new to Ubuntu and I am loving it! But I don't quite understand the difference between the shell and the terminal. Can any one explain? Someone told me that a terminal is just a "tool" to ...
5
votes
7answers
909 views

How do I return only file names from the find command?

I'm looking to get a list of just file names (without the rest of the path) when executing the find command from a terminal. How do I accomplish this on the mac?
5
votes
5answers
31k 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?
5
votes
3answers
5k views

What does an arrow (“->”) symbol mean on the command line?

I'm working with Terminal (Mac OS X), but I think this is a built-in part of Linux. Sometimes, when I execute a command, Terminal returns a new, indented line with just -> on the line. It seems ...
5
votes
4answers
32k views

How do I recursively remove subdirectories and files, but not the first parent directory?

I'm able to use the following to remove the target directory and recursively all of its subdirectories and contents. find '/target/directory/' -type d -name '*' -print0 | xargs -0 rm -rf However, ...
5
votes
3answers
5k views

I can't clear the terminal in Mac OS X Lion - “terminals database is inaccessible”

UPDATE 3 - Better Solution I kept Google'ing this until I came to a different solution. I ended up downloading the terminfo directory from somewhere (I forgot where so I just posted the zip on my ...
5
votes
3answers
11k views

How do I find my user ID and group in Mac OS X?

Trying to run this compand in terminal: sudo chown -R yourid:yourgroup local However, I have no idea what my ID and my group are, or where to find them. Any ideas?
5
votes
4answers
3k views

Launching tmux using gnome-terminal

I'm a little confuse regarding how one launches tmux. When I launch my terminal (current gnome-terminal), I would like to have tmux up and running. I'm currently doing this by calling "tmux" in my ...
5
votes
5answers
5k views

Can you find out the IP SSH-ing your computer?

If computer A SSHs computer B, can computer B find the IP of computer A? If so, how?
5
votes
3answers
3k 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?
5
votes
2answers
8k views

change background and font colors in mac terminal

is it possible, I want to change the color the white background is not too appealing.
5
votes
3answers
2k views

Change Directory (cd) to Network Share (Windows XP) in Ubuntu

How do I navigate in the terminal to a Windows network share? I can access the Windows work-group using the GUI but I would like to get there in bash.
5
votes
1answer
827 views

Mac OS X: Is there a straightforward way to color ls output according to Finder label colors?

I have a client with a directory tree that has a number of high-level directories that I need to have on my local development machine. I rarely look at them unless something goes awry. I've marked ...
5
votes
2answers
2k views

ssh sessions in xterms freeze for many minutes whenever they disconnect

If I ssh to a remote machine and then lose internet connectivity, the session freezes. I can't control-c or otherwise abort and go back to my local xterm or terminal prompt but if I wait several ...
5
votes
2answers
10k views

Vim in OSX: How to do page-up/page-down/go to EOL through a vim file opened in terminal?

In putty, which is how I primarily used VIM, I could do the following: Page up/down : Using the native Page up/down key. In Mac, the alternative is Fn + Up/Down, which doesn't work in the terminal ...
5
votes
3answers
9k views

OSX Lion terminal lost all colors

I recently upgraded to Lion only to find that Terminal.app (and iTerm2, which I actually use instead) have totally lost all colors. This means no syntax highlighting in Vim, no colored directory names ...
5
votes
5answers
4k views

Clearing terminal

I would like to issue a command from a bash script to clear the terminal it is running from: I don't want to clear the bash history (history -c) I don't want to issue the clear command (which ...
5
votes
3answers
1k views

In Ubuntu OS, my “arrow keys” are not arrow keys

Instead, they give A, B, C, D I am using vi.
5
votes
2answers
195 views

Can I have a bunch of tabs set up when I launch Terminal?

Every morning I launch the OS X app Terminal and tediously set up a bunch of tabs... A ssh session to a certain server ($ ssh ...) A script/console session for the Rails app I'm working on ($ cd ...
5
votes
3answers
13k views

How to reset Bash on Mac OSX, .bash_profile corrupted and bash no longer works

I am on a MacBook Pro, running the latest version of Mountain Lion. I really need some help, I have managed some how to damage my .bash_profile (I think) so that every time I open up the terminal I ...
5
votes
3answers
3k views

Switching tabs in Mac terminal with Ctrl+PageUp/PageDown

I've recently started using a Mac (running Lion), and there is one inconsistency that's getting to me. In Chrome and MVim, I can switch tabs with Ctrl+PageUp/PageDown. But, in the Terminal, I have ...
5
votes
2answers
10k views

Redirect input from one terminal to another

I have sshed into a linux box and I'm using dvtm and bash (although I have also tried this with Gnu screen and bash). I have two terminals, current /dev/pts/29 and /dev/pts/130. I want to redirect ...
5
votes
6answers
3k views

GNU Screen won't inherit my PATH on 10.5.8

I use screen on a daily basis for my terminal needs and I'm quite happy with it. Recently, though, I made some updates to my bash configuration files and I noticed that I was setting various PATH ...
5
votes
2answers
4k views

Open terminal on start in a specific place and size

I want that each time I login to my account (Ubuntu-desktop) a Terminal will open in a specific location and in a specific size. In which file do I put the command, and what is the command?
5
votes
1answer
861 views

Trying to unzip file

When trying to unzip a file, I ghet the following error: Archive: file.zip skipping: file.bla need PK compat. v4.5 (can do v2.1) Can any one help?
5
votes
2answers
842 views

How to reclaim ^S in zsh?

I've found ^S mapped to be the fwd-search key for zsh (ohmyzsh) but I would like to use it in vim for various mappings as well - it seems like the zsh mapping is preventing me from using it now. Any ...
5
votes
1answer
490 views

Pasting into vim from GUI results in missing lines

When I copy text from an OS X GUI app (e.g. Firefox) and paste it into vim in my terminal, it's often missing the first few lines or characters, with no obvious pattern. This may not be vim ...
5
votes
1answer
153 views

Can I scroll Terminal down when there is nothing to scroll?

When I reach the bottom line, I want to be able to “scroll” down the virtual space so the prompt is at the top again (like in the beginning): Is there any way to do this? This becomes even more ...
5
votes
2answers
4k views

How to make Terminal bounce its application Dock icon in OS X

In OS X, when a program wants attention, its Dock icon at the bottom will bounce up and down. In Terminal, sometimes I will run a long series of commands, like this: a && b && c I ...
5
votes
1answer
2k views

Using screen, commands like less and man don't clear the screen afterwards

In contrast to this question I want the clearing of the screen re-enabled for less. It works fine in my xterm terminal under Cygwin/mintty or Gnome Terminal (both xterms). However, when inside a ...
5
votes
1answer
5k views

Mac OS X Terminal - where does the prompt name come from

Where does the word at the beggining of the prompt on my MacBook Pro terminal come from? At the moment, it looks like this Last login: Fri Oct 14 12:55:34 on ttys000 sherrythinkpad:~ ConfusedNoob$ ...
5
votes
3answers
1k views

what is the command+k ( in mac ) equivalent in ubuntu

I am used to command + k to clear up the terminal in mac. It is very helpful specially while debugging through server logs. What is the equivalent in Ubuntu system ?