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

1
vote
3answers
46 views

Where does the TERM environment variable default get set?

When I open a terminal window with the GNOME Terminal emulator in the desktop GUI the shell TERM environment variable defaults to the value xterm. If I use CTL+ALT+F1 to switch to a console TTY ...
10
votes
5answers
334 views

How can I find the common name for a particular glyph?

Sometimes, I'd like to know the name of a glyph. For example, if I see −, I may want to know if it's a hyphen -, an en-dash –, an em-dash —, or a minus symbol −. Is there a way that I can copy-paste ...
1
vote
1answer
39 views

reliable way to give all read/write access recursively in CentOS 7

What is the most reliable way to give all users read/write privileges for a given directory and all of its subdirectories and files in CentOS 7? In an eclipse web application project that uses ...
3
votes
0answers
15 views

How can I pass function keys to htop in a tty?

I'm trying to use htop in tty1. However, some of the function keys don't appear to work as normal. F1 and F2 do nothing, and F3 seems to trigger setup (which should normally be triggered by F2). In ...
1
vote
2answers
44 views

Change color of input text, not output [duplicate]

I need to capture screenshots of the terminal where the typed commands visually "stand out" from the rest. Right now I'm using this to make my typed commands "red": PS1='\[\e[0;31m\]\u\[\e[m\] ...
1
vote
1answer
35 views

Reinterpret terminal output

I have a program that executes some commands in a terminal (for example apt-get update) and stores the output. How can I reinterpret the output, so I can remove all information that is not needed ? ...
2
votes
1answer
30 views

Using wget, how to download to a specific location, without creating folders, and always overwrite original files

How do I use wget to download files to a specific location, without creating directories, and overwrite the original every time. I've tried using the -r -P and nc options in combination but this ...
1
vote
3answers
645 views

How to re-adjust content while resizing gnome-terminal?

Some times when I am compiling a script the parameters are so long that they cover many lines in the terminal. When I resize the terminal in order to read more clearly, the content does not ...
1
vote
2answers
38 views

echo with backspace

I am trying to figure out why this happens in bash. Ok this is easy enough. $ echo -e 'a\txy\bc' a xc Ok this is easy enough. $ echo -e 'a\txy\b\b\b\b\b\b\b\b\bc' ac xy Ok this is easy ...
2
votes
1answer
493 views

Activating colors in links2 (text mode)

I can't seem to see colors in links2 (text mode), even after playing with my TERM settings. The links2 manpage and README.Debian don't specifically address this issue. Also, command-line options like ...
8
votes
2answers
2k views

Aliases and tmux

Aliases defined in .bash_aliases and .bashrc don't work in tmux. Can this be changed in some configuration, so the aliases work under tmux?
0
votes
1answer
23 views

Run script from GUI with terminal output

I would like to run a script from the GUI. For example a simple echo "hello" from the right click context menu. In my case I would set up an action in thunar like this: Then it appears in the ...
2
votes
0answers
22 views

Slackware won't ring my bell

I want to ring bell in bash I've set lsmod |grep pcs pcspkr 1987 0 xset b and finally echo -e \\a But no ring.
1
vote
1answer
451 views

UTF-8 in Terminator

I use the Terminator terminal emulator, and out of pure boredom, I installed and attempted to run this program: https://github.com/thiderman/doge However, it requires UTF-8 encoding to work. I opened ...
1
vote
1answer
1k views

Corrupted gnu-screen session not displaying UTF-8 correctly

(Edited to clarify the role of Emacs in the problem with the display.) My current gnu-screen session has gotten corrupted somehow, and Emacs fails to display UTF-8 characters properly. I've ...
1
vote
1answer
48 views

Getting Python errors whenever I try to use terminal in Linux Mint

I've had Mint installed as a dual boot on my laptop for some time. I use it as my dev environment, for desktop and web related coding. I recently started getting errors which have rendered my terminal ...
4
votes
3answers
80 views

Adding vertical space after command in bash

How to add vertical space after each command in bash? Looking for a wee bit of vertical space, not a full line. 1/4 or 1/3 of the line height should do it. [edit] The space to add is only after the ...
38
votes
3answers
43k views

How to recover a 'lost' screen session?

Somehow I managed to close a screen window without screen 'noticing' it, so the session is still flagged as attached. This prevents me from re-attaching to this session. What can I do? ...
1
vote
1answer
68 views

Echoing Backspace Characters in the Terminal

I'm working with picocom running inside gnome-terminal. I have local echo switched on inside picocom using the -e option, and when I backspace I can see that caret moves backwards, however the ...
1
vote
0answers
19 views

Nautilus to open in the foreground

From the terminal I can open the file manager using nautilus ., but the window opens behind the current terminal window (on my Ubuntu 14.04). Is there a way to call nautilus from the terminal and ...
1
vote
1answer
18 views

Dotfile not working in current shell, need new one

To be clear, this isn't a screen issue, I'm sure it's a general shell issue. On a new Ubuntu 12.04 server, I'm currently logged into a terminal in which I want to run the screen command with my ...
6
votes
3answers
2k views

Terminal prompt not wrapping correctly

I have an issue where if I type in very long commands in bash the terminal will not render what I'm typing correctly. I'd expect that if I had a command like the following: username@someserver ...
1
vote
2answers
38 views

CentOS 7 shell script interpretor

I am starting to write a shell script to be run in CentOS 7. Which interpreter should it call, and what should the shebang line look like? I tried this: #!/bin/sh But when I type cd /bin ...
1
vote
1answer
28 views

Background color mismatch in vim and tmux

I'm having trouble getting the full range of colors to work in vim when I'm running through tmux. I belive that it's some sort of trouble with TERM variables or 256colors, but I've done everything I ...
4
votes
4answers
41k views

How do I exit or cancel a bad bash command?

I expect to get some flak for this, but I can't find the answer anywhere. It seems like it should be so obvious. Sometimes, when I type a bad command in a bash terminal, the cursor just jumps down to ...
0
votes
3answers
42 views

Bash: Access parameter passed to last command [duplicate]

This is a situation I often find myself in: mkdir /Some/really/long/path/to/a/directory/ cd /Some/really/long/path/to/a/directory/ I know that ideally you would cd /Some/...etc.../a/ and then mkdir ...
-2
votes
2answers
47 views

autocomplete weirdness as a result of ugly hack for zsh prompt

I currently have the following line in my .zshrc: export PROMPT=$(printf "\e[38;5;6m")%m$(printf "\e[m")%d-%h:" " Which is supposed to show the hostname in blue and history and current working ...
2
votes
0answers
236 views

tty blinking cursor not at insertion point

I have an Ubuntu 12.04 system where I, at reboot, login a root. This morning I did the things I had to and thought about running apt-get -y upgrade I started typing this but before pressing Enter I ...
2
votes
1answer
142 views

How to display a BASH X terminal and graphics in split view window?

I created a simple education tool using BASH script which runs in an X terminal. It displays a prompt, at which users can enter choices, as described in the Bash Guide for Beginners' Catching user ...
2
votes
1answer
28 views

find out the size of open terminal

On DE we can resize terminal (gnome-terminal for example) for our convenience,how can I know the size of the terminal in terms of pixels or number of columns and rows?
82
votes
8answers
38k 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, ...
3
votes
3answers
160 views

Starting a process from one terminal from another terminal

I was wondering of there is any method to start a new process or a program from one terminal into other. What I mean is: Let's say I have to run gedit abc.txt, but I don't want it to block my current ...
4
votes
1answer
35 views

What does “mouse reporting” mean?

Today I saw a description on iterm2's doc about its tmux integration. It says: To adjust split panes, you have to enable mouse reporting, even if you don't want it otherwise. What does mouse ...
3
votes
1answer
31 views

Why does my application die without nohup?

I have a simple system (running on Debian) that works by invoking a script from /etc/init.d/rc.local At the bottom of rc.local I call myScript.sh who sets up some things, and then starts a binary ...
3
votes
3answers
520 views

How to undo in spreadsheet calculator sc?

spreadsheet calculator sc is a very old console-based program. It does what the name says. I cannot find how to undo an operation in its man page. I currently use it together with RCS, ie. manually ...
98
votes
7answers
12k views

How to kill a runaway cat?

Many times I accidentally run the cat command on files that have contents up to few thousand lines. I try to kill the cat command with Ctrl+ C or Ctrl+Z, but both only take effect after the total ...
0
votes
0answers
19 views

Configure FreeBSD pf firewall (non GUI) for beginner

I am running Mac OS X 10.10, but my research has led me to the understanding that the particular flavor of pf was ported from FreeBSD. I have tried the popular GUI software (IceFloor) but it is a bit ...
0
votes
1answer
42 views

how to write a shell script to run multiple programs

I want to run two programs ssh -f mike@c15-0330-02 'cd /home && nohup Rscript L_1.R> L_1_sh.txt ' AND ssh -f mike@c15-0330-03 'cd /home && nohup Rscript L_2.R> L_2_sh.txt ' I ...
4
votes
4answers
212 views

Make tail not modify the charset of the terminal

In a linux terminal (CentOS) I am using the command tail --follow=name my-rolling-file.log in order to see the logs of my application. Sometimes in the log there is some binary data dumped (I dump ...
8
votes
4answers
7k views

Poor TTY resolution with nVidia driver

The resolution of the TTY1-6 is poor ~ 640×480 Ubuntu 11.10 | Grub2 | nVidia | NVIDIA GT215 Board I went through the process on this site and after the edit the GRUB menu appears in the correct ...
1
vote
2answers
76 views

How are long command lines ( > $COLUMNS ) automatically wrapped to a new line?

There are several points where I/O is passed through, some of which (to my knowledge) are the shell, pty, tty, termios, terminal emulator application. In most terminal emulators, long command lines ...
1
vote
2answers
46 views

how to use ssh command to connect to multiple computers and send different commands to each computers at same time

I need to connect multiple computers to run different programs. For different computers, I need to send them different command. How to use ssh command to connect to multiple computers and send ...
1
vote
1answer
74 views

Using the grep filter

I have a text file with the name "hello.txt" that contains the following two lines: Hello WORLD! Hallo world! When I wrote the following grep -i h[ae]llo hello.txt in the terminal, the output ...
2
votes
2answers
94 views

Passing a bash command line arguments containing #

I am trying to pass pound sign as a command line argument then echoing the argument. When I pass for example 2 # 2 then I echo $1 $2 $3, I assume the terminal will output 2 # 2 but it outputs just 2. ...
0
votes
1answer
16 views

How to redirect output of a 'xterm -hold -e' command

I know you can use tee to log output from a command in a terminal, e.g.: df -h | tee ~/log.txt However, how can I do this with a more complex command like this: xterm -hold -e program arg1 arg2 ...
6
votes
2answers
728 views

Log file visualizer in a Terminal (UNIX) (terminal logging replay)

I need to log in to various servers via ssh, and its a useful thing to log the terminal (even things in smitty menus/AIX and with correct/exact date/time). I already have a solution for this: 0) # ...
1
vote
1answer
228 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 ...
0
votes
1answer
528 views

How to update CodeBlocks in Kali Linux?

I installed CodeBlocks on Kali Linux but I got 10.05 version and I want to update it to 13.12, preferably via terminal. Also I would like to know how to update any application this way.
3
votes
1answer
34 views

Start a single color full screen from the terminal

For testing displays, I need to show a single color fullscreen, and quickly switch from one to the next color. Can this be done from the terminal? Something like this: DISPLAY=:0 color #ff0000
0
votes
2answers
2k views

How to install most recent version of Eclipse via the Terminal

I'm new to Linux and have just been given a VM of Oracle Linux to work with. I need to install Eclipse on it and, after a bit of research, discovered that this could most easily be done with the ...