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

3
votes
2answers
1k views

Terminal: What is the shortcut to clean your command line

If I have this: $ bla bla bla bla Is there any shortcut for Terminal (MacOS) to clean the entire line?
2
votes
1answer
1k views

Select or copy the current input line in Terminal.app

Is there a hotkey to select all of the input text in the input line in OS X's Terminal.app?
1
vote
3answers
722 views

Where do you find the Bash source files of programs in Linux/Mac OSX?

I am currently writing some convenience methods for my terminal in my bash_profile and am sure if what I am writing is "the best way". I figure a good way to verify whether what I'm doing is right or ...
3
votes
1answer
2k views

Weird behaviour/rendering of backspace in Terminal.app when SSHing into zsh using tmux/screen

I just stumbled upon a weird problem. When I SSH into my server (centos, zsh) and I type some stuff and hit backspace It looks like a space - but internally it really deleted the characters. ls -l a ...
13
votes
3answers
3k views

Copy colored output from Mac OS X terminal

I see a nicely colored output in my terminal. The terminal has a "Export Text As" command but it saves a plain-text file without the colors. Same with copy&paste. Do you know a way to save ...
1
vote
2answers
1k views

Advanced Terminal / Console apps for Mac OS X?

I use a lot of command line programs, very often with similar arguments. Can anyone recommend an application or a workflow that allows me to store often used shell commands and search through my ...
3
votes
3answers
286 views

how to make man page not disappear on exit

...probably a silly question but I could not beat google into telling me the answer so posting here: I got 2 machines - Slackware 13 and Fedora 11. On the slack machine, when I use man I can scroll ...
9
votes
1answer
5k 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
0
votes
2answers
458 views

Stopping zsh from clearing the screen on each command

I use zsh on Mac OS X, with a theme based on "oh-my-zsh". Each time I run a command, zsh "clears" the screen (really, inserting a few dozens newlines). This is very irritating, but I can't figure out ...
3
votes
2answers
661 views

Is there any way to view which applications are accessing the Internet on Mac OS X?

I think I remember a command line utility that did this, but I can't remember what it's called and a few Google searches turn up nothing.
0
votes
1answer
687 views

How can I pause console output in rxvt?

I'm running rxvt in Cygwin on a Windows box. This is how I invoke it: rxvt -sr -sl 2500 -sb -geometry 90x30 -tn rxvt -fn "Lucida Console-14" -e /usr/bin/bash --login -i Anyone know how to pause the ...
0
votes
1answer
873 views

send key combination via local network to other mac

after a other mac or macbook is connected with a mini display port to a new generation imac you can switch between the imac and the other connected mac pressing cmd+F2(brightness up) using the ...
8
votes
4answers
18k views

How do I find a file by filename in Mac OSX terminal?

I want to find a file on my Macbook with the filename: abc.dmg. I've tried to use spotlight, but it doesn't find it. When I tried find, and used: find -name abc.dmg -path /, I got errors back. What ...
2
votes
2answers
495 views

recursive file copy

How can I use the terminal / Linux commands to recursively search a drive for images (jpg) and copy them to my desktop, renaming all the found files using numbers. So the first time it finds should ...
1
vote
1answer
657 views

Get OS X Terminal.app to accept Ctrl-+ for Vim

I am trying to bind Ctrl-+ and Ctrl-- in Vim to resize the current window. However, Terminal does not seem to pass anything when I press Ctrl-+. Ctrl-- does work. I checked in Vim itself using Ctrl-V ...
3
votes
1answer
612 views

How the computer could be used by two users at the same time

Running windows 7 64, Is there any application that allows me to connect an additional keeyboard and mice and monitor, so that this can be used by other user at the samee time while I use the main ...
1
vote
1answer
1k views

Mouse movement vertical axis inversion? (Mac OS X)

I would like to either run an AppleScript or use a Terminal command to invert the y-axis for mouse movement in OSX— and no, not like http://d.pr/w9z7 (/joke). Any ideas? I thought about checking for ...
4
votes
1answer
1k views

MacVim + tmux or: The Copy Paste Riddle [duplicate]

Possible Duplicate: copy-paste not working in MacVim when launched in tmux Now this is weird. Copied a chunk of a text from somewhere into clipboard. Ran mvim from a tmux buffer. Opened a ...
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?
1
vote
2answers
2k views

How to set more lines to scroll backwards, in text mode?

I want to scroll back 10000+ lines in text mode linux terminal. As there is an unlimit option in gnome-terminal, so I guess if this is also possible in text mode?
6
votes
1answer
575 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 ...
1
vote
1answer
165 views

How to adjust display of midnight commander in kitty?

When I connect to ubuntu from kitty (a putty clone) it looks like this: How do I fix the display?
2
votes
2answers
844 views

How to Launch Spotlight from the Terminal

I used this tip top hide my menu bar in a bunch of applications, which is a great way to get more free screen space. The one downside is that (for inexplicable reasons) it disables Spotlight when I'm ...
4
votes
1answer
1k views

