Questions tagged [terminal]
A terminal is an environment for text input/output. Inside the terminal, one runs command-line and text mode programs (including shells).
4,153
questions
82
votes
10
answers
118k
views
Disable screen blanking on text console
I'm running linux clusters, mostly on SLES10. The servers are mostly blades, accessed via remote console. There is a real console in the server room, but switched off.
I would like to disable the ...
11
votes
3
answers
7k
views
Remapping caps-lock to escape, and menu to compose, on the linux console
When running X I use a .xmodmaprc to remap certain keys thusly:
! Make it so that both Caps Lock and Escape do Escape
clear Lock
keysym Caps_Lock = Escape
! Remap the menu key as Compose
keysym Menu = ...
10
votes
2
answers
3k
views
screen + vim -- Any way to automatically set screen window name to open vim filename?
I have a pretty nice screen rc file that shows me the open screen windows almost like tabs at the bottom of the terminal. Currently the windows are named according to my prompt which is not so useful. ...
328
votes
10
answers
695k
views
How to split the terminal into more than one "view"?
From vi, if you issue the command :sp, the screen splits into two "views", allowing you to edit more than one file from the same terminal.
Along those same lines, is there a way to have multiple ...
4
votes
1
answer
521
views
terminal - having "$" instead of MyComputer:~ me$
Right now in my MacOS X terminal I have MyComputer:~ me$ before all the commands.
In some videos I saw they have just $ - that's much less clutter, how is it done?
1
vote
2
answers
1k
views
Select/Paste Word-Wrap on X-Based Terminals
Is there a sure-fire method to cut & paste word-wrap on X-based terminals? That is, if I select, then paste via button-3, if the text goes to the end of the line and wraps, the paste assumes ...
1
vote
1
answer
2k
views
Restarting X in CentOS 5
I went to a CentOS terminal, and someone was logged in doing work. I hit Ctrl+Alt+F2 to try to get to my own session so I could check something. When I hit Ctrl+Alt+F1 to get back, X did not come back ...
6
votes
2
answers
14k
views
Scrolling through ls output without a mouse
In some directories there are quite a few files. When I use ls the output is more than my terminal can handle. Typically I just use one of the following:
ls | less
ls | more
depending on my mood. ...
2
votes
2
answers
4k
views
vim - but with scrolling, clickable text, and copy-paste
I like vim. I think touching mice is dirty. But sometimes when my hand is already on a mouse, it sure would be nice to be able to scroll the text or click a location in the text and have the cursor ...
3
votes
2
answers
4k
views
Dtach and Vim over Ssh: Reattach Session
I connected to my server:
$ ssh me@example.com
While in the server, I open a dtach session with vim:
$ dtach -c \tmp\my-dtach-session-pipe vim
Then my ssh session dies. I attempt to go back to my ...
9
votes
4
answers
25k
views
Can I spawn a new terminal that is a clone of the current terminal?
So let's say I'm developing code in directory /asdf/qwer/dfgh/wert/asdf/qwer and I've added about three more directories like that to my path and I have a bunch of arcane environment variables set. ...
21
votes
2
answers
12k
views
GNU Screen: new window name change
I can change the name of a window with Ctrl-a Shift-a. Instead of editing several window names by hand, is there a way to have them automatically named after the current directory?
3
votes
4
answers
2k
views
How can I turn the behavior of `gedit something & disown` into the default behavior when calling gedit from the command line?
When I gedit files from the command line, it's always locking the terminal, and I'm tired of explicitly commanding a detached process for it.
I tried to alias gedit as something like gedit $* & ...
7
votes
2
answers
3k
views
Can I set my local machine's terminal colors to use those of the machine I ssh into?
I have a color scheme that I like for when I'm in a terminal, but I ssh into the machine I work on from multiple sources (locally, PuTTY, my netbook, etc.) and I want to maintain the same color scheme ...
30
votes
1
answer
8k
views
What protocol/standard is used by terminals?
I was wondering how the "GUI" of a command line application is communicated over a network. Most of the time, it's quite simple (plain text / input) but sometimes it's more complex (aptitude).
Is it ...
40
votes
2
answers
112k
views
What is the concept behind "tty" in linux? [duplicate]
Where did the terminology "tty" come from in Linux?
21
votes
6
answers
25k
views
How do I jump to the next or previous word with CTRL + arrow keys in a console?
In terminal emulation applications, pressing CTRL + Left / Right arrows jumps from one word to the previous or next one. Is it possible to have the same functionality in a Linux console, whether it is ...
4
votes
1
answer
1k
views
Is it possible to boot an x86 Linux kernel using both 80x25 text mode consoles and VESA framebuffer consoles?
The Linux kernel documents that you can choose to boot Linux with VESA framebuffer consoles instead of the default 80x25 text mode consoles.
For text application testing purposes, one may need both ...
5
votes
2
answers
4k
views
How do I permanently increase the font size in mrxvt?
The Ctrl+= hotkey increases the font size for the current session in mrxvt. What configuration option will increase the font size permanently?
7
votes
1
answer
7k
views
rxvt and Inconsolata (a font)
Is it possible to use the rxvt terminal emulator with Inconsolata? Is it possible to use any TrueType fonts with rxvt? I'd like to use rxvt but would love to use my own fonts.
69
votes
1
answer
38k
views
Is it possible to have vim key bindings in terminal?
I'm getting used to vim bindings (like pressing w to go to word, dw to delete a word, and such) and it's modes (insert, normal, visual), and, out of curiosity would like to know: is there some kind of ...
8
votes
1
answer
4k
views
Disabling line wrap in Konsole
Is there a way to prevent konsole from wrapping lines? It would be great if I could do it without disabling any of the other features like extended colors and other of the fancier things.
4
votes
3
answers
2k
views
How to get output from a remote shell
I have an application running on a server, started from the command line. From time to time, I need to connect to the server via SSH and get the output messages written to stdout from the application. ...
5
votes
4
answers
4k
views
Copy text from one terminal into another
I am logged into ssh to a university account from my home computer. Then I find a file that I want to copy onto my local system. So I open a new shell terminal and am about to use scp to copy that ...
1530
votes
10
answers
472k
views
What is the exact difference between a 'terminal', a 'shell', a 'tty' and a 'console'?
I think these terms almost refer to the same thing, when used loosely:
terminal
shell
tty
console
What exactly does each of these terms refer to?
20
votes
8
answers
3k
views
Is screen useful?
When I need to open different processes or terminals that I need to check, I just open a new tab in my terminal and use different workspaces in my machine to keep everything organized.
I do some web ...
187
votes
9
answers
147k
views
How can I disown a running process and associate it to a new screen shell?
I have a running program on a SSH shell. I want to pause it and be able to unpause its execution when I come back.
One way I thought of doing that was to transfer its ownership to a screen shell, ...
444
votes
11
answers
629k
views
How can I run a command which will survive terminal close?
Sometimes I want to start a process and forget about it. If I start it from the command line, like this:
redshift
I can't close the terminal, or it will kill the process. Can I run a command in such ...
8
votes
5
answers
1k
views
Would it be possible to jump between prev/next command prompts?
I'm using zsh in OS X Terminal.app and for quite a while, I've been longing for a way to jump back and forth between prev/next prompts in the terminal's output.
One convenience with this would be to ...
2
votes
0
answers
375
views
How can I check which shell I am currently using? [duplicate]
Possible Duplicate:
How to test what shell I am using in a terminal?
An echo $SHELL will only display the value of the SHELL variable which would indicate the default shell on the system.
But I ...
6
votes
1
answer
5k
views
Why don't Page U/Down, Home/End work in less on Solaris over ssh from Ubuntu?
I need to work on a Solaris server over ssh from my Ubuntu (Lucid) laptop. I got Home/End Insert/Delete Page Up/Down working in csh and bash using bindkey and ~/.inputrc, respectively. But I can't ...
5
votes
2
answers
7k
views
How do I fix unix so that I can use the arrow keys in a terminal?
Before I was able to use the Up/Down arrow keys to cycle through previous commands, but now when I press a directional key it outputs "^[[A". I'm running a bash shell. How do I fix this?
40
votes
5
answers
13k
views
How to know the "level" of shells I am in?
If I open a terminal like xterm I will have a shell. Then if I use ssh or zsh I will have another "level" of shell. Is there a way to know how many times I have to Ctrl+D or type exit to exit all of ...
10
votes
4
answers
18k
views
Viewing system console messages in GUI
Under Linux, is it possible to view error messages that show up on the text mode terminal while in GUI mode, instead of having to press Ctrl+Alt+F1 or Ctrl+Alt+F2 to view the messages every time and ...
6
votes
3
answers
3k
views
What is the MIME equivalent of uuencode for sendmail?
e.g., I've got files I want to send by sendmail but the receiving mailbox (for posting pictures to my blog) will not accept uuencode files a la
$uuencode file | sendmail user@domain
I'm guessing it'...
8
votes
1
answer
2k
views
How to use the ul command line utility
I wanted to answer Use _roff to underline words with "just use ul, this command is meant specifically for underlining text", however I just can't grasp how to use it. I thought
$ echo "hello _kitty_ ...
20
votes
2
answers
28k
views
What is the Linux equivalent of the Windows registry?
I have a DVD+-RW drive that has quit working. Apparently many users of this laptop model experience the same problem under windows and are required to edit the registry to correct the problem. So ...
3
votes
1
answer
3k
views
LS_COLORS settings for specific types of files
I'm trying to set up my color scheme for ls, and I'm having trouble finding information about exactly what parameters I have to work with, or where those come from. And especially setting colors for ...
131
votes
3
answers
35k
views
Kill an unresponsive ssh session without closing the terminal
Is there a way to disconnect from an SSH session that has become unresponsive without killing the whole terminal? Specifically I'm using konsole, and the machine I'm working with sometimes hangs, but ...
4
votes
2
answers
183
views
Best way to handle lots of mail on server?
Due to some bad cron jobs I now have ~1600 mail messages, most of them containing the same error log. I would like to quickly group them by subject and delete them, while limiting the chances of ...
9
votes
7
answers
3k
views
Minimalistic terminal music player that can play all my files randomly
I'm looking for a terminal music player. mpg321/mpg123 is quite what I need, but it can't play all my music directory (which contains child directories). cmus seems to be a bit of an overkill, as ...
48
votes
6
answers
43k
views
How to remove "You have mail" welcome message
When I open up my terminal it says "you have mail", anyone has any idea of why? I am running OS X, but since it too is based on Unix and relies on files such as bashrc, bash_profile etc. I thought ...
4
votes
2
answers
2k
views
closing unused gnome terminals
while working I start lots of gnome-terminals and do something with them. dd on first terminal, 12 ssh sessions to a bunch of servers to do something. These sessions are finishing it's job and get ...
2
votes
4
answers
16k
views
Identifying files with special characters in its name in a terminal
Something strange happened today.
I was connected to an HP server with putty, and saw two files with exact same name:
-rw-r--r-- 1 hemantj 3368 Apr 1 12:47 test
-rw-r--r-- 1 ...
12
votes
3
answers
4k
views
Change the PS1 color based on the background color?
I learned that I can change the format of PS1, especially the color of the string. Then, is it possible to change the color based on the background color of the shell? Or, how can I detect the ...
7
votes
2
answers
3k
views
dash compatibility to bash
Wikipedia says that dash executes faster than bash. My question is, if I set /bin/sh to dash, will all scripts that use /bin/sh in their shebang line that was intended for bash work under dash?
8
votes
1
answer
1k
views
Whenever I type some wrong command, my terminal tries to run that command in the background
Something strange started happening to my terminal. Whenever I type some wrong command it tries to run that command in the background.
hegeek@colinux: ~# l
[9]+ Stopped l
thegeek@colinux: ~# ...
14
votes
2
answers
2k
views
Clearing GNU Screen after full-screen application
When working at a normal xterm (not sure about a "real" terminal), when a full-screen program such as man or vim is closed, it disappears, leaving your screen so you can see your prompt, and previous ...
9
votes
5
answers
6k
views
How to show live results on terminal from a shell script?
How can I write a shell script that shows the results in real time?
Something like the top command that updates the results after some fixed intervals of time.
1
vote
2
answers
4k
views
What encoding does my Konsole support?
How can I check what encoding (ASCII, UTF-8, UTF-16 etc) my Terminal uses?
It shouldn't matter, but I am using Konsole on KDE3.5.