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

7
votes
5answers
994 views

Is it possible to get your router's external ip address without using a website?

I was wondering if there was a way to find out your router's ip address without using a website like www.whatismyip.com. I searched around, and I am beginning to think it is impossible. If that is ...
7
votes
2answers
5k 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 ...
7
votes
3answers
773 views

Duplicate pseudo terminals in linux

On a redhat box [ Red Hat Enterprise Linux AS release 4 (Nahant Update 3) ] Frequently we notice two people being assigned to the same pseudo terminal. For example: $who am i user1 pts/4 Dec ...
6
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 ...
6
votes
8answers
2k views

'End Process' equivalent on linux

Currently i am using the system monitor of gnome. It is like task manager, and has a function to end process, but sometimes this makes everything freeze and it locks up. Is there any way to fully end ...
6
votes
5answers
818 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
3answers
8k 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 ...
6
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 ...
6
votes
6answers
3k 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. ...
6
votes
5answers
3k views

How can I solve this error I get when I commit changes on an SVN repository from the Ubuntu terminal?

When I commit changes on a SVN repository, I always run into the following problem in the terminal in Ubuntu: Error reading /home/ssylee/.nano_history: Permission denied Any ideas how to solve it?
6
votes
2answers
8k views

Is Windows PowerShell as powerful as the terminal of Unix/Linux? [closed]

Is Windows PowerShell as powerful and efficient as Linux' terminal? People offline tell me, without explaining much, that Windows PowerShell is an attempt to make Unix administrators feel more ...
6
votes
4answers
634 views

How to selectively navigate through Bash command history on a Linux terminal [duplicate]

Everyone knows (or should know!) that on a terminal the up and down arrow keys are used to navigate through the history of used commands. When you use the terminal on a daily basis, your command ...
6
votes
1answer
239 views

I deleted my aliases file, but my aliases are still in my bash session - how can I recover them?

I had a ton of aliases defined and I use them all the time. I have a terminal session open now in which all the aliases are valid and working. However, the .bash_aliases file in which they were ...
6
votes
4answers
21k 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?
6
votes
4answers
3k 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 ...
6
votes
2answers
6k views

How can I hide or remove the split-pane bar on the right in Mac terminal?

What do I need to do to remove the split pane sidebar on the right from the terminal window? Never used to have it and now I don't know how to get rid of it.
6
votes
5answers
6k views

Can you find out the IP SSH-ing your computer?

If computer A SSHs computer B, can computer B find the IP of computer A? If so, how?
6
votes
2answers
9k views

Save output to a text file from Mac terminal

How could I enter a command, say, system_profiler, and have the output save somewhere on my computer?
6
votes
1answer
12k views

chown - Operation not permitted

I'm logged in as minime. I don't understand why it doesn't allow me to chown file that I own without su privileges. Obviously I can use sudo, but I'd like to understand why? because of www-data ...
6
votes
4answers
20k 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 ...
6
votes
3answers
2k 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:~/* ~/ ...
6
votes
2answers
2k 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 ...
6
votes
1answer
6k views

Set default terminal in Ubuntu 12.04

I've set the default terminal using sudo update-alternatives --config x-terminal-emulator but every time I press Control + Alt + T, it still opens up gnome-terminal. I would like to change it to ...
6
votes
5answers
5k 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 ...
6
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), ...
6
votes
2answers
6k 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 ...
6
votes
4answers
7k views

How to execute a shell script with selected files/folders in finder?

I'm coming from Linux where it's easy to run a script against a set of files in nautilus or dolphin, but I was kind of surprised to see that this isn't easy in OSX. Preferably, I would love to be ...
6
votes
2answers
2k 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 ...
6
votes
2answers
576 views

Can I login to multiple terminals with the same user safely on Linux?

By terminals I mean the ones you can switch to using Ctrl+Alt+F1-F6. I know I'm able to login multiple times but does this have any side-effects?
6
votes
3answers
6k views

git-receive-pack : command not found

I made a git repo on a local machine with "git init --bare" and added it as the remote origin on the project on my main computer with ssh: git add remote origin git@192.168.1.14:repoName.git I was ...
6
votes
1answer
2k 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?
6
votes
3answers
535 views

How to delete entire system using Terminal

How can I delete my entire system using terminal? I know that the beginning is rm, but then what?
6
votes
2answers
1k 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 ...
6
votes
1answer
645 views

Pasting into vim from GUI results in missing lines

When I copy text from an OS X GUI app (e.g. Firefox) and paste it into vim in my terminal, it's often missing the first few lines or characters, with no obvious pattern. This may not be vim ...
6
votes
2answers
858 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 ...
6
votes
2answers
4k views

How can I determine a cmd.exe's parent process

Sometimes I find myself in a cmd.exe environment that itself was started by another cmd.exe or by another console-based application. Now, working in such an environment, I'd like to know what happens ...
6
votes
1answer
2k views

Redirecting Terminal.app to iTerm.app

Is it possible to redirect an app in Mac OS X to another app? If not, can you redirect Terminal.app to iTerm.app, so every app that wants to open a Terminal window, instead opens an iTerm window. ...
6
votes
2answers
667 views

MacOSX 10.6.7 cuts off stdin at 1024 chars

I've written a little perl script that I invoke as follows: perl -pe'...' <a I wanted to copy the contents of the input file 'a' from a web browser (a whole wordpress blog entry, to be exact). ...
6
votes
3answers
464 views

Portable method of opening a new terminal window?

So, I'm working on a custom makefile script (for TinyOS, if anyone cares) that builds a file and then runs it in a simulator. The problem is that the simulator takes it's input from standard in, and ...
6
votes
1answer
2k 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 ...
6
votes
3answers
2k views

Could not create directory '/var/empty/.ssh'

Every day, after several hours of use, anything using SSH will just randomly stop working. The only solution is for me to restart my machine, which fixes it until it randomly occurs again. > git ...
6
votes
3answers
1k views

How can I render a website as an image from the shell?

Looking to say "http://example.com/index.html -o website.png" Is there an existing program to do this? I'm ok with doing html to png. Is there a program for that?
6
votes
1answer
3k 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 ...
6
votes
2answers
4k views

Smooth scrolling for vim in Mac Terminal/iTerm?

Is it possible to get smooth scrolling (using the mouse scroll wheel or macbook touchpad) within a terminal on Mac OSX (Lion)? Furthermore, could I do this within vim? I find that smooth scrolling ...
6
votes
2answers
3k views

Mac OS Lion - Always show menubar with fullscreen apps?

Does anyone know if it is possible to keep the menubar in Mac OS Lion visible for fullscreen apps instead of hidden until hovered over? I imagine there's some Terminal command I can enter to adjust ...
5
votes
3answers
5k views

How do I set my shell in Mac OS X?

I know I can set "Shells open with" in the Terminal preferences, but I'm curious if there's any system-wide way of setting this (similar to updating /etc/passwd in some Unixes).
5
votes
3answers
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?
5
votes
5answers
2k views

What is the difference between “Shell” and “Terminal”?

I am fairly new to Ubuntu and I am loving it! But I don't quite understand the difference between the shell and the terminal. Can any one explain? Someone told me that a terminal is just a "tool" to ...
5
votes
7answers
2k views

How do I return only file names from the find command?

I'm looking to get a list of just file names (without the rest of the path) when executing the find command from a terminal. How do I accomplish this on the mac?
5
votes
5answers
36k 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?