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

8
votes
2answers
15k 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
474 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
5answers
4k 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?
8
votes
3answers
2k views

Display messd up with weird characters in Gentoo after `cat` a binary file

I ran cat /etc/localtime to see the contents of /etc/localtime - however it's a binary file, so my console became like this: You may notice the red text in screenshot is "LiveCD"; commands can be ...
8
votes
3answers
5k 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
16k views

downloading file using scp command

I have a centos server lets say with ip: 1.2.3.4. I want to download a file from 1.2.3.4 at path /root/pc/filename.rar to my localhost host (current pc). What command I need to download that file? I ...
8
votes
2answers
10k 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 ...
8
votes
3answers
10k 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
12k 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 ...
8
votes
2answers
683 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 ...
8
votes
2answers
5k 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
2answers
15k 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 ...
8
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 ...
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
4answers
9k views

Is there a usermod equivalent in terminal for OS X 10.6.1

Can anyone tell me how to modify a user and add them to a group in terminal on SL (10.6.1)? It seems that usermod is not used by Mac.
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
6k views

Access iCloud Drive via terminal

OS X 10.10 was just released, and one of the features I personally awaited the most was iCloud Drive. Unfortunately, I had to learn that it was not as accessible as Dropbox. file ~/Dropbox ...
8
votes
2answers
9k 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 ...
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
4k 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
2answers
5k views

urxvt settings - reload without restarting terminal?

I have two urxvt color themes that I use, one for light background and one for dark, depending on how sunny the environment is. It's easy enough to switch them by modifying ~/.Xresources and running ...
8
votes
3answers
22k 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
17k 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
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
2answers
9k 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
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
1answer
856 views

How can I prevent the “You have mail.” message from displaying every time I open the Terminal

Every time I open the Terminal, I get the "You have mail." message, but I do not have any mail. When I run MAIL it reads, "No mail for myusername". I have tried several methods to prevent this from ...
8
votes
1answer
9k 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
3answers
411 views

Tabbed terminal that connects to a GNU Screen session?

I use the session feature of screen extensively. For example, I'll start a screen session for "project1" as "screen -S project1", and then when I need to reconnect I use "screen -d -r project1". ...
7
votes
4answers
1k views

Is there a way to have Linux run a command every X minutes?

I'm using RSync with my buddy just for testing and general geekery, we want to somehow schedule the sync task to run every X time. Using the terminal, we run the command and it works. What can we ...
7
votes
2answers
5k views

Good Terminal program for windows [closed]

I'm growing a little sick of Microsoft's HyperTerminal, Can anyone recommend a good terminal program (that accepts com connections)? Preferably free.
7
votes
4answers
460 views

Terminal: prefix previous command?

Frequently in Terminal (though I fully expect any answer will work in bash and most others), I type some command, and then get some sort of permission error due to missing sudo. Okay, so press 'up', ...
7
votes
3answers
7k views

I just got a Mac! How do I do “end” , “home”, “page up” and “page down” in my terminal/VIM editor?

I write a lot of python in my VIM, on the terminal. What do I do?
7
votes
2answers
6k views

Play sound on mac terminal

I have a script running in the background and sends me an alert every few minutes. I want the alert to be in the form of a beep. Question: How can I play a beep in mac terminal?
7
votes
2answers
7k 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.
7
votes
6answers
1k views

Text Terminal Hardware (for Linux)

Is there any way to obtain a hardware text terminal (preferably small in size) with a screen and a keypad to connect to a Linux machine (preferably via usb)? I'd like to be able to log into a command ...
7
votes
1answer
5k 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 ...
7
votes
1answer
15k 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 ...
7
votes
3answers
24k views

color coding mac terminal

how do i get the mac terminal to display colors? i.e. in fedora when i use ls it color codes the results based on if it's a file or folder. similar results on mac?
7
votes
4answers
23k 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 ...
7
votes
4answers
19k 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 ...
7
votes
6answers
3k 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? ...
7
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 ...
7
votes
2answers
2k views

ssh sessions in xterms freeze for many minutes whenever they disconnect

If I ssh to a remote machine and then lose internet connectivity, the session freezes. I can't control-c or otherwise abort and go back to my local xterm or terminal prompt but if I wait several ...
7
votes
4answers
4k views

GNOME Terminal - process name in tab title

How can I put the current running process name into a GNOME Terminal tab title (or title bar when there's only one tab)? -- UPDATE -- To clarify, I want the tab title to update when I run a process, ...
7
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 ...
7
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?
7
votes
2answers
9k views

Enabling SSH Daemon from Terminal (OS X Lion)

I am trying to find a way of turning on SSH through terminal, instead of opening settings and turn it on that way. Or perhaps a way to turn SSH on by running a .pkg file? I am running OS X Lion, but ...