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

12
votes
4answers
8k views

Linux: How to set default directory of terminal emulators?

After upgrading to Ubuntu 11.04, my terminals (gnome-terminal and urxvt) start in "/" instead of "~" What can cause this behavior? I imagine that the working directory of Gnome or X is set to "/", ...
12
votes
2answers
2k views

How to display a single terminal in two columns?

When viewing a PDF on a wide screen monitor, the viewer can display two pages one next to the other. Is it possible to do something like this for a terminal window so that I can meaningfully utilize ...
12
votes
2answers
2k views

tmux — any way to enable scrolling, but not selection?

I like that when mode-mouse is on in tmux, I can scroll through the buffer, but I don't like that I can't copy stuff to my OS clipboard by selecting it (as when tmux is disabled). Question: Is there ...
12
votes
2answers
778 views

Disabling mouse hiding in Gnome Terminal while typing

Does anyone know how to turn off the hateful behavior that is now default in Gnome Terminal — when a key is pressed the mouse pointer hides until it is moved again. I'm honestly ready to ...
12
votes
2answers
582 views

Is it possible to use different zsh menu selection behaviour for different commands?

I'm using the menu select behaviour in zsh, which invokes a menu below the cursor where you can see the various possibilities. The .zshrc option i have set for this is zstyle ':completion:*' menu ...
11
votes
4answers
66k views

Run Linux terminal on Windows

It is bit pain to work with Windows command prompt. I've been working with Linux and Windows. Linux terminal has more advantages than the XP command prompt, so I would like to use a Linux terminal on ...
11
votes
5answers
58k views

How can I copy files with SSH?

I am trying to copy a file from my other computer, to another computer. (both running Ubuntu 9.10) So, I've ssh'ed into the other computer; I cd to the directory; and I entered cp File.zip /home/me/...
11
votes
5answers
38k views

Split Terminal windows on Snow Leopard

I'm not sure if anyone ever noticed, but in snow leopard in Terminal on top corner of your scrolling there is an icon also can be used through apple key + D How do i use both windows independent from ...
11
votes
2answers
33k views

WGET Command Not Working in Cygwin

I'm using Cygwin on Windows because some commands in Windows's CMD are not working but working on terminal of OS X and Linux. When I type the wget command and URL, it says command not found. Is there ...
11
votes
8answers
6k 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?
11
votes
3answers
7k views

Mouse cursor in Terminal?

I use Mac OS X Terminal.app. But the answer to this would probably apply to any typical UNIX-ish terminal emulator in a graphical environment. Question -- what do I do to: Use my mouse cursor to ...
11
votes
3answers
2k views

Display messd up with weird characters in Gentoo after `cat` a binary file

I ran cat /etc/localtime to see the contents of /etc/localtime - however it's a binary file, so my console became like this: You may notice the red text in screenshot is "LiveCD"; commands can be ...
11
votes
2answers
8k views

Enable 256 colors for cygwin under mintty?

I am using cygwin via mintty, which is the default. I installed ncurses. I then run these commands to see what my color pallet is for this terminal session: $ tput colors 8 I have googled but so ...
11
votes
6answers
6k views

Vim configuration slow in Terminal & iTerm2 but not in MacVim

Ideally, I want to use Vim from Terminal or iTerm2. However, it becomes unbearably slow so I had to resort to using MacVim. There is nothing wrong with MacVim, however my workflow would be much ...
11
votes
2answers
1k views

How do I clear what I typed into the prompt?

I type a really, really long command into bash. Whoops, it was the wrong command. As of now, this means that I go through two hells: Realizing my command was useless. Having to clear my shell by ...
11
votes
2answers
27k views

Make the background black, not white on Linux/Mac OS X Terminal?

All I want to do is make the background for Mac OS X's Terminal Black so that I can run a Perl script with Terminal and have the background black for that. How would I do this for Mac OS X? How would ...
11
votes
3answers
3k views

Terminal that supports the ANSI italic escape code?

