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

0
votes
0answers
2 views

apt-get commands won't return

I am working on a Raspberry Pi running Raspbian, and I think I'm having a problem with my apt-get. The problem originated with a MySQL server I was running. The server stopped seemingly at random, ...
2
votes
3answers
1k 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 ...
4
votes
1answer
345 views

Why is Vim eating up Ctrl when used with Ctrl+v and how to fix it?

I'm using Vim /etc/zsh/zshrc to add key bindings for zsh because it doesn't work with inputrc. In my terminal with tmux when I type Ctrl+v then Ctrl+LeftArrow the shell will show ^[OD. However, when I'...
2
votes
2answers
43 views

How terminal emulators handle Shift+FKeys?

This question is inspired by another question on vi.SE. There, OP has issues with the Shift+F8 key combination when running vim inside urxvt. That key combination will never work in vim because the ...
31
votes
6answers
21k views

Removing control chars (including console codes / colours) from script output

I can use the "script" command to record an interactive session at the command line. However, this includes all control characters and colour codes. I can remove control characters (like backspace) ...
0
votes
1answer
19 views

Guake works, but does not load/display a terminal [on hold]

Usually, installing and running Guake is sufficient to make it drop down a terminal (for instance /bin/bash). Somehow, I managed to get Guake to start with no terminal -- just a black, empty "window ...
2
votes
0answers
33 views

Console: Can't type special characters (Ubuntu 14.04)

We have linux-based computers (Ubuntu 14.04.4) prepared by other company to use their software. We have root password. Those computers has no X Window System. Just consoles. There is a problem with ...
14
votes
4answers
1k views

Escape sequences in output of script called from ncurses application

I'm currently running mcabber as my Jabber client (which uses ncurses) in a tmux session on my homeserver. Locally i run iTerm2 as a terminal emulator, which supports the triggering of growl ...
2
votes
2answers
149 views

How to convert several tiff images into xyz coordinates in a single text file using the terminal?

I have limited experience with programming and Linux and I need your help. The situation I am in is that I have a stack of black and white .tiff images (approx. 400 of 10 Mb each one) which I need to ...
2
votes
1answer
31 views

How to suppress echo of buggy read function

I'm trying to capture a key press in a shell script (e.g. using read) and not to echo it. The three methods I found were stty -echo, the -s switch and stream redirection. However, on macOS, which ...
3
votes
4answers
43 views

How to change the background color for exactly one line?

Here are my tries: The last one worked, but it breaks copy-pasting (adding a lot of spaces when copied). Is there a better way? Copyable text: $ PS1='\['$'\x1b[0m\]$ ' $ echo -e "\x1b[41;...
2
votes
0answers
35 views

Weird control sequence before password prompt

I have installed debian 8 with xfce4 - freshly - and everything seems to work fine, except: When I try to enter some password into the xfce4-terminal there sometimes is displayed some weird escape ...
1
vote
2answers
34 views

How to fix shell prompt ( ps1 ) after remote login

I am observing the below strange prompt after login to my remote machine from ubuntu 14.04. This only happens while I'm using the ubuntu gui terminal and not via putty. Any suggestion to fix it?
0
votes
0answers
18 views

How to setup the alfa AWUS036NH driver on Kali Linux?

I bought this Alfa awus036nh and i want to use it on Kali Linux. I'm running Kali on a Virtual Machine and fixed the USB issue and now the machine recognizes the adapter. I need to setup the driver ...
2
votes
2answers
317 views

How do I get rid of the small nub in the bottom right corner of my terminal?

I'm setting up XMonad within Linux Mint, and I've been able to remove the menubar and the scrollbar from my terminal windows, but I can't get rid of the small resizing nub in the bottom right corner. ...
3
votes
2answers
1k 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 ...
0
votes
1answer
19 views

PROMPT_DIRTRIM not working

I have the following in my .bash_profile: PROMPT_DIRTRIM=3 export PS1='$ \u in \w: ' However, when I navigate deep within a directory, the path doesn't shorten. This is what the prompt shows: $ ...
0
votes
0answers
15 views

how to get a “parent-child” relationship with tmux panes and windows

Essentially I'm trying to mimic fork when I split a window or create a new one from an existing tmux session. For example lets say you enter a shell in gnome-terminal and then launch a new gnome-...
4
votes
1answer
206 views

How to know the utilization of intel CPU and GPU in Linux?

In ubuntu, to know the time taken by CPU to run a program we would use time in terminal. Whereas in case of intel GPU, we would use intel_gpu_time. But in case of CentOS time command works. But ...
4
votes
2answers
23k views

How to exit file reading mode in linux terminal?

I appologize if its something really stupid i am asking. But this is my first day on linux commands infact I dotn have linux right now I have just installed CYGWIN for my learning. SO my question is ...
1
vote
2answers
63 views

Keyboard shortcuts C-h, C-m in bash [duplicate]

Bash uses GNU Readline. Readline provides a collection of keyboard shortcuts. However, there are some shortcuts that work on bash and that are not documented in Readline reference. Some examples are: ...
1
vote
1answer
22 views

Turn htop into widget

I am a big fan of htop and would like to know if it is possible to turn it into a widget? I currently use Fedora 23 with Gnome 3.18.5. Currently I just open a terminal, resize it so show only the ...
0
votes
0answers
26 views

Trying to find something that can automatically delete certain lines of a text file after a certain amount of days

For example if I have test.txt and when I open it up it has 1 2 on the first line and 3 4 on the second. But after 2 days I want the second line gone but basically automated.
-2
votes
1answer
23 views

How do I ssh my Mac from another server? [duplicate]

I want to ssh my iMac at home from my MacBook when I'm away, but I can't figure out how to ssh when I'm not on the same local network. I have configured my iMac to accept ssh through the "Remote login"...
1
vote
1answer
80 views

Serial device data feedback loop possible?

Is it possible to do some echo on /dev/ttyS8 serial device in one terminal window, and in second to cat /dev/ttyS8 and display data from that file?
1
vote
0answers
16 views

Changing CentOS 7 machines disables terminal access during background task

Based on this other posting, I typed the following command into a CentOS 7 terminal on a devbox that has the gnome GUI, and was able to continue to use the terminal for other commands while the ...
0
votes
0answers
61 views

Run console printing command after tmux starts up

I'm starting tmux from zsh with the window split into two panels. The only issue I'm having is screenfetch starts up and prints to both windows. Ideally I only want it printing on the left window. I ...
4
votes
5answers
1k views

Only output most recent 10 (or n) lines of a lengthy command output

I have a command that outputs thousands of lines. I actually need these lines in order to see the progress of the command. But I do not need to see more than the 10 most recent lines. How can I do ...
0
votes
0answers
53 views

I cannot type the letter 'l' in terminal on mac

I can type the letter L on any other applications except for within the terminal. I was wondering whether it would have something to do with the bash setting in .bashrc. I am running Ubuntu.
0
votes
3answers
104 views

htop displays incorrectly on different vps

When I use "htop" command for linux (+F5), layout on 2 my vps different: Why on my first server I see broken tree?
3
votes
4answers
344 views

How to slow down the scrolling of multipage standard output on terminal?

On a cluster where I am part of the management team, I often have to go through the multipage standard output of various commands such as sudo find / to look for any troubles such as broken links or ...
2
votes
2answers
369 views

“at” (batch) job + dialog = nothing

The goal: to be able to get an "infobox" to open in a terminal after some time; alarm clock style, (on a Debian derived linux box). However: > at now + 3 min dialog --infobox "Time to attend to ...
6
votes
1answer
46 views

Display stdout and stderr in two separate streams

I'm looking for a way to visually separate stdout and stderr, so that they don't interleave and so that they can be easily identified. Ideally, stdout and stderr would have separate areas on the ...
4
votes
2answers
355 views

Posix command that moves cursor to specific position in terminal window

in school we have been assigned a homework in which we are suppose to print an ascii art into a terminal window. A input is data in format [x_coordinate, y_coordinate, char_ascii_value] (there is no ...
0
votes
0answers
41 views

Data gets lost while trying to copy text into a shell [duplicate]

System is Scientific Linux 7.2 with Mate Desktop. I am trying to copy an iptables-script from website https://www.pozzo-balbi.com/help/Iptables-script to a shell, which will create a file. It is the ...
1
vote
2answers
2k views

SSH Connection Refused In CentOS?

For a week, SSH was working perfectly. Today I restarted my server and I got this error in my Mac terminal: ssh: connect to host 162.243.7.7 port 22: Connection refused This is very odd... I am ...
7
votes
3answers
2k views

What is the terminal's graphic API?

How can certain programs set background and font colors, write characters to the same location on screen (e.g. to the third row, fifth column) more than once? Some examples are the progress bar ...
1
vote
2answers
35 views

Regarding equating file attributes in “ls” command

I have a folder in which there are thousands of images. Of those thousand images, I want to bring together all those images whose “Last created” and “Last modified” attributes are exactly same. ( In ...
-4
votes
2answers
72 views

How do I remotely connect to my iMac from another server? [closed]

I want to ssh my iMac at home from my MacBook when I'm away, but I can't figure out how to ssh when I'm not on the same local network. I have configured my iMac to accept ssh through the "Remote login"...
14
votes
2answers
20k views

What is the concept behind “tty” in linux?

Where did the terminology "tty" come from in Linux?
0
votes
1answer
43 views

CentOS 7 Why does the beep package not exist?

I am not able to find the fabled 'beep' package using a yum search. How am I to make a beep on my system from the terminal without the package? echo '\a' does not work either.
1
vote
1answer
43 views

Shell - PTS/0 Suddenly Changed to PTS/1 Why did it happen and how to change it back?

Whenever I enter the who command in the SSH I see the PTS/1 after my username. Two days ago it was still PTS/0. Is this called the TTY? How do I make it PTS/0 again? Also the path now is /dev/pts/1 ...
1
vote
1answer
110 views

How to start a phone call from the terminal in Ubuntu Phone?

The ability to start a phone call from the terminal is mentioned in this transcript of a Q&A-session with the Canonical community team. So - did somebody figure out, how to do it? The terminal ...
1
vote
2answers
63 views

Wait until a process comes back from sleep

script.sh is run by run.sh N times in parallel. For N=1, the script.sh process is set to sleep 30-45 seconds before it actually starts. How can I order ALL script.sh instances for N>1 not to start ...
0
votes
1answer
26 views

What type of terminal to support if implementing a terminal emulator? [closed]

I have heard that VT100 is the de facto standard. Does it mean if I can just support VT100 and then my terminal can work for existing commandline applications without big problems? If not, how to make ...
2
votes
3answers
2k views

Pasting binary data into a Unicode terminal

I need to be able to paste binary data into a terminal. For some reason, every byte outside the ASCII range (0x80-0xff) is pasted as the same three byte sequence 0xef 0xbf 0xbd. For example: $ echo -...
1
vote
2answers
1k views

Linux Mint XFCE, command to launch menu

What is the command that launches the whisker menu in the Linux Mint xfce edition. For another distribution that used xfce it was xfce4-popup-whisker menu but that doesn't seem to work. I would like ...
0
votes
0answers
39 views

tailing file in new terminal window

I have the following two bash scripts (perhaps they can be condensed into one). // pre-tail.sh #!/usr/bin/env bash open -b com.apple.terminal `dirname $0`/tail.sh // tail.sh #!/usr/bin/env bash ...
1
vote
2answers
187 views

White terminal cursor and yellow Vim searches

I have a blinking block cursor in the XTerm. The goal is to always be able to tell my current position. It usually works fine, but it fails when I place my cursor on a background similar to the cursor ...
16
votes
4answers
28k views

Backspace, Tab not working in terminal (using ssh)

When I ssh into another machine with Debian with my account(with sudo permissions), my backspace key generates some awkward symbols on pressing. Also Tab & del keys don't work too. On the other ...