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
1answer
37 views

How is sudo interrupted in xterm on Ctrl-C? [duplicate]

Please explain in detail (including tty related stuff) how is a sudo foreground process on a X terminal emulator actually killed on the Ctrl-C. See the following example please: $ sudo -u test_no_pw ...
3
votes
0answers
167 views

Can't exit i3 because no sensible terminal emulator is installed

I am trying to setup Arch Linux, and after getting the most basic stuff setup I installed and ran i3 with: pacman -S i3 dmenu xorg xorg-xinit startx It finally started, but I can't exit it. After ...
9
votes
4answers
4k views

“Friendly” terminal color names in shell scripts?

I'm aware of libraries in languages such as Ruby and Javascript to make colorizing your terminal scripts easier by using color names like "red". But is there something like this for shell scripts in ...
3
votes
3answers
100 views

common environment variable to set dark or light terminal background

I have written a number of debuggers that all can colorize source code text shown in a terminal session. They all understand that some terminals have a dark background and some have a light background ...
1
vote
1answer
70 views

CentOS 7 Encrypt a PDF

I've recently upgraded our server from CentOS 6 to CentOS 7 and I am having issues getting pdf encryption working on it. On CentOS 6 I installed libgcj and then the pdftk package. I could then ...
7
votes
1answer
205 views

bash: no job control in this shell

I have a minimal Linux system. init is /bin/bash, only bare minimum of libraries in /lib/, /dev/ is populated statically, no daemons running (no udev, ..) When bash starts, I get following error: ...
2
votes
5answers
12k views

Arch Linux terminal not starting

I just installed Arch Linux following a video tutorial from youtube for the first time. However, when I try starting the GNOME terminal it won't start. It will say Terminal at the top of my screen for ...
4
votes
0answers
134 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 ...
8
votes
3answers
7k views

Effect of $LANG on terminal

I'm trying to learn how the $LANG variable behaves with gnome-terminal (and its character encoding preference option). I've been using iso8859-1 (latin1) as my main character-set and all my filenames ...
0
votes
0answers
26 views

Set a ZSH shell variable using mintty?

I have configuration files that I use to make my PS1 fancy. The design depends on the presence of a particular font. If the font isn't present, the PS1 looks ugly. I share access to a webmaster ssh ...
1
vote
1answer
33 views

running commands from files [closed]

Let's say that I write some commands in a file let's say cmake although it doesn't need to be cmake run writing some commands in a text file. example filename: cmake_command cmake ...
4
votes
2answers
58 views

Take high quality screenshots of my terminal window

I'm writing a book and sometimes I must show some screenshots taken from my terminal window. Problem is they are not good for print, so I need to increase their quality (resolution). Is there any way ...
1
vote
1answer
121 views

Using Incrond Inotify but having issues with user groups/permissions

In the /etc/incron.allow I added both: root USER_1 Then I edited the incrontab so it looks like this: /var/www/laravel/public/js/main.js IN_MODIFY yui-compressor -o ...
646
votes
5answers
147k 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?
29
votes
6answers
12k views

How to check if bash can print colors

I want to know if there's any way to check if my program can output terminal output using colors or not. Running commands like less and looking at the output from a program that outputs using ...
1
vote
1answer
29 views

How to write a luit command that outputs a file

I need help formatting a luit command so I can write a file that I'm trying to fix the encoding for. What I have write now is luit -encoding gbk cat santi.txt, but I would like this to have the output ...
2
votes
2answers
242 views

Detect how much of Unicode my terminal supports, even through screen

Here's the problem: I want to be able to discern if my terminal is capable of decent unicode or not, in order to use some characters or not, much like glances does, that sometimes uses colors and ...
1
vote
1answer
42 views

Remnants of previously closed file displayed in terminal

On several Unix servers, I have seen below behavior: I list all the files using ls -lrt: 3 files are being shown up I open one of the files using vi editor I close the open file Now in some Unix ...
16
votes
6answers
18k views

How can I hook on to one terminal's output from another terminal?

I need to hook onto output of currently running terminal (tty1) from virtual terminal and capture it (running X server). I'm pretty sure such a thing is possible by simpler means than debugging ...
2
votes
1answer
815 views

calling javac from CentOS 7

I want to be able to use the javac command on the CentOS 7 terminal. How do I set the PATH variable in order to accomplish this? The following explains relevant aspects of my current environment. ...
2
votes
1answer
30 views

Readline: Binding an ANSI escape sequence to a key

