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, ...
4
votes
4answers
2k 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 ...
4
votes
4answers
903 views
Is is possible to use an image as the background in Terminal in Mac OS X?
I know how to change the background color in Terminal in Mac OS X by using the Preferences window. I would like to be able to use an image as my Terminal background instead, but I don't see an option ...
4
votes
3answers
7k 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 ...
4
votes
3answers
8k views
OSX Lion terminal lost all colors
I recently upgraded to Lion only to find that Terminal.app (and iTerm2, which I actually use instead) have totally lost all colors. This means no syntax highlighting in Vim, no colored directory names ...
4
votes
4answers
3k views
Recursive search for files that hold some specific text
How do I recursively generate a text file which has a list of all files on my server which contain a specific string anywhere in the files?
I know the following command can be used to replace a ...
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 ...
4
votes
2answers
430 views
tmux / vim split panes
I am borrowing this screenshot from another question:
The terminal background seems to leak through into vim left of the dividing border. This is most noticeable near Top.
Can anyone tell me ...
4
votes
3answers
147 views
Running the same command in all windows of the unix terminal
Is there a way to run a single command in all the terminal windows you have open? (I.e. SSHing into a server or something like that?)
4
votes
3answers
4k views
OS X Terminal command to change color themes
Is there a command that can be used to change the color scheme of the Mac OS X Terminal? I like the idea of being able to change colors depending on scripts I run. So far I am just changing the color ...
4
votes
4answers
647 views
Got Ubuntu Server, Now What?
As a learning experience I recently downloaded and set up Ubuntu 10.04 Server edition. When I logged in for the first time, all I saw was a terminal. I stared blankly at the screen, wondering what in ...
4
votes
2answers
209 views
command preceded by “\”in terminal
Whats the difference between commands:-
ls
\ls
So if i write
$ls
or
$\ls
Whats the difference?
4
votes
3answers
5k views
How to launch applications in 32 bit from Terminal in Snow Leopard?
Like a lot of people, I have some issues with launching my applications in 32 bit mode, because of the far-from-perfect LCC 3.1 driver for my Logitech di novo edge keyboard. Basically, I am not able ...
4
votes
2answers
2k views
Color scheme not applied in iTerm2
I haven't been able to apply any color scheme to iTerm2.
It looks like that the Basic Colors are applied, but the ANSI Colors are not (as shown in Preferences>Profiles>Colors).
Using Mac OSX ...
4
votes
1answer
473 views
How do i get the git pager to act normal?! Less leaves output on the screen when executed via git
The pager less doesn't clear the screen as it should do when i use git.
I use less all the time and it usually doesn't leave output in the terminal after quit but when less gets executed via git it ...
4
votes
3answers
5k views
how to cd into a thumb drive from terminal ( Mac OSX )
How do i change into the directory of my thumbdrive? I've been poking around and see that this command, "diskutil list", lists all my local disks. That produces this..
David-Adamss-MacBook-Pro:~ ...
4
votes
2answers
66 views
See if folder x has all the files in folder z
I have 2 folders, and I want to know if folder#1 has all the files in folder#2
How can I check this?
4
votes
4answers
410 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. ...
4
votes
3answers
2k views
Switching tabs in Mac terminal with Ctrl+PageUp/PageDown
I've recently started using a Mac (running Lion), and there is one inconsistency that's getting to me.
In Chrome and MVim, I can switch tabs with Ctrl+PageUp/PageDown. But, in the Terminal, I have ...
4
votes
3answers
4k views
Clear terminal using keyboard shortcut
I was curious if there is a way to clear the terminal buffer/output through some keyboard shortcut. I am using Ubuntu. I am aware that
Ctrl + L
clears the terminal, but you can still scroll back to ...
4
votes
6answers
5k views
UNIX - How to copy and paste between different bash windows with files opend with VI?
Lets say I log in to bash, open a file in vi, then using alt-f2 I open a new terminal. After logging in I navigate to a second file and open that in vi. How can I CnP between these two files?
I found ...
4
votes
2answers
3k 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?
4
votes
3answers
1k views
Alternative terminal emulators for OS X
This might sound ridiculous, but my eyes are tired of looking at the crappy font rendering in OS X's Terminal.app, is there anything you guys recommend?
I know it's like one of those things that you ...
4
votes
3answers
3k views
Colors in Vim via gnome terminal are not the same with gVim
why is it that the colors when using the color scheme 'blackboard' via Vim in gnome terminal is not the same as when I use the same theme in gVim?
i.e. the background is black while on gVim it's blue ...
4
votes
3answers
2k 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 ...
4
votes
2answers
735 views
How to configure the ANSI colors of the command line terminal
I specifically use bash on Mac OS X, but I think the answer would be Unix-generic.
I'm already using ANSI colors, but I'd like to reassign different colors to folders, hidden files, etc.
...
4
votes
3answers
2k views
SIGTERM with a keyboard shortcut
I know that inside a terminal, Ctrl+C keyboard shortcut will send a SIGINT signal to the current foreground process. Is there a way to setup a keyboard shortcut for sending SIGTERM or even SIGKILL to ...
4
votes
3answers
27k views
How to execute python script from console without writing full path?
I have a few python scripts on /usr/share/scripts/ that I use often, and I want to be able to execute them by just writing the name and not the full path, how could I do this?
echo $PATH shows me:
...
4
votes
2answers
631 views
zsh, up arrow only repeats unique commands?
I'm looking for a setting that will make it so that when i hit the up arrow, zsh shows commands i have recently edited. The catch is, i only want unique commands. Currently, if i type echo "hello ...
4
votes
4answers
794 views
Mac crontab is never created
I am trying to setup a cron on my mac, but it seems that it never finishes creating a crontab for my user. I open terminal and enter:
$ crontab -e
Which returns this:
crontab: no crontab for ...
4
votes
1answer
424 views
Prevent “^C” from being printed when aborting editing current prompt
When you're editing a prompt in bash, and then press Ctrl-C to abort it, "^C" might get printed where the cursor has been.
When you were in the middle of the line, this makes copy'n'pasting more ...
4
votes
2answers
2k views
How can I get OSX Terminal.app to open fullscreen and not cascade?
I prefer to have separate Terminal App windows rather than tabs. If I open a new windows then it always wants to cascade and I can never get it to go fullscreen.
Solution?
4
votes
1answer
2k views
Using SCP or SFTP with my ssh config file?
Perhaps my google-foo is failing me here... I'd like to connect and upload a mysql dump file via terminal using SFTP or SCP to my remote server using my ssh config file. According to documentation ...
4
votes
1answer
745 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
2answers
778 views
What's the difference between ^S and ^Z inside a terminal?
When using a terminal emulator, one can stop the currently running program with either CTRL-Z or CTRL-S. What's the difference between these control characters?
4
votes
3answers
1k views
Terminal app on Mac OS X - normal keys
There are some default terminal things different for the Mac (for example, Command C to copy and Command V to paste rather than simply highlighting/right clicking).
These are fine with me. What ...
4
votes
1answer
2k views
Ubuntu: errors in terminal: how to show them in english language?
i installed Ubuntu in italian language. Now I would like to see the error commands in english.
For example if i write:
$ mmmm
This is showed:
mmmm: comando non trovato
I would like that
...
4
votes
1answer
901 views
Command line Linux: Better Font?
I'm looking for a way to get a nicer font (Times New Roman or whathaveyou) on my command-line text-only system.
That's right, I'm talking about a system without a window manager, and without X.
I'm ...
4
votes
6answers
2k views
Why doesn’t windows explorer show my removable / USB drive even though the command prompt does?
I'm running WinXP SP2. Around 50% of the time, when I slot in my USB drive. Windows explorer refuses to show the drive.
If I click on the Safely remove hardware icon on the tray,
I can see a menu ...
4
votes
1answer
440 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
625 views
SSH via terminal, from Mac to Mac (via 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 ...
4
votes
1answer
427 views
How can I create keyboard shortcuts to run commands in a terminal?
I was wondering is it possible to bind say F5 to output sudo apt-get update so I can press one key to write this into the terminal?
4
votes
2answers
2k 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. ...
4
votes
1answer
3k views
How to change the default terminal to rxvt in Ubuntu
How can I set rxvt as my default terminal in Ubuntu?
4
votes
2answers
662 views
How can I get iTerm to open a group of windows when it's started?
Apple's Terminal app allows you to save a Windows Group. It seems like iTerm probably has a similar sort of function, but I can't figure how to do it. Right now, it opens one window which is the ...
4
votes
1answer
202 views
How to reset system colors
I'm using Linux Mint, MATE version. I have a weird problem that occurs quite frequently when scrolling down through log files in terminal: the machine pauses for a second or two, and when it comes ...
4
votes
2answers
3k 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 ...
4
votes
3answers
123 views
UP arrow key on Apple External Keyboard not recognized in OSX Lion terminal
I have a MacBook pro for work use, and just got my hands on an apple USB keyboard.
When I am in the terminal, using the external keyboard ONLY I receive weird characters when I hit the UP arrow key. ...
4
votes
2answers
728 views
Can bash (or a terminal) auto-complete (tab-complete) from terminal buffer contents?
Imagine I have a bash session in a terminal, just after some output:
$ grep foo *.txt
this.txt: something123 foo
$
After this grep, let's say that my next command will take something123 as an ...
4
votes
2answers
1k views
With Bash + iTerm2, how to name tabs?
In iTerm2 (Build 1.0.0.20120203), I typically open several tabs, each of which has split panes , and is about one particular theme of work, for example revision control, coding, managing files, mysql ...
4
votes
2answers
3k views
Syntax highlighting in Terminal Mac OS X
How can I highlight different parts in the Mac OS X Terminal app? For example a different color for input and output? Are the pre-defined color themes I can activate/download?
