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

How to know if output is being redirected to a file? [duplicate]

I am working on displaying output like ls command (just ls, no options). And I have a working program using the system calls. But I experienced a strange behavior while testing as shown below. $ ls ...
6
votes
3answers
260 views

Are unix[-like] programs capable of determing where their output is going? [duplicate]

Up until recently I was under the impression that Unix-y programs were unaware of where their output went, be it to standard out, redirected to a file, or into a pipe. However, an unrelated U&L ...
-3
votes
2answers
36 views

how can I delete the remnants of windows from a new CentOS 7 server?

I recently installed CentOS 7 on a new computer that came shipped with Windows 8.1. The BIOS no longer shows windows as a boot option. But my initial analysis of the file system is hard to ...
2
votes
0answers
14 views

Jump to last prompt in terminal (or tmux)

In a terminal, are there any shortcuts to jump to a previous/next prompt? Scrolling up and trying to find the start of a log slows down my workflow. I'm using iTerm on OSX, but this should be ...
5
votes
1answer
133 views

How to have type-ahead apply to bash history search (Ctrl-R)?

Context Typeahead in bash: good When a bash shell is busy (initializing, running a command), one can type before the next prompt appears. If the shell has launched a program, that program will ...
3
votes
1answer
36 views

Why do the terminal attributes look different from outside the terminal?

If I open up a terminal (xfce4-terminal 0.6.3, but I doubt it matters) and I look at what terminal attributes are set (BASH is running in the terminal), $ stty -a speed 38400 baud; rows 24; columns ...
3
votes
1answer
36 views

How to log out as root user in command prompt after creating non-root user

obviously I am extremely new to Linux, but I'm glad to finally be here...trying to kick windows is tough in some cases ;-) Anyway, I'm trying to follow the following tutorial @ ...
1
vote
0answers
16 views

How can I stop qterminal from cutting the top half off every line?

I'm running Arch Linux, and using LXQT. I've just installed qterminal. At the moment, it looks like this: The top half of every line is cut off. I can fix this by increasing the font size, but ...
14
votes
2answers
494 views

What does CTRL+4 (and CTRL+\) do in bash?

I just found out by accident that CTRL + 4 closes programs reading stdin input from the command-line. This is how it looks when I type CTRL + 4 or CTRL + / into programs reading stdin ryvnf:~$ ...
2
votes
1answer
46 views

Where to find the downloaded file after dragging a FTP URL to the terminal?

