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
2answers
14k 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 ...
9
votes
2answers
331 views

Take stdin from file but still have it show up in terminal

I have a program which requires me to input data as the program runs. Imagine it something like so: $ ./program Hi there. What's your name? Zambezi What is your quest? To make a program which runs ...
9
votes
2answers
774 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 ...
9
votes
2answers
9k 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 ...
9
votes
4answers
28k 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 ...
9
votes
2answers
18k 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 ...
9
votes
1answer
3k 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?
9
votes
3answers
4k 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 ...
9
votes
2answers
4k 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 ...
9
votes
1answer
4k views

How can I export my Ubuntu terminal's color scheme for use on other computers?

How can I export my Ubuntu terminal's color scheme for use on other computers? I've set up a color scheme that I like and I'd like to put it in a git repo for easy loading from other machines. Any ...
9
votes
2answers
5k views

Is there a way to launch ScreenSharing from the Terminal?

How can I launch OS X's ScreenSharing from the command line and have it connect to a specified system?
9
votes
4answers
3k 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 ...
9
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.
9
votes
1answer
9k views

Undo OS X terminal window split

I constantly split my terminal windows accidentally by pressing Cmd+D (it's so close to Cmd+F). I have no idea how to undo this. Any ideas?
9
votes
2answers
11k 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 ...
9
votes
1answer
2k 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
9
votes
2answers
17k views

Changing font size in Text Mode terminal

I have a ubuntu linux working in TEXT mode. I would like the change the font size (or if possible, get my terminal with inconsolata font). How can i do it? PS: i don't have a GUI or X Windows ...
9
votes
2answers
6k views

VIM: How to configure Solarized colorscheme in Konsole

I am trying to configure Solarized for use in VIM in Konsole (KDE terminal). This is the result that I get: Note that Solarized looks fine in GVIM on the same machine: I suspect that it is ...
9
votes
4answers
26k views

How do I write code of more than 1 line in the Python interpreter?

I have a problem coding Python in terminal. I'm just learning basics so I have no need to create .py files. In terminal I can run one line of code in the Python interpreter, but how do I write more ...
9
votes
4answers
3k views

iTerm 2 window resizing

My iTerm 2 window is up against the menubar at the top of the screen. When I resize the window vertically from the top to the bottom, a small gap is always left. It never resizes down fully to the ...
9
votes
1answer
6k 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
11k 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
4answers
52k 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 ...
8
votes
5answers
948 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. ...
8
votes
6answers
750 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
3answers
11k 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 ...
8
votes
2answers
16k 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 ...
8
votes
7answers
477 views

Is there a way to jump to an earlier part of a command line command in the Mac Terminal?

I'll often find myself writing out long commands in the bash shell - things with many arguments, web addresses, routes, etc and so on. Every so often I will realize I forgot to, say, put my "bundle ...
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
2answers
4k views

Can I make apt-get always use --no-install-recommends?

A bit of background, feel free to skip this paragraph if you don't care. I have a bit of academic experience with linux and unix from college but I'm still somewhat of a n00b because I was always a ...
8
votes
2answers
6k views

How to skip words in OS X terminal?

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 decided I want to change the word Hello to ...
8
votes
4answers
23k 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 ...
8
votes
3answers
144 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
3answers
3k views

Using wildcards in commands with zsh

Using commands such as rsync and scp with ZSH I've run into trouble. Instead of the (normal) behaviour of giving me all matching files, it won't run and returns: ➜ ~ rsync -azP user@server:~/* ~/ ...
8
votes
2answers
2k 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), ...
8
votes
2answers
3k views

How to disable flashing terminal in Mac OS

when i enter terminals commands etc and hit TAB (file name completion) the whole terminal window flashes rapidly (if there is no unique filename for example). This is not good since for some people ...
8
votes
6answers
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
2answers
5k 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
7k 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$ ...
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
3answers
27k 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
3answers
21k 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 ...
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?
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
5k 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. ...
8
votes
3answers
18k 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
2answers
4k 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
4answers
2k 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' ...
8
votes
2answers
10k 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?
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 ...