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, ...
12
votes
1answer
3k views
Use terminal scrollbar with tmux
I know how to scroll in tmux using the keyboard, but I noticed that it looks like there's a way to use the terminal scrollbar with GNU Screen. Can this be done with tmux?
27
votes
6answers
14k views
Why does terminal say: “You have mail”?
Any idea why my Mac terminal says:
You have mail in /var/mail/lofye
How can I make it stop saying that every time I open terminal?
15
votes
1answer
1k views
What does Terminal app's “Show Alternate Screen” do? (OS X)
Today, I discovered a menu item called "Show Alternate Screen" in Terminal.app. I am just curious about what it does. It seems to be sharing the same shell process (unlike tabs), since I see output ...
8
votes
6answers
7k views
Mac OS X: How to change the color label of files from the Terminal
Is there a way I can set the color label of a file to some color when in the Terminal?
I know that the following command lists some info about what the color currently is, but I can't figure out how ...
4
votes
3answers
7k 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 ...
3
votes
2answers
939 views
How to explore more defaults write tweaks on OS X?
I would like to explore some new tweaks which can be done by the "defaults write" command in OS X(ML).
What can I do to find them out myself rather than hunting online for known tweaks?
2
votes
2answers
2k views
How do I set up an AppleScript to open a new iTerm2 tab and change the directory?
In OS X, how do I set up an AppleScript to
open a new iTerm2 tab
change to a directory
clear the console
echo the current directory
I had something like this before for regular Terminal, but I ...
16
votes
2answers
3k views
Icon? file on OS X desktop
When I ls my Desktop from terminal (by using ls ~/Dekstop), I see a file, Icon?. As far as I can tell, it's empty (nano Icon? shows nothing). It doesn't show up on my actual Desktop, and open Icon? ...
14
votes
1answer
5k views
Make “pro” style terminal default when opening new tab/window
Mac OS X 10.6
In Terminal preferences, the default startup window can be set to different style. But the keyboard shortcut "cmd-T" & "cmd-N" can only open the basic style terminal. How can I ...
10
votes
2answers
7k views
Linux - Set default terminal size and screen position?
I can't find any settings inside the terminal profile to allow me to set a geometry size and screen x,y coordinates so that the terminal window always opens (even after reboot) in the same location on ...
8
votes
2answers
3k 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 ...
3
votes
5answers
2k 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.
...
9
votes
3answers
5k views
Safely get rid of “You have new mail in /var/mail” on a Mac?
I was messing around with sendmail in Rails a year ago and have had this message popping up in the terminal after every command ever since:
You have new mail in /var/mail/Lance
How do I properly ...
8
votes
3answers
11k views
How to show output on terminal and save to a file at the same time?
I am using:
user@unknown:~$ sudo command -option > log
to save the results of "command" to the file "log", but I'd like to also get the result on the terminal, is this possible?
I am using ...
7
votes
2answers
16k 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 ...
5
votes
1answer
566 views
Mac OS X: Is there a straightforward way to color ls output according to Finder label colors?
I have a client with a directory tree that has a number of high-level directories that I need to have on my local development machine. I rarely look at them unless something goes awry.
I've marked ...
1
vote
1answer
404 views
Ubuntu purple terminal colors to iTerm2
I've been looking for a iTerm2 theme that resembles the default purple Ubuntu terminal but have had no success so far.
Does a theme for the standard Ubuntu terminal exist for iTerm2 or will I have to ...
5
votes
3answers
1k 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 ...
5
votes
1answer
2k views
How to enter copy mode on mouse scroll in tmux?
The mouse scroll wheel does not work when not in copy mode. I'm not sure whether it is supposed to be working then? When in copy mode, the scroll wheel does work. The problem is that I still need to ...
4
votes
2answers
457 views
Strange zsh autocomplete behaviour
Every time I use tab autocompletion with zsh instead of completing the current string, it gives me a new string + options to complete. It's hard to explane, so here is an example. This is what would ...
3
votes
4answers
2k views
Clearing terminal
I would like to issue a command from a bash script to clear the terminal it is running from:
-I don't want to clear the bash history (history -c)
-I don't want to issue the clear command (which moves ...
2
votes
1answer
455 views
Changing routing on Mac with two Ethernet ports
I have a Mac tower which has two Ethernet ports. One is connected to our corporate network, the other to a non-corporate network. Priority order states that the non-corporate network comes first and ...
2
votes
3answers
4k views
How to reset teminal under mac os x
I would like to reset completely terminal window. Not 'clear' - old outputs are still there, when u scroll up. It is especially useful during reading some debugger output, to have one attempt in ...
2
votes
1answer
2k views
How can I change the colors of GNOME Terminal each time it starts?
I heard about a script which will change the colors of GNOME Terminal each time it starts. I can't remember where I saw this...
1
vote
4answers
2k views
Terminal Beeps (output) and Growl
I need a way to trigger a Growl notification when a Beep is triggered in the Terminal.
Ideally, I 'd love to have a way to capture the terminal output - from an SSH server let's say - and handle it ...
11
votes
3answers
4k views
How do I close the Terminal in OSX from the command line?
Why doesn't "exit" close a Terminal.app window on Mac OS X?
$ exit
logout
[Process completed]
Is there a way to close the window without using the mouse?
7
votes
5answers
22k 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 ...
4
votes
1answer
427 views
Change hostname and prompt in OS X terminal
On a Mac the hostname and prompt is:
workstation:~ thomas$
On Ubuntu Linux it would be:
thomas@workstation:~$
How can I make the OS X prompt look like the Ubuntu one?
4
votes
1answer
714 views
How to delete Safari cookies from OS 10.7.2 terminal?
I would like to delete all Safari cookies from terminal on Mac OS 10.7.2.
I tried to delete ~/Library/Cookie/Cookies.binarycookies (this is the only file in ~/Library/Cookie), but it didn't help.
...
4
votes
4answers
402 views
HELP! Overzealous `mv` renamed my /usr/lib folder
I was having a problem where my libiconv.2.dylib file in /usr/lib was corrupt and lots of applications were failing. I got a copy of a friends /usr/lib folder and was going to swap them out. ...
3
votes
3answers
676 views
Lost permission to use sudo commands
I changed /etc folder permission to 711.
After doing that, I lost the permission to use sudo commands. Any way to change the folder permissions back?
What I have tried so far:
1) use su -, ...
3
votes
1answer
1k 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 ...
3
votes
4answers
4k views
Run a shell script on OS X without having a terminal window appear?
I'm trying to set up a few keyboard shortcuts that open specific iTerm sessions, which I was able to do with BetterTouchTool and a bit of AppleScript magic. The problem is that OS X insists to open a ...
3
votes
1answer
3k views
Mac computer name (acer-xxxxxxxxxx)?
My Mac name on networks have changed!
I don't know how this happened, I just want to change it back.
The name used to be something like 'tyilos-macbook', but now it's called 'acer-6bfc9f1844'.
...
3
votes
3answers
7k views
Connect to WiFi network using Mac Terminal
Every time I try to find out how to do this, I find out how to do it on a linux, and it doesn't transfer. How do I connect to a WiFi network using Mac Terminal Bash?
3
votes
1answer
373 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 ...
3
votes
1answer
459 views
Can I make ssh-agent wait until I use ssh to prompt for a password?
I have ssh-agent set up to automatically start and prompt when I open a terminal window, as is explained here. It gets somewhat annoying though since many times when I open a shell I don't plan on ...
2
votes
4answers
621 views
Alternatives to cd/ls for command line navigation?
I generally work a fair amount from the command line in order to launch vim, git, ssh and so on. However, I find the Finder's columnar view more natural for browsing through my files. Unfortunately, ...
2
votes
2answers
503 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
4answers
20k views
How to access a network folder in Ubuntu using the terminal
I am new to Ubuntu(and Linux for that matter) and I am trying to access files using the terminal. The network folder is on my Desktop, but when I go to the Desktop folder via the terminal, the ...
1
vote
1answer
666 views
Using SASS on my Debian server
Ok here's a quick question. I have a debian server with sass (driven by ruby) installed. To compile a sass file to a css file, yo do:
sass --watch style.scss:style.css
If I run this on my server ...
1
vote
1answer
7k views
-bash: ls: command not found at Terminal on Mac OS X
I need to start using GIT for my projects from now on and I need to use some UNIX commands. but no matter what I do, I always receive "command not found" error.
I installed MacPorts, but still cant ...
1
vote
3answers
24k views
Need some help with Terminal Emulator (Android app) commands. (Similar to Linux commands)
I'm trying to follow this tutorial to install Mobile Defense as a system application on my Motorola Droid. I want to use Terminal Emulator and the commands are basically the same. The only two ...
0
votes
2answers
881 views
In vim, how can I quickly switch between tabs?
In gnome-terminal, I can just press Alt + (1, 2, 3, etc.) to switch to specific tabs. I can also use Ctrl + (PgUp / PgDn) to cycle through tabs (admittedly less convenient, but it can be remapped).
...
0
votes
2answers
2k views
Terminal emulator with split panes for Mac OSX
I'm looking for a terminal emulator on Mac OSX with a specific feature:
to be able to split the console window into multiple panes.
It's a great feature of Terminator for gnome, I think this image ...
0
votes
1answer
579 views
Unix: How to one-way-sync directory with FTP directory
Is there a good command I can run from the Terminal that will one-way sync a directory with an FTP directory in a smart way?
I'd like it to for example delete all files on the FTP that no longer ...
18
votes
2answers
3k views
less is more? Is more less? I'm so confused
When I first heard their names, I got really confused when I tried to guess what these tools might do, I thought I'd misheard something.
What's the difference between more and less, i.e. why ...
5
votes
3answers
276 views
BASH history lost on reboot
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'
...
5
votes
3answers
178 views
How do I detect when I a terminal gets focus in Linux?
I want to be able to time how long I spend in front of a terminal. I'm thinking the best way will be to have some sort of timer that starts and stops when the terminal gains/loses focus. And it will ...
5
votes
3answers
2k views
Mac OS X Terminal - Remap Command Keys
Is there a way to remap command keys just for Terminal.app in Mac OS X? I know that I can remap keys at the system level, but I'd like a way to do it just for the Terminal app.
Ideally I'd like ...
