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
0answers
20 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
57 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
106 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
357 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
393 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 ...
4
votes
2answers
388 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
3k 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
44 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
77 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
21k views

What is the concept behind “tty” in linux?

Where did the terminology "tty" come from in Linux?
0
votes
1answer
48 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
51 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
123 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
65 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
29 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
45 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
200 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
29k 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 ...
25
votes
9answers
22k views

How can I set my default shell to start up tmux

I would like my default bash shell to go straight into tmux instead of my always having to type tmux every time.
34
votes
3answers
16k 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 ~/...
6
votes
3answers
3k views

Is there something like a lorem ipsum generator?

Is there something like a 'lorem ipsum generator'? I know it exists in Latex, and even in LibreOffice, but I'm looking for a terminal command. I would like to type something like loremipsum 10 >>...
3
votes
4answers
254 views

Can I change terminal type used to login through SSH?

When I login on some particular server through SSH (which I do not have admin access to), I get the following error: urxvt-unicode: Unknown terminal type (I also don't want to change my terminal type ...
2
votes
2answers
78 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?
0
votes
0answers
19 views

Powerlines fonts get weird after rebooting

My configuration : Fedora 23 KDE Plasma x64 My terminal emulator : Yakuake with Tmux Context : I recently changed my Oh My ZSH! theme for agnosterzak. This theme needs a Powerline font. I tried a ...
2
votes
2answers
35 views

Change Name of Mounted Hard Drive

I just mounted and formatted an extra hard drive to Xubuntu, and the name is way too long for access from the terminal: boy@boy:~$ cd /mnt/d1b2aa11-a3e4-434b-b71c-47a8ac23ac23/ boy@boy:/mnt/d1b2aa11-...
2
votes
1answer
91 views

Ctrl + arrow keys working in tmux

When I SSH in to our server, control + arrow sequences are working fine for me: Ctrl + V then Ctrl + up, down, right, left gives ^[OA, ^[OB, ^[OC, and ^[OD respectively. In tmux, I get ^[[A, ^[[B, ^[[...
1
vote
0answers
28 views

Find recursively files that have a percentage of lines in common

Is possible to do this? I want an output where i have only files that are 50% the same of others or have 20+ lines in commons. I'm trying to isolate commons functions in *.java files. Thank you!
152
votes
8answers
198k 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 ...
4
votes
2answers
40 views

How would I get my terminal to regurgitate the previous output text from past commands? Is this even possible?

I just ran a job that takes several hours, and I forgot to pipe that text into a text file. pseudocode: echo [previous text output] > OutputHistory.txt Additionally, I can't just "copy and ...
2
votes
0answers
49 views

Network traffic monitor “nettop” morphing away from expected results

On Mac, I open a new shell and enter nettop. For a split second I see chrome (as I expected) and some other things going on (had to record screen to catch them); then I'm only shown data on ...
1
vote
0answers
44 views

How do I tell fanout to forcibly allocate a pseudo-terminal? [closed]

I am using William Stearns' fanout (discussed in a Dr Dobbs article by J.D. Baldwin on 2004-04-07). Whilst running it am seeing the message Pseudo-terminal will not be allocated because stdin is not ...
5
votes
3answers
292 views

How and where is $TERM interpreted?

I'm wondering how some terminal magic works internally. While playing around with docker containers, the environment variable $TERM was not set. This led to strange-looking console applications like ...
0
votes
2answers
126 views

How do I print 'block' letters in the terminal?

How do I echo/print block lettering in the terminal like: ? figlet and toilet don't help. Neither do U+25A0 or U+2588 unicode characters. This is not a duplicate. As I said, figlet, banner and ...
3
votes
3answers
63 views

Convert output of script(1) to pdf

You supposedly can make some sort of low-tech replacement to screencasts of your terminal sessions with script(1): DESCRIPTION script makes a typescript of everything displayed on your terminal. It ...
1
vote
3answers
64 views

Different outputs to different terminals in Ubuntu

I am developing a C++ application, under Ubuntu, and need to broadcast the outputs into several terminals. I need to do this programmatically, calling (for instance) bash commands from the C++ ...
1
vote
1answer
39 views

How to generate a set of new different files through shell scripting given a certain pattern name?

How to generate a set of new different files through shell scripting given a certain pattern name? Said I have this pseudocode: #!/bin/bash for i in {1..5} do ./processing < base.ppm > ...
1
vote
3answers
40 views

Extending Linux terminal Program [closed]

Any quick ideas on how to write a program that extends the terminal's basic functionality? I want to do everything the terminal does but additionally do some custom processing on whatever the user ...
1
vote
1answer
26 views

How to connect via LAN Wire and a WIFI Router to the internet (terminal only)

I have a big problem. My cinnamon GUI went down. Now I have to reinstall it. Therefore I need an internet connection. Since I can only work within terminal I have to use that to connect to my Wifi. ...
0
votes
0answers
24 views

How do I free up the terminal when I am using emacs? [duplicate]

I know I can open another terminal, but that is bothersome.
3
votes
1answer
56 views

Scroll to the last command on Terminal? (like OS X Terminal marks)

Mac OS X Terminal marks are incredibly useful. For example, when I type a command that echoes a lot output, it's easy to read the beginning with Cmd+Up. It will scroll to the last command and ...
0
votes
1answer
28 views

dhclient connecting to wlan0 after wpa-supplicant setup polls infinitely

I just wanted to try out how to connect to my WIFI WPA2 via terminal. Therefore I created "/etc/wpa_supplicant" network = { ssid = "nameOfWifi" psk = "passwordNumberThatIFoundOnTheWifiHardware" ...
15
votes
2answers
16k views

How to automatically record all your terminal sessions with script utility

What I want to achieve is be able to record my terminal sessions to file automatically whenever I use Yakuake/Konsole. It's easy to achieve if at the start of my session I do: script -f /home/$USER/...
4
votes
2answers
235 views

How to clean stdout/stderr color output

I have a program that would output something like this: ^[0;33m"2015-02-09 11:42:36 +0700 114.125.x.x access"^[0m Is there built in linux program that could clean that output up into something like ...
0
votes
1answer
45 views

How to hide the tab bar in roxterm?

In roxterm when I go to edit profile under tab I activate hide tabs but they are still appearing when I create a new tab or window. Any idea on how to hide tabs under roxterm ?
0
votes
0answers
26 views

How is a key sequence processed in a terminal? [duplicate]

My question comes from re-reading Gilles' excellent reply, and my recent comment on it. In a terminal (physical one, or virtual one such as Gnome terminal), when a key sequence is typed, is the ...