A terminal is an environment for text input/output. Inside the terminal, one runs command-line and text mode programs (including shells).

learn more… | top users | synonyms

2
votes
3answers
2k views

How to send to background a running process started with sudo?

I have just installed SLC6 (derived from SL6 derived from RHEL6). I can send a running process to the background by hitting Ctrl-Z in the terminal where it was started. However, I can't do it when I ...
14
votes
2answers
1k views

Can I configure bash to execute “clear” before every command typed in the console?

I would like to configure bash to execute clear command every time I type some command in the terminal (before executing my command). How can I do that? I'm using Debian Linux.
1
vote
2answers
238 views

Use a different shell by default in each terminal emulator

I would like to change the default shell in each terminal emulator separately. To clarify, I want Xterm to use TCSH, pterm to use pysh, gnome-terminal to use BASH, etc. Is this possible? If so, how ...
7
votes
1answer
226 views

How do I prevent system information from being displayed on a terminal?

I'm working on a curses GUI that is supposed to start up automatically on boot-up in the default linux terminal (I have no X server installed). I have this working great, but I have a problem where ...
4
votes
1answer
302 views

Konsole works, gnome-terminal doesn't?

I'm running on CentOS 5.7 (in case that matters) I have a program (not my own) that runs fine from Lonsole, but when I run it from xterm, gnome-terminal or rxvt, it just hangs. I'm doing this with a ...
4
votes
5answers
2k views

Is there a (light-weight) replacement for `rxvt-unicode`?

I am currently using rxvt-unicode as a terminal emulator. Since I also like the configurability of terminal emulators from GNOME and KDE, I wonder whether there is some kind of replacement for ...
2
votes
1answer
609 views

Use the terminal's autocomplete path feature for input to a shell script

I want to make a script that: (1) Gets a path giving the user the ability to use tab to autocomplete, then (2) gets a filename from the user, and then (3) creates a file at that path with extension ...
7
votes
2answers
384 views

Are there any linux terminals which can handle all key combinations?

I like to use emacs in terminal mode (-nw), but it seems most (all?) terminals can't handle some key combinations - for example, C-<RET> or C-M-%. I know this is because most terminals emulate a ...
2
votes
1answer
367 views

View song's title on terminal

How to view currently playing song's title on terminal using vlc media player?
0
votes
0answers
43 views

User drive is not showing

I'll try my best explaining this: /dev/disk0 /dev/disk0s1 /dev/disk0s2 disk0 does not show up at all, when I login even my desktop is completely blank with no dock nor toolbar so even to logout is ...
2
votes
0answers
97 views

Best way to view scripted session logs

I have aliases set up for SSH and minicom to call simple wrapper scripts which just ensure that I get a log of the session. The logs are stored in a specified directory, and named with a tag and a ...
1
vote
0answers
233 views

How to scroll in a terminal by line in GNOME Terminal 2.31.3?

I use Shift+(PgUp/PgDown) while scrolling in the terminal. But it seems to scroll one screen (or a half may be) at a time. I feel comfortable scrolling the terminal by line with the mouse, but don't ...
5
votes
1answer
1k views

Fix terminal after displaying a binary file

I'd tried command cat with an executable file: cat /bin/ls Now I can't read any word in this terminal (Linux console). How can I fix it?
3
votes
2answers
251 views

Terminal-based (non GUI) virtual-computer program?

Are there any terminal-based (ie. non-GUI) virtual-computer programs out there? I've been using programs like VirtualBox and QEMU, but they're obviously GUI-based... I was hoping for a virtual PC ...
0
votes
2answers
138 views

Why are there empty lines in the output of my command?: find ~/x/y/ | shuf > ~/Desktop/z.txt

As it turns out the reason for this problem was one filename with several newlines. (No idea how that happened.) find ~/x/y/ | shuf > ~/Desktop/z.txt This command works pretty much as expected ...
2
votes
2answers
102 views

Color PS1 based on previous command output [duplicate]

I have my current PS1 as follows. The $? output is really useful (second line). export PS1="\ ${PSOn_Blue}${PSBWhite}\t\ ${PSColor_Off} \$?\ ${PSColor_Off}${PSBGreen} \u\ ${PSColor_Off}${PSWhite}@\ ...
1
vote
2answers
215 views

