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

9
votes
4answers
207 views

How to quickly get the previous line output in a terminal without using a mouse?

Linux (e.g. Ubuntu) terminal, is there a method to get the last line? Say I am randomly typing a td command, which has not been installed on my system, so I will get a message like below. I would like ...
9
votes
2answers
1k views

Fixed highlighting in tmux

I miss highlighting (reverse mode) on console since I started to use urxvt + tmux as main terminal. The highlights was replaced with with italic font - what looks pretty cool at first - however I ...
9
votes
1answer
4k views

How to connect 2 Macs via SSH on a home network?

First off, I'm not 100% sure this question is on-topic on StackOverflow, but here you go : I've set up a home network : 1 wireless router connected to the internet my 2 Macs connected to the ...
9
votes
1answer
7k views

How to select text in BASH terminal using the keyboard without mouse?

How to select text in BASH terminal using the keyboard without mouse? I'm using Ubuntu 10.10
9
votes
1answer
13k 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
30k 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.
8
votes
6answers
854 views

In Bash (Mac/Linux terminal shell), can the up and down arrow keys be made to function as they do in text editors?

In text editors, if I press the up and down arrow keys, it moves the cursor between lines of text. In Bash, if I’m typing a long command that spans multiple lines and I press the up and down arrow ...
8
votes
4answers
9k 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?
8
votes
6answers
52k 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?
8
votes
4answers
13k 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 ...
8
votes
3answers
6k views

ChromeOS CLI terminal app?

I assume ChromeOS has a CLI terminal application. Does it open up in a browser tab, or is it an independent window? Does anyone have any screenshots handy?
8
votes
6answers
7k 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 ...
8
votes
2answers
10k 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 ...
8
votes
1answer
15k views

How do I rename the computer name/root in Mac OSX

I'm new to Mac. I would like to rename the computer name/root title that shows up when I open the terminal. Usually it's like computername:~ xxx$ Any and all help is appreciated!
8
votes
7answers
4k 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? ...
8
votes
3answers
31k 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?
8
votes
2answers
6k views

Applescript to open a NEW terminal window in current space

Yes, I'm having a terrible newbie experience with Apple Script. I need to open a new Terminal window in the current desktop space. NOT move me to another space which has a Terminal running and then ...
8
votes
2answers
19k 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, ...
8
votes
3answers
159 views

How to have a better view when typing out directories in terminal?

I am currently using a Mac and learning to use the terminal, but the question applies to Linux systems as well. I would like to ask, when typing out paths in the terminal/command line, is there a way ...
8
votes
2answers
19k views

Trying to unzip a file, 'Filename not matched' when the directory exists

While trying to unzip a file named Joomla_3.0.3-Stable-Full_Package.zip to the directory named joomla I get filename not matched. Why is that? [root@Feddy Joomla]# unzip -Z ...
8
votes
3answers
37k 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 ...
8
votes
2answers
3k views

How to close a tmux session

I am using tmux to manage multiple terminal windows. Currently I have 2 windows open with multiple panes. I know that I have to use the prefix (for me it is ctrl+a) to enter commands. How can I ...
8
votes
3answers
22k views

Ctrl+Alt+T doesn't open a Terminal in Cinnamon 1.6

I just updated to the stable version of Cinnamon 1.6 in Ubuntu 12.04 x64, but I found a bug which just get's me out of my skin. The key combination CtrlAltT which is supposed to open up the Terminal ...
8
votes
1answer
1k views

Open Emacs with --debug-init on OS X

I am trying to debug why my .emacs does not load. Error message. Invalid read syntax: # ... Start Emacs with the `--debug-init' option to view a complete error backtrace. My question is: How do I ...
8
votes
5answers
7k 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 ...
8
votes
4answers
2k views

Emacs: What features or benefits are unique to either GUI or terminal interface?

Emacs can be launched in it's own GUI window or within a terminal (using the -nw flag). What features or work-flow benefits are only available in one mode or the other? I.e. If a user habitually uses ...
8
votes
3answers
2k views

Util for trimming output to terminal width?

When I do ps aux The output gets nicely trimmed to the width of my terminal, so that long process descriptions don't take more than one line. However, if I pipe it into anything else, the long ...
8
votes
2answers
6k 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 ...
8
votes
2answers
3k views

Pretty print folder structure using linux terminal?

How can you pretty print a directory structure with all subdirectories to the deepest level in the linux terminal(ubuntu)? This is an example of such a pretty print output for a mysite folder: mysite ...
8
votes
1answer
3k 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?
8
votes
2answers
6k 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?
8
votes
3answers
21k views

Increase linux terminal scrollback buffer size

I'm using CentOS 5.4 servers installed in a VMWare virtual machine with no X.Org server installed, so all access is via command line and the linux terminal. I use Shift-PgUp to view the scrollback ...
8
votes
5answers
3k views

How to check if cygwin mintty/bash is run as administrator?

Problem Statement: What is the most elegant and robust way to test if Cygwin mintty bash session is "Run as adminstrator"? Why, specifically? I have typically several mintty terminals open when using ...
8
votes
2answers
7k views

A top-down terminal [closed]

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

Execute a command if Linux is idle for 5 minutes

I would like to execute a command such as notify-send 'a' if my Linux machine has been idle for 5 minutes. By idle, I mean the same thing a screen saver that gets activated would use to define ...
8
votes
1answer
356 views

How can you reverse the direction of alt-period in Bash?

In Bash, you can press Alt-. to insert the last argument of the previous command. If you press it multiple times, it cycles through the last arguments of all of the commands in your history. However, ...
8
votes
2answers
2k 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 ...
8
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 ...
8
votes
1answer
954 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 ...
8
votes
3answers
8k views

How to display unicode in a Linux virtual terminal?

Reading any data in unicode does not display correctly in the linux terminal (meaning the virtual terminal that opens without an X windows). I read in a discussion here that installing programs such ...
8
votes
3answers
457 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
9answers
2k 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 ...
7
votes
2answers
5k 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
4answers
730 views

Terminal: prefix previous command?

Frequently in Terminal (though I fully expect any answer will work in bash and most others), I type some command, and then get some sort of permission error due to missing sudo. Okay, so press 'up', ...
7
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 ...
7
votes
5answers
48k 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?
7
votes
6answers
4k 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. ...
7
votes
4answers
36k 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?
7
votes
6answers
4k 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 ...