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

8
votes
2answers
2k views

How to scroll up in terminal window while new input is generated without beeing thrown back to the bottom (Linux)

In Ubuntu, I want to scroll up while a command is running in my terminal window and generates new output (actually the command running is rspec). I can scroll up, but each time rspec generates a new ...
8
votes
1answer
7k views

Terminal inside sublime text

A long time ago when I used gedit, I was able to have a built in terminal at the bottom. This allowed me to sftp into my server, edit code, and then compile it in the terminal right inside the ...
8
votes
3answers
388 views

Tabbed terminal that connects to a GNU Screen session?

I use the session feature of screen extensively. For example, I'll start a screen session for "project1" as "screen -S project1", and then when I need to reconnect I use "screen -d -r project1". ...
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 ...
7
votes
4answers
41k 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 ...
7
votes
2answers
4k views

Good Terminal program for windows [closed]

I'm growing a little sick of Microsoft's HyperTerminal, Can anyone recommend a good terminal program (that accepts com connections)? Preferably free.
7
votes
3answers
6k views

I just got a Mac! How do I do “end” , “home”, “page up” and “page down” in my terminal/VIM editor?

I write a lot of python in my VIM, on the terminal. What do I do?
7
votes
6answers
989 views

Text Terminal Hardware (for Linux)

Is there any way to obtain a hardware text terminal (preferably small in size) with a screen and a keypad to connect to a Linux machine (preferably via usb)? I'd like to be able to log into a command ...
7
votes
4answers
13k views

How can I use a bash like shell on windows

I use Linux and a Mac. I'll be teaching some command line stuff soon. What can I install on Windows to give me a terminal window most similar to a basic mac/linux bash shell. Would like to be able to ...
7
votes
3answers
12k 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 ...
7
votes
3answers
9k views

ctrl + r in linux / ubuntu terminal command line

With CTRL + R you can search in previous commands (in the terminal of Ubuntu). However, it always seems to display the last occurrence of the search term. Is there any way to browse through all ...
7
votes
2answers
564 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 ...
7
votes
1answer
4k views

How can I grep with color in Mac OS X's terminal?

I recently found that on Mac OS X I can set this up in my shell ~/.profile so that when I use grep it will print the matches in color (white one red). alias grep='GREP_COLOR="1;37;41" LANG=C grep ...
7
votes
2answers
2k views

Linux: coloring bash prompt will break carriage return