How can I print text using any one of the 256 colors that the terminal allows?

I would like to write a program that utilizes all 256 of the Linux terminal's text colors. To date, however, I have only found a handful of color codes, which are in the format ...
1
vote
0answers
48 views

Reformat terminal output and save to file

I was wondering how to reformat terminal output for logging information. More specifically I would like to reformat the output of the sensors command from the lm-sensors package and write it to a ...
3
votes
3answers
3k views

Characters encodings supported by more, cat and less

I have a text file encoded as following according to file: ISO-8859 text, with CRLF line terminators This file contains French's text with accents. My shell is able to display accent and emacs ...
6
votes
1answer
411 views

Why ssh does not turn terminal title back?

As you might know, when you ssh to a server from an X terminal (rxvt, gnome-terminal...), ssh changes the window title to reflect user@host, but it does not change it back. There are many tips how to ...
2
votes
1answer
65 views

Color terminal under USS

I've been using a remote terminal connected to USS under a mainframe for some time. Is there a way to configure this terminal to be colored? I'm using PuTTY and xterm. Added: USS stands for UNIX ...
0
votes
1answer
89 views

Command “I'm” on linux ubuntu [closed]

I'm new at linux, ubuntu, and I did type I'm running and then like if it was a program or something else, I was allowed to write more... nothing else... I just want to know more about this command ...
0
votes
1answer
1k views

How do I find the running GUI environment from the terminal? [duplicate]

It is a quite basic question, but I couldn't find a satisfying answer anywhere: How do I find out from the terminal what is the running GUI? The system I'm working on is quite minimal, all I can ...
1
vote
1answer
83 views

incorrect/overwritten margins when using vim in GNU screen

When ssh'd into a work server via PuTTY I'm seeing strange behavior with the left margins when using GNU screen and vim. For example, I'll open up a Python script and all indentations will be gone ...
2
votes
1answer
120 views

Is it possible to get a character at terminal cursor using ANSI escape codes?

I know I can move the cursor with the escape codes, and I can also print at the cursor. What I'd like to know is if it is possible to pull the character under the cursor. I tried searching for such a ...
1
vote
1answer
146 views

Command to hide everything except viewport in terminal window?

Is there a way to see only the viewport for terminal (Mac OS X 10.8.4)? (That is, can I hide the open/close/minimize buttons.) The need is for more for a visual desire than a practical one. I'm ...
1
vote
1answer
433 views

Archlinux forum question doesn't seem answerable [closed]

I'm trying to register for the Archlinux forum, and they have a question at the bottom that verifies that you're using Linux: What is the output of "date -u +%V$(uname)|sha256sum|sed ...
9
votes
2answers
850 views

Can I unfreeze bash or vim when SSH session freezes from timeout? [duplicate]

When my SSH session times out, the whole terminal freezes. Is there any way to break out of that connection? CTRL+C doesn't cut it.
4
votes
1answer
147 views

Raise Brightness When Maximizing Terminal

I'm looking to raise the brightness when I maximize or foreground the Terminal window which has Vim running. I would like to reset the brightness to normal when I minimize or background that process ...
0
votes
0answers
23 views

Traceback (most recent call last) error appears on terminal [duplicate]

Recently i encountered a weird problem in Linux mint 14.When i enter any command (e.g $ ls) in terminal it throws error saying Traceback (most recent call last). Detail Description of the error is ...
4
votes
1answer
285 views

output while reading keyboard input

I'm trying to write a script that will ssh into a box, start a processes that needs to be monitored (by a human) for success or failure then move onto the next box and repeat. I've been trying to use ...
1
vote
0answers
112 views

Modify .inputrc to fix Mac Terminal bug with vi mode

I currently have a bug in my Mac's Terminal (I actually use iTerm2 but it's still there), where once I press left arrow after typing, I can't go past the last character. Is there a way I can modify ...
2
votes
1answer
656 views

Get current terminal name