Put 'nix box to sleep from command line?

What command(s) do I type in the terminal to put the computer to sleep?
2
votes
2answers
686 views

Remove bash startup behaviour (mac user)

When I start the terminal (which uses bash) a echoed message appears several times right before the message "You have mail." and it is added by someone that has used my computer. It also happens when ...
2
votes
1answer
3k views

Terminal command to send data (plain text string) to a port at a remote computer

I am trying to send data (plain text string) to a port at a remote computer using terminal utility. The string would be used to trigger something on the remote computer running a program that would ...
1
vote
2answers
10k views

Getting PATH right for python after MacPorts install

I can't import some python libraries (PIL, psycopg2) that I just installed with MacPorts. I looked through these forums, and tried to adjust my PATH variable in ~/.bash_profile in order to fix this ...
1
vote
1answer
557 views

ipython indentation problem on Mac OSX

I seem to be getting an odd problem when using iPython sometimes. Every time I try to go one line up or down (i.e. navigating through history or previous statements) it seems to put my cursor and ...
6
votes
5answers
728 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
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 ...
2
votes
2answers
357 views

Different bindings for left and right Option key in OS X

Is it possible to have a META key on left Option while at the same time being able to use right Option for Alt+2=@ and other things typical to Swedish/Danish layouts.
1
vote
3answers
3k views

“No commands supplied” error when executing a Python script on Ubuntu

I checked out a SVN repository, and tried to python setup.py on my Ubuntu 10.04 terminal, which is a Python script, but I get the following error: abc@def:~/Downloads/a-read-only$ python setup.py ...
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?
2
votes
3answers
4k views

unix how to find the space occupied

In unix how to find the space occupied ( in Bytes) by the /home directory including all its subdirectories. The du command outputs the number of kilobyes used by each subdirectory. Useful if you ...
12
votes
3answers
16k views

unix copy a directory

How can I copy a directory structure dir1 to dir2 ? (with all the subdirectories) in unix using the terminal window
4
votes
1answer
13k views

Get Hostname from IP address/MAC address

I have a list of IP addresses and MAC addresses connected to my local network, but I need to get the hostnames of each device, is there a command line or terminal (mac) command for this?
1
vote
1answer
462 views

command limits when pasting into tcsh (mac OS X)

I encountered a 1024 character limit problem when pasting commands into the terminal application (max OS X 10.5.8) running the TC shell (/bin/tcsh). This can consistently be reproduced by pasting the ...
2
votes
3answers
2k views

OS X Terminal: Make a shortcut that opens to a specific folder

I would like a shortcut in my Dock that opens the Terminal window to a specific folder (the place where i store my development files). Is there a simple way to do this?
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?
4
votes
1answer
608 views

Bash shell: how to reconcile portable configuration files and GUI terminal start-up types (login or interactive)?

In an attempt to "properly" implement a standard configuration of my preferred shell, bash, for use across multiple platforms, I've come across some confusion when dealing with terminals that are ...
8
votes
2answers
4k 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?
2
votes
1answer
40 views

how to change terimal start given character

i used a ubuntu variant mint,and it modfiy the terminal,each time i start a terminal,it given characters like belows: ________________________________________ ( You will always have good luck in ...
2
votes
4answers
395 views

Version of Linux with a command prompt?

What is the name of the software for Linux which has a command prompt (terminal)? I am trying to download Linux with command prompt so that I can run it on VMWare, using a sandbox.
3
votes
1answer
4k views

end-of-line, beginning-of-line keys for Terminal.app on Macbook Pro Keyboard

On a Macbook Pro keyboard, how do you go the the end-of-line and beginning-of-line in Terminal.app? Note that Ctrl-a and Ctrl-e on this computer with default configuration does not work. They just ...
1
vote
2answers
474 views

How to rename a directory under Mac (10.6.4) via the superuser?

This is my directory list on my NFS: macbook-pro-andrey-k:Download Andrey$ ls 1289816143_PL_t1181913 1289816171_PL_t1183807 1290117075_BFD_DVD02(Drums) I can't delete ...
3
votes
4answers
29k 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?
1
vote
6answers
2k views

spawn multiple ssh terminals (linux)

when i am logged into my server via SSH how can i spawn many ssh terminals? is there a xterm command for this?
1
vote
2answers
189 views

diff unified output; supress @@ lines?

When using diff, is there a way to suppress the first two lines (listing the file names and times) and all the lines beginning with @@ in the output? All I want are the lines that show what to delete ...
1
vote
1answer
444 views

GeekTool won't run UNIX command that works in Terminal

Just to put an example, in the Terminal: php -f file.php Works perfectly, when I try to use this in GeekTool it just does not work. It works fine till: php -f Displaying the possible option, ...
0
votes
1answer
370 views

Replace remote file using terminal (im already connected)

I am connected to a remote mac via terminal (did ssh machinename). I am looking at a file that I want to replace with a file from my local machine. Something like: $ ls foo/ grok/ target.txt ...