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

How do I stop title-escape-sequences from clobbering my GNU screen titles?

I don't have control over the shell prompt or preexec, and I want to keep the titles I assign to screens. Can I get screen to ignore title-escape-sequences?
1
vote
1answer
27 views

Readline bindings not working with Control and Shift modifiers

I'm tweaking with GNU Readline's key bindings in Bash. Specifically, I wish to achieve the following mapping effect: Control' ==> 'I' ControlShift' ==> "I" Control` ==> `I` Control[ ==>...
0
votes
0answers
13 views

Sub process keyboard input layer

I have a bash script where I set up a stream playlist by user interaction. The user then press p to play the selection. This simply do something like: media-player --playlist media-player defaults ...
3
votes
2answers
153 views

`cut`: selecting columns containing a string

I have a big file with several columns on each line. I'm familiar with using cut -f -d to select specific columns by their number. I checked the manual for cut and it doesn't seem that there's a way ...
0
votes
1answer
23 views

how to change colors of my ps1 root terminal permanently [duplicate]

I want to change the colors of root@MyComputer:~#and when i type the ls command show me the result as colors! I write a simple BB code to display what i want: [color=red]root@MyComputer:[/color][...
4
votes
2answers
1k views

The different ways of passing the arguments to console applications

Why do console applications get the arguments started with either: a) one dash (myapp -arg1 123; ls -al) b) two dashes (myapp --arg1 123; git push origin master --force) c) without dashes at all (...
35
votes
2answers
41k views

How to signal the end of stdin input

In Bash, I learned that the ending signal can be changed by here document. But by default how can I signal the end of stdin input? I happened to find that with cat and chardet, their stdin inputs can ...
0
votes
2answers
62 views

How do I record all terminal input and output to a local file by default for each session?

I'm aware the script command can be used to record all keyboard input and screen output to a file, but this has to be invoked each time a terminal session is started. I keep timestamped versions of my ...
2
votes
2answers
60 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 ...
1
vote
3answers
22 views

using multiple terminal x-windows with one tmux session

I usually work with 2 monitors that are not quite vertically aligned (I have a benchtop power supply under my left monitor), but I want to have 4 terminal windows side-by side on my screens which I ...
0
votes
0answers
72 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 ...
0
votes
1answer
109 views

What is the difference between Uni1, Uni2, and Uni3 terminal font codesets?

I'd like to change my terminal font to any of: /usr/share/consolefonts/Uni1-Fixed15.psf.gz /usr/share/consolefonts/Uni2-Fixed15.psf.gz /usr/share/consolefonts/Uni3-Fixed15.psf.gz What is the ...
2
votes
0answers
29 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
346 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'...
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
21 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 ...
3
votes
0answers
46 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
150 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
32 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
46 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
36 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
38 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
28 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
318 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
16 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
214 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
65 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
25 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
27 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
81 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 ...
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
105 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
345 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
375 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
358 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
36 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
73 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?