How do I fetch the current terminal name? I mean to the name that ps shows in the TTY column, e.g.: root@dor-desktop:/home/dor/Documents/LAMP_setup/webs_install/do/install# ps aux | egrep ...
1
vote
1answer
214 views

Creating a terminal device for interprocess communication

I'd like to know how to create a terminal device to simulate a piece of hardware connected through a serial port. Basically, tty device with a certain baud rate that can be read from and written to ...
-2
votes
3answers
176 views

Auto continuous scrolling of man output

When I execute man foo the terminal shows only the first page and then pauses. Then I have to manually press the keys to scroll here and there. After executing man foo how do I get an output which is ...
1
vote
0answers
69 views

Themed Tabs in Gnome Terminal

I've created a custom desktop session which upon login presents the user with a full screen gnome-terminal session. The idea is to have a TTY-like session but with the added advantages provided by X ...
2
votes
2answers
658 views

Tmux Terminfo problem with Zsh key bindings

Zsh in Emacs edit mode comes with the default key binding ALT + Backspace to delete a word on the right side of the cursor and ALT + D to delete a word on the left side. I would like to add the latter ...
2
votes
2answers
3k views

How to install tar file (jhead) on Mac or Linux machine

I'm new to Linux and tar balls and was wondering how to properly install them on a Mac or Linux machine. I would prefer to know how to install on a mac but I just need some help understanding them. I ...
4
votes
2answers
2k views

Disable bold font in urxvt

I want to disable the bold font in my urxvt config (.Xresources). xterm has the option allowBoldFonts. Is there a similar option for urxvt? I can't find anything similar.
4
votes
1answer
573 views

Start a song from a specific time in rhythmbox using command line

I would like to start a song from my terminal, starting from the first minute. i.e.: the command will run the music.mp3 starting from the minute 1. I am able to run a music with rhythmbox ...
1
vote
1answer
206 views

how to make terminal utf-8

How can I make my terminal(bash) window uft-8, that it can show utf-8 characters? my operating system is : ubuntu 12.04 my desktop : gnome-shell How about native shell(outside of desktop)?
4
votes
3answers
2k views

Where do I find a list of terminal key codes to remap shortcuts in bash?

For example: "\e[1;5C" "\e[Z" "\e-1\C-i" I only know bits and pieces, like \e stands for escape and C- for Ctrl, but what are these numbers (1) and letters (Z)? What are the ;, [ and - signs for? ...
4
votes
2answers
970 views

Terminal and web browser combination

I often use only two applications, terminal and web browser. I like the tmux application which enables to split a terminal window into more regions. I noticed that I can open lynx in another region ...
2
votes
3answers
266 views

Log in with specific shell at terminal login

If I log in to a system over ssh, I can use the default shell with a simple ssh user@host, or specify something like ssh user@host 'bash --norc --noprofile' or ssh user@host ksh. Is it possible to ...
0
votes
2answers
95 views

Emacs “jump to class definition” functionality?

I want to jump to a class file "A" from another file "B" which defines objects "A". In eclipse, it is done using F3. Is there a way to achieve this in emacs?
7
votes
1answer
237 views

“w | tail” chops text at right margin (78 characters)

Summary: w | tail chops rows after 78th column. When I run the "w" command, it works as expected. However, when I pipe the output to "tail", it chops the output to 78 columns wide (truncates anything ...
2
votes
1answer
307 views

Separate STDOUT noise from ncurses

I am trying to run an ncurses GUI application on an ARM board. I am running it using the serial console ttyAMA0 port. But when I run the ncurses program, the other processes running in the background ...
2
votes
2answers
1k views

Sublime command line open it twice

I just created a symbolic link to sublime: $ sudo ln -s /opt/SublimeText2/sublime_text /usr/bin/subl The problem is that it opens the last project and the open I want: $ subl my-project or $ ...
0
votes
1answer
46 views

Finding which filesystem [duplicate]

I have an external hard drive and would like to know what kind of a file system it has. How do I find that out using the terminal?
2
votes
0answers
104 views

zsh: Echoing every statement?

I have an odd problem with zsh when I switch between shells in a particular way: Option 1 (works well): I start a zsh shell. I switch to tcsh with /bin/tcsh, and I switch back to zsh with /bin/zsh ...