Usually, when I drag a link to the terminal, the link target is pasted in the terminal. However, when I just dragged a FTP link from Chromium to my Terminal (first result on Google for "ftp pdf", ...
3
votes
2answers
266 views

Interrupting very long output in tmux

In a (gnome) terminal, if I cat a file which turns out to be much too long, I can always press Ctrl-c to interrupt. However, in tmux, when the same happens, it takes long for the signal produced by ...
1
vote
2answers
32 views

Kerning problem when using a variable width font in Debian terminal

In my Debian Linux terminal some fonts looks like this. But any text editor (i.e leafpad) shows this font correctly. What is the problem?
23
votes
9answers
102k views

How to connect to a serial port as simple as using SSH?

Is there a way to connect to a serial terminal just as you would do with SSH? There must be a simpler way than tools such as Minicom, like this $ serial /dev/ttyS0 I know I can cat the output ...
0
votes
1answer
24 views

Serial devices?

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?
0
votes
0answers
7 views

Debian Jessie - Terminal not resizing for non-admin user

I've deployed a Debian 8 instance on ec2 using the "official" AMI listed for my region on the debian site. I logged into the default admin account and created another user before logging in as them. ...
0
votes
0answers
10 views

send bootup script output to virtual terminal

I have a script that I symlink in as /etc/rc.d/rc3.d/S30initialize which basically makes it get called when entering runlevel 3. I want for the output of this script to appear on the virtual ...
4
votes
5answers
765 views

Multiple terminals at once without an X server

There is a way to visualize multiple terminals at the same time without running a Xorg session ? I have a really low profile machine that could be great for some basic stuff but has an horrible ...
1
vote
1answer
46 views

How to make boot output verbose?

I use to enjoy watching my red hat then debian then ubuntu machine boot, the boot process was not hidden from my view, now it is, in most of all distros, now, I know I can somehow connect a terminal ...
1
vote
1answer
29 views

How to suppress exit code of finished background jobs

Is there a way to hide the exit code of the background jobs that have finished? For example, if I run: sleep 5& After the 5s, if I hit return the terminal gives me: [1]+ Done ...
7
votes
3answers
4k views

use mosh without giving up local scrollback / history?

Is there a way to use mosh without giving up the local scrollback? Basically, in some circumstances, IP-roaming is indeed useful and needed, but the extra terminal emulation and key prediction seems ...
0
votes
2answers
40 views

error when adding user to wheel group in CentOS 7

I am trying to grant sudo privileges to a user of a CentOS 7 devbox by typing gpasswd -a user wheel, but the attempt is failing. What am I doing wrong? Here is what I typed: I discovered that ...
17
votes
3answers
343 views

What is the name of this terminal window graphical trick, which shows accented edges around highlighted text?

I've noticed a few screenshots of terminal windows online which show thin highlighted edges around status bars or highlighted lines. In the following example, note the light grey edging around lines ...
0
votes
0answers
29 views

Can't open steam application after installing SteamOS 2.0 (Brewmaster)

I was trying to install SteamOS Brewmaster update July 2015. Comes an error that I can't open the terminal, but I can fix it with reconfigure language from Ctrl+Alt+F2 or other. But the other problem ...
4
votes
2answers
80 views

Where is the `$TERM` environmental variable set in Debian Jessie for console logins?

I have read a lot of articles and SE questions regarding how and where the default $TERM environmental variable gets set. Unfortunately in Debian 8.1 I can't seem to find where the default $TERM ...
0
votes
1answer
34 views

Running script through bashrc causes nesting of tmux panes

I use the following tmux code in a script file tmux-dev.sh and add it to bash using bash /home/rohit/tmux-dev.sh : tmux new-session -d tmux split-window -h tmux split-window -v tmux -2 attach-session ...
0
votes
2answers
56 views

open(1) in rifle.conf for ranger on OS X

ranger ~/.config/ranger/rifle.conf For simplicity What one line – in the rifle configuration file – could cause open(1) to be used for all types of file? Background ...
63
votes
5answers
72k views

How to display `top` results sorted by memory usage in real time?

How can I display the top results in my terminal in real time so that the list is sorted by memory usage?
1
vote
2answers
37 views

Execute command inside another command

I'm trying to record my tmux session. I've got an alias record-session which executes command from ttygif ttyrec ~/ttygif/files/last-session. As far as I understand ttygif starts new terminal instance ...
0
votes
2answers
23 views

How to install PyX correctly for Scappy use? [closed]

When I try to run Scappy interactive shell I am faced with this: INFO: Can't import PyX. Won't be able to use psdump() or pdfdump() (The shell is working but of course I can not use the above ^ :( ...
9
votes
2answers
2k views

screen + vim — Any way to automatically set screen window name to open vim filename?

I have a pretty nice screen rc file that shows me the open screen windows almost like tabs at the bottom of the terminal. Currently the windows are named according to my prompt which is not so useful. ...
2
votes
1answer
37 views

No colour in MOTD

I recently bought a Raspberry Pi, and have started playing around with it. After changing my MOTD, (to include colours), the colour codes are coming up as raw-text instead of executing. I am ...
0
votes
1answer
20 views

How to display unicode characters in ncmpcpp

I am using Arch Linux and have UTF-8 encoding enabled. But how can I display a unicode character in ncmpcpp via the config file of ncmpcpp? I already added the line filesystem_charset "UTF-8" to ...
4
votes
10answers
419 views

How to quickly add some space in the terminal?

I often find myself scrolling back through the terminal with the mouse-wheel to see the first of many C++ template errors issued by a command. Anticipating this, I'll hold down the Return key to give ...
2
votes
2answers
160 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 ...
1
vote
4answers
94 views

Set, backup and restore colors in the terminal

I use this program to display all color available in the terminal. That waht I get: This program doesn't show me colors below 100. Why? Is there a way to display them. Is the are way to change ...
2
votes
1answer
66 views

What is the kernel frame buffer?

I was reading the "mplayer" man pages trying to play video using just the console, (I don't have or don't want to install X11). It mentions that I can use the kernel frame buffer device which is ...
10
votes
1answer
9k 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 ...
1
vote
2answers
68 views

Automatic login to multiple SSH root terminals

I am not sure if this is a security issue, or can be actually done. I would like to be able to boot up my PC, maybe run a program that will open about 5 shells, each SSH'ing to my local machine but ...
0
votes
2answers
42 views

what is the file descriptor of my terminal

I need to use tcsetgrp function to make my background process to foreground process, but The parameter of tcsetgrp is a file descriptor associated with my terminal. What is the file descriptor of my ...
8
votes
1answer
498 views

Caret square bracket square bracket A ^[[A - What does it mean?

Apologies if this has already been asked, but I have no idea how I can find this out myself - when I search for "^[[A" in any search engine it ignores the "^[[" part altogether. Anyway, my question: ...
1
vote
0answers
23 views

Byobu - New window with same ssh session?

Is there a way to configure Byobu to use same ssh session in a new window. For e.g. Open Byobu window ssh into a remote host Press 'F2' to open a new window. This opens the terminal with ...
0
votes
2answers
237 views

Why does OpenSSL automatically send me Terminal mail?

I for some reason am getting messages from OpenSSL constantly (not literally constantly, but every hour or so) sent to my Terminal mail box saying: Message 1: Subject: Cron ...
1
vote
2answers
25 views

Bash not sourcing ~/.bash_profile on os x

I just got this really wierd poblem. When I start bash, I get these two lines: -bash: fasd: kommandot finns inte -bash: brew: kommandot finns inte "kommandot finns inte" means command does not ...
3
votes
1answer
41 views

What is the effect of the underscore in [A-Z] [_a-zA-Z0-9]*?

In regards to regular-expressions what is the effect of the underscore in [A-Z][_a-zA-Z0-9]*
0
votes
0answers
24 views

Terminal wont launch at all!

I used Synaptic in Debian and installed some packages (around 466). After that I executed apt-get update. During the update it kept telling me that some files looked like they had been edited ...
3
votes
1answer
562 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 ...
0
votes
1answer
4 views

How to disable vcstime

There's a program /usr/sbin/vcstime which prints the date/time in the top/right corner of your terminals. You can enable it in /etc/kbd/config (on the last line). It's disabled by default. I'm having ...
1
vote
1answer
344 views

Error while importing Compiz profile from Terminal

File name : import.py #!/usr/bin/python import sys import compizconfig #The last input on the command line will be the path to save the file to. savefile=sys.argv[-1] ...
21
votes
3answers
68k views

What is the best text-mode browser? [closed]

I am looking for one that is updated frequently and has support for many things. Please also state how to install it.
23
votes
5answers
22k views

How to scroll in a terminal using keyboard?

How can I scroll in bash using only the keyboard? If it's not possible in bash, are there any other shells that support this?