When I try to colorize the bash prompt like this: export PS1="\e[0;31m[\u@\h \W]\$ \e[m " it breaks the carriage return (instead of going to a new line when line is full, it starts in the same line ...
7
votes
3answers
21k 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?
7
votes
3answers
12k views

Linux/Mac OS X Terminal: make the background black, not white

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 ...
7
votes
6answers
3k views

how to beep on tail -f event

I want my PC to make a system beep on every tail event I have the following command tail -f development.log | grep "something rare" is there an easy way like pipeing it to somthing that beeps? ...
7
votes
3answers
15k 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 ...
7
votes
2answers
37k views

How Do I Map a Drive Network Share Using the Linux Terminal?

Still getting used to Linux, and the GUI is great. I have Ubuntu 10 and I can go to Network and see the Windows network. Then double clicking this gets me to the drives that are shared. Then when I ...
7
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 ...
7
votes
4answers
8k views

Is there a usermod equivalent in terminal for OS X 10.6.1

Can anyone tell me how to modify a user and add them to a group in terminal on SL (10.6.1)? It seems that usermod is not used by Mac.
7
votes
4answers
4k views

GNOME Terminal - process name in tab title

How can I put the current running process name into a GNOME Terminal tab title (or title bar when there's only one tab)? -- UPDATE -- To clarify, I want the tab title to update when I run a process, ...
7
votes
2answers
5k views

How to cd into smb://user@100.100.100.100 from terminal?

I am using ubuntu and gnome on my computer. When I open up File Browser, on the left hand rail, I see conveniently a folder called "Work Server". When I mouse over it, the following caption appears ...
7
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?
7
votes
4answers
16k views

On Mac, how do I give myself permanent sudo privleges?

In Mac OS X 10.6, how do I give myself permanent sudo privleges? is it like linux, in the "/etc/sudoers" file?
7
votes
3answers
4k views

Lightning bolt for prompt (PS1)

I've seen on a few screencasts a while back where someone had a lightning bolt instead of $ on the bash prompt. Does anyone know how to do this?
7
votes
2answers
3k 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 ...
7
votes
2answers
3k views

How to recursively move all folders one directory up back one directory

I have folders in scenery/terrain that contain folders called terrain and objects. These folders have folders with data files. How do I move all of the contents scenery/terrain/[name]/terrain to ...
7
votes
1answer
594 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 ...
7
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?
7
votes
4answers
1k 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' ...
7
votes
3answers
542 views

How to remove a file with unprintable charaters in Mac OS X Terminal [duplicate]

Possible Duplicate: Removing file with strange characters in filename in OS X I have a folder that has a file who's name is Icons and ends with an additiona unprintable character. I can see ...
7
votes
5answers
960 views

Is it possible to get your router's external ip address without using a website?

I was wondering if there was a way to find out your router's ip address without using a website like www.whatismyip.com. I searched around, and I am beginning to think it is impossible. If that is ...
7
votes
1answer
787 views

How can I prevent the “You have mail.” message from displaying every time I open the Terminal

Every time I open the Terminal, I get the "You have mail." message, but I do not have any mail. When I run MAIL it reads, "No mail for myusername". I have tried several methods to prevent this from ...
7
votes
3answers
763 views

Duplicate pseudo terminals in linux

On a redhat box [ Red Hat Enterprise Linux AS release 4 (Nahant Update 3) ] Frequently we notice two people being assigned to the same pseudo terminal. For example: $who am i user1 pts/4 Dec ...
7
votes
3answers
1k 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 ...
6
votes
9answers
1k views

How can I recover source overwritten by a bad compile command?

I had written a source code of C++ and complied it with the same name using the following command line. For example: c++ source-code.cpp -o source-code.cpp Now my source code has been replaced by ...
6
votes
8answers
2k views

'End Process' equivalent on linux

Currently i am using the system monitor of gnome. It is like task manager, and has a function to end process, but sometimes this makes everything freeze and it locks up. Is there any way to fully end ...
6
votes
5answers
766 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. ...
6
votes
3answers
7k views

Installing a library locally in home directory, but program doesn't recognize it

I am installing a program on a server as a non-root user. Specifically it is tmux 1.5, but this should apply broadly to all locally installed program in my opinion (I mention the program name in case ...
6
votes
2answers
1k views

Passing options to a program: what's the convention for one dash vs two?

Some programs will take options like this: $ someprogram -orange apple And other programs will use something like this: $ otherprogram --orange apple Is there a "rule" or convention for this in ...
6
votes
5answers
3k views

Removing the escape characters from GNU Screen's screenlog.%n

Is it possible to remove the ESC sequences in GNU Screen's output file? Things such as colours, tabs and other escape characters make their way into the log files and become difficult to decipher. ...
6
votes
1answer
234 views

I deleted my aliases file, but my aliases are still in my bash session - how can I recover them?

I had a ton of aliases defined and I use them all the time. I have a terminal session open now in which all the aliases are valid and working. However, the .bash_aliases file in which they were ...
6
votes
4answers
510 views

How to selectively navigate through Bash command history on a Linux terminal [duplicate]

Everyone knows (or should know!) that on a terminal the up and down arrow keys are used to navigate through the history of used commands. When you use the terminal on a daily basis, your command ...
6
votes
5answers
3k views

How can I solve this error I get when I commit changes on an SVN repository from the Ubuntu terminal?

When I commit changes on a SVN repository, I always run into the following problem in the terminal in Ubuntu: Error reading /home/ssylee/.nano_history: Permission denied Any ideas how to solve it?
6
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 ...
6
votes
2answers
9k views

How to open a terminal quickly from a file explorer at a folder in Windows 7? [duplicate]

Possible Duplicate: Windows Console in Explorer Context Menu This can be done easily in Ubuntu, just right click and open Terminal. It is very inconvenient to open cmd.exe then cd to the ...
6
votes
4answers
19k views

Mac Terminal SSH file transfer?

Is there a way to transfer files directly from a Mac to another using only Terminal? Perhaps using SSH?
6
votes
2answers
5k 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 ...
6
votes
4answers
18k views

Accessing shared directory path in Mac OS X Terminal

I'm trying to access a shared network server via terminal on the Mac. I can obviously access directories on the same system using just the command cd (e.g. cd /Applications) but our shared network I ...