I would like to replace GVim with Vim in the terminal. One of the nice things about GVim is that it is able to display text using italics. Vim allows setting an ANSI escape code for italics (\e[3m), ...
11
votes
2answers
3k views

Execute a terminal command without saving it to .bash_history on OS X?

This site says that on Linux you can add a space before a terminal command to keep it out of .bash_history. This does not seem to work for Mac OS X. Does anyone know of a way to execute a single ...
11
votes
5answers
8k views

Always use :set paste, Is it a good idea?

In a terminal vim, pasting clipboard data often messes up the code indent. I just knew if I uses :set paste the indent is not broken. Though, after pasting data, should I do :set nopaste again? What ...
11
votes
2answers
8k views

Indicating end of Standard Input

How does one indicate that one has finished entering test in stdin? For example, let's say that I wish to encrypt 'blue' using MD5 (I know MD5 is unsecure, but just for this example). I tried user$ ...
11
votes
1answer
13k views

Ubuntu terminal, How do I “tab” (autocomplete) a filename window-cmd-style(cycle options)?

Basically i want to change ubuntu terminal functionally, so that i can cycle thru all the options when i tab(on the cmd line row) and not list the options as it is per default? Im using bash, ubuntu ...
11
votes
1answer
3k views

Copy terminal output to Mac clipboard?

I need to directly copy the terminal stdout to the clipboard on Mac. How would I do this? Example: echo sometext | copy_to_clipboard or echo sometext > /private/clipboard.txt
11
votes
4answers
3k views

BASH history truncated to 500 lines on each login

For some reason, I cannot get my system to keep my BASH history after a reboot. Here are the relevant sections of my ~/.bashrc: shopt -s histappend PROMPT_COMMAND='history -a; updateWindowTitle' ...
11
votes
5answers
10k views

urxvt settings - reload without restarting terminal?

I have two urxvt color themes that I use, one for light background and one for dark, depending on how sunny the environment is. It's easy enough to switch them by modifying ~/.Xresources and running ...
11
votes
1answer
1k views

How can I prevent or interrupt accidental copy/paste in the terminal?

When I paste into the terminal, sometimes what is in the clipboard is not what I expected. Specifically, it is sometimes pages and pages of text from a website. When this happens, the terminal goes ...
10
votes
6answers
17k 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 ...
10
votes
3answers
52k views

How to open a particular file from a terminal?

How do I open a file from a terminal ? When I try to open a simple txt file like : open _b2rR6eU9jJ.txt I get this message : Couldn't get a file descriptor referring to the console Is that ...
10
votes
5answers
1k views

Is there a command in Linux which waits till it will be terminated?

I'm trying to build a Windows batch file, which starts putty/plink with port forwarding, and nothing else. The Windows part is ready so far: start plink.exe -ssh -i key.ppk -L 1234:localhost:80 ...
10
votes
4answers
3k views

What are the PowerShell consoles for Windows?

Linux is known for having lots of terminals and consoles that are built upon GTK, Qt, GNOME, KDE or X to run the shell (like bash). PowerShell on Windows runs with the Windows console (the same as ...
10
votes
5answers
1k views

Syncing bash profile between computers

I have tons of stuff in my .bash_profile. The problem is, I use ~3 computers very frequently, and I'm tired of having to copy paste my prefs everywhere. Two of them run Ubuntu 10.10, and one runs OSX. ...
10
votes
2answers
13k views

How can I hide or remove the split-pane bar on the right in Mac terminal?

What do I need to do to remove the split pane sidebar on the right from the terminal window? Never used to have it and now I don't know how to get rid of it.
10
votes
2answers
7k views

How to open Go2Shell preferences in Mac OSX?

I'm trying to change my default Go2Shell terminal to iTerm2. I've read that Go2Shell preferences are only accessible from the command line, but I'm struggling to find what command actually needs to ...
10
votes
2answers
23k views

Bash not loading '.profile' in new session on Linux

I'm setting up a new Linux machine I got from our IT dept, and noticed .profile is not loaded when I start a new terminal session. The current shell is Bash, though I changed it from the default sh it ...
10
votes
6answers
59k views

How can I open a new terminal window from a terminal in linux?

How can I open a new terminal window from a terminal in linux?
10
votes
2answers
21k views

Save output to a text file from Mac terminal

How could I enter a command, say, system_profiler, and have the output save somewhere on my computer?
10
votes
6answers
36k 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 ...
10
votes
2answers
12k views

How can I run a command from the terminal without blocking it?

I run a lot of programs in Ubuntu from the terminal, but I would like to be able to continue using the terminal after I have a program open. How can I put the programs in the background so that I don'...
10
votes
6answers
8k 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 ...
10
votes
3answers
22k views

How to input hash (#) symbol to terminal?

I'm running Ubuntu Server as a virtual machine (using VirtualBox) on my mac. Normally on the Mac, I'd press alt + 3 to input the hash (#) sybmol. However, if I do this in my Ubuntu Server's console, ...
10
votes
2answers
12k views

How do I set a default nick for new irssi connections?

When trying to connect to an irc server in irssi, I get the following error: root Erroneous Nickname: Reserved for services I don't know how to change the nickname before the connection is ...
10
votes
3answers
25k views

Using vim to force edit a file when you opened without permissions

I use vim to edit a file. Sometimes, I forget to have the appropriate permissions. I run vim and the file as a read only file. I can make changes, but I can't actually write the changes. Every once in ...
10
votes
2answers
7k views

How to skip words in OS X terminal?

Let's say I wrote a long command in the Mac OSX terminal, i.e say "Hello, how are you? I am good thank you. How is it going with you? Fine, thanks" and now I want to change the word Hello to Hi. ...
10
votes
3answers
16k views

Enabling SSH Daemon from Terminal (OS X Lion)

I am trying to find a way of turning on SSH through terminal, instead of opening settings and turn it on that way. Or perhaps a way to turn SSH on by running a .pkg file? I am running OS X Lion, but ...
10
votes
3answers
32k 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 ...
10
votes
2answers
2k views

How to cancel LaTeX compiling in Terminal?

When I compile a LaTeX document in the terminal like so: latex document.tex How do I then abort the process? Ctrl-C doesn't work.
10
votes
2answers
7k views

tmux refresh display after terminal width change

With screen, in a terminal that's 80 columns wide, I can do something like: for i in $(seq 81); do echo -n "m"; done; echo and then resize the window to be a little wider, and the last 'm' jumps up ...
10
votes
2answers
33k views

How can I check the user command history in Unix?

I know the 'history' command give me a list of the commands I have typed into the Unix terminal. How do I see the command history for all of the users currently logged onto the system?
10
votes
3answers
7k views

Spawn New Cygwin Window from Within Cygwin

I can't figure out how to launch a new Cygwin session from within Cygwin, similar to launching a new terminal from within bash with: gnome-terminal It's probably easy but I am missing something. ...
10
votes
2answers
8k views

A top-down terminal [closed]

Does a top-down terminal exist for Mac OS, similar to Guake, YaKuake, or Tilda?
10
votes
4answers
4k views

iTerm2 Vim alt+right/left arrow

As a Linux user, I am very used to jump from word to word in vim/nano using ALT+left or right. This doesn't seem to work properly using iTerm, I am using zsh, I tried adding; bindkey -e bindkey '^[[...