I would like to bind a key with bash / readline, to clear the bottom of my console screen. The ANSI sequence to clear the bottom of the screen is \e[J, so I tried to add the following line to my ...
1
vote
1answer
32 views

A command that takes a single numeric argument and prints out the day of the week based on the formula

days=('Sunday''Monday') days=('Tuesday''Wednesday') days=('Thursday''Friday') days=('Saturday') for numbers in "S@"; do if [ $numbers -ge 0 ]; then result=$(($numbers ...
2
votes
1answer
621 views

How to make vi work in single-user-mode?

When booting FreeBSD (I use 8.4-amd64) in single-user mode, mounting root filesystem in read/write mode and trying to vi some text file, I get all of this file's contents in one line. This makes vi ...
1
vote
1answer
48 views

generate new terminal (any) window from a script

I would like to run a script that detects the current terminal and generates a new terminal window, in the background, with a shell command (e.g. htop) I get the desired outcome at the command line: ...
0
votes
0answers
12 views

How work tunnel to gnome connection manager

Someone using gnome connection manager? (http://kuthulu.com/gcm/?module=home&lang=). I need setup the tunnel for connection but i don't understand how to configure, help please!
0
votes
1answer
16 views

Help with the PS and TTY?

I have this question for you guys: I execute on a different shell 'sleep 600'. I open a different terminal and I executed 'ps' to see my current process , however , I dint see any sleep process. I ...
123
votes
8answers
160k 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 ...
5
votes
1answer
1k views

When I use zip, how can I display the overall progress without flooding the command line?

A fixed-length progress bar, a file or byte count, or better yet a timer showing the estimated time remaining would be ideal. zip's standard behavior seems to be to print a line for every file ...
19
votes
3answers
681 views

How to prevent random console output from breaking the terminal?

There are many questions on SE that show how to recover from terminal broken by cat /dev/urandom. For those that are unfamiliar with this issue - here what it is about: You execute cat /dev/urandom ...
-1
votes
2answers
43 views

Script with nested for loops [closed]

This is the code and I need to display in the terminal like this way: (1,1) (1,2) (1,3) (1,4) (1,5) (2,1) (2,2) (2,3) (2,4) (2,5) (3,1) (3,2) (3,3) (3,4) (3,5) (4,1) (4,2) (4,3) (4,4) (4,5) but ...
6
votes
3answers
291 views

Silent GnuPG password request with bash commands

I'm trying to hide the "output" of a gnupg command, but it seems that it is always printed. the command is: echo "thisprogramwørks" | gpg -q --status-fd 1 --no-use-agent --sign --local-user D30BDF86 ...
13
votes
2answers
839 views

What terminal emulators support tmux control mode?

tmux has its control mode, activated with -CC, to allow the terminal emulator to control tmux. iTerm2 uses this to great effect for allowing tmux windows to appear as separate iTerm windows. Are ...
0
votes
0answers
29 views

Open remote BMC console and interact

I have a server running CentOS I will address as the master. I have been reading several solutions for different scenarios. However, I'm still having trouble grasping the idea of what is required to ...
0
votes
1answer
36 views

Bash file is unable to execute on linux terminal: Socket Programming

I have written some codes for socket programming namely socket and plug. To execute them together I am trying to use the below bash file but I get the following errors. I did execute the command ...
21
votes
5answers
1k 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 ...
4
votes
3answers
332 views

Open file with started vim from outside (in terminal)

I have a started vim. I suspended it (Ctrl+Z). So I was in terminal session and I would like to open some file with the same vim session (new tab). I can open the file in new vim session. Actually, ...
3
votes
1answer
385 views

How to see what accounts connected with ssh are running

Using the question here I can see the users connected with ssh. Is there a way to see (from terminal) what program the users connected with ssh are running? EDIT The ssh users are running commands as ...
0
votes
1answer
82 views

What really is bash? (or any linux shell) [duplicate]

I understand bash as a window where I can type commands to linux. Reading the wikipedia, I've learned that there were various shell applications throughout the history. First, I understood bash as ...
1
vote
1answer
16 views

access to ttyusb0 as normal user

I am trying to access a serial device, which is attached as: "/dev/ttyUSB0". crw-rw---- 1 root dialout 188, 0 Nov 29 15:45 ttyUSB0 For that I created a new udev rule: SUBSYSTEM=="tty", ...
4
votes
2answers
52 views

What is the right way to consistently mangle bash terminal?

I'm on OSX 10.11.1 and occasionally my bash terminal gets mangled. It often happens when I accidentally cat a binary file. The result can be seen on the image below. The output becomes weird, and I ...
0
votes
0answers
68 views

Linux Mint partition doesn't appear in Disk Util (El Capitan).

i have two problems here! I'm pretty new to dual booting on OS X, I'm trying to dual boot with Linux Mint. I've gone through all the recommended route of dual booting. I started with mounting the ...
1
vote
0answers
34 views

Terminology terminal fonts [closed]

I have a problem with terminology fonts, my font is "Bitstream Vera Sans Mono (Roman)" I tried switch fonts but it is not solved the problem, picture attached: Thanks, Michael. EDIT: The problem ...
1
vote
0answers
47 views

Change output (sink) using the terminal

I've made the change from Gnome to i3, and I want to be able to switch my audio output (from headphones to HDMI and vice versa) using the terminal. $ pactl list cards | grep profile Part ...
0
votes
0answers
29 views

Terminal doesn't print colors

My Antergos terminal doesn’t show me any colors when executing scripts. I have a fresh instalation, with no tweaks. I have zsh and oh-my-zsh, but the configurations are the default ones. You can see ...
0
votes
1answer
71 views

How to remove the return code from the terminal prompt in Sugar on a Stick?

I am using Sugar on a Stick (Fedora 23) 0.106 for i686 as a distro. Here's the link to the website of this distro: https://sugarlabs.org When I use the terminal I get a very weird behaviour. For ...
-2
votes
1answer
37 views

ClamAV installation problem?

My USB has windows viruses in it. Before attaching it to device(windows installed), I want to delete these viruses but i have kali installed device also from which I want this action to be done. I got ...
7
votes
3answers
3k views

key bindings table?

Do we have a key bindings table that translates all the various ways of referring to a key press? I'm using zsh, but I presume that if there was such a table it would work for any shell. The reason I ...
1
vote
1answer
26 views

Configuring Getty for hardware terminal

I am looking to configure a serial line for the following: 9600 Baud Word Length: 8BIT Parity: Mark XON/XOFF On I can't seem to locate the details on the "Parity Mark" part so far on my searches ...
0
votes
1answer
5k views

CentOS 7 add new user with root privileges

I am reading this tutorial, and trying to create a new user with root privileges and then block root access via ssh in a CentOS 7 server. The problem is that the new user is blocked from doing root ...
2
votes
2answers
53 views

Detecting shift + keyup/down in the terminal

How do I do this? I want a terminal menu where shift+up or shift+down selects multiple lines. ncurses seems to have problems. I don't necessarily need an advanced terminal library. I just want to ...