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
2answers
56 views

What can cause my shell to look like this? [duplicate]

I'm currently developing a home automation framework for my apartment. This involves getting JSON over Serial from an Arduino. When the JSON can't be parsed (usually only on startup) I log it as an ...
12
votes
1answer
3k views

What exactly is scrollback and scrollback buffer?

What are "scrollback" and "scrollback buffer" in programs like bash and screen, and how do they relate to the tty, the programs being run, and stdin/ stdout/ stderr? Here is the only definition of "...
1
vote
1answer
16 views

Modifying Audio System Settings via console in OpenSUSE 13.1

My PC has an internal speaker and every time when I reboot linux, the output of the (integrated) sound card changes to this internal speaker. But I want to use my external speakers (via the green jack ...
0
votes
0answers
24 views

It seems like my inputrc file is being ignored by the terminal. When I hit ctrl+arrow it returns ;5C

This is my /etc/inputrc file. And I also have a ~/.inputrc file with the same content: set meta-flag on set input-meta on set convert-meta off set output-meta on $if mode=emacs "\e[1~": beginning-...
2
votes
3answers
5k views

Endless data loop from dev/ttyUSB while sending AT commands

I have problem sending AT commands to my USB modem. At first I tried php-serial class, but when i was reading data, I got endless loop with strange data. Then I tried to debug problem and opened putty ...
1
vote
1answer
45 views

How to read from another terminal?

I opened two terminals (/dev/pts/1 and /dev/pts/2) and started my application from /dev/pts/1. I want to read in real time from /dev/pts/2 but my code doesn't work: actually some of the symbols are ...
0
votes
3answers
30 views

How can I quickly check exactly how many columns my terminal has? [duplicate]

After window resizing, font size changes, etc., how can I easily and quickly check what is the current display width of my terminal?
1
vote
3answers
62 views

Go to first line of console output of a command

Let's say I am calling ls -la, which produces a very long output. Is there any key/command which lets my console scroll up to the first line of the output?
144
votes
11answers
129k views

How can I close a terminal without killing the command running in it?

Sometimes I want to start a process and forget about it. If I start it from the command line, like this: redshift I can't close the terminal, or it will kill the process. Can I run a command in ...
2
votes
1answer
29 views

Which files are displayed or executed after login?

I'm using an embedded Linux distribution (Lime2) on a custom ARM board. On login via SSH, the following is displayed: root@mybox ~ # ssh localhost root@localhost's password: _ _ ...
0
votes
2answers
39 views

.sh query - running a ssh task

This is on a macintosh but it's still unix command. I am running some computers on a network that have file sharing turned off because of security so the only way to connect is via ssh. I need to ...
0
votes
0answers
16 views

Detect bluetooth button press in terminal

I have a bluetooth earpiece samsung HM1100 and im trying to detect its button press in terminal. I have tried this, but hcitool scan is not detecting my earpiece. But it detects other laptops. Is ...
15
votes
3answers
1k 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 ...
7
votes
3answers
665 views

Real time cmd tool to show HDD space remaining

Is there a command line tool which shows in real time how much space remains on my external hard drive?
0
votes
0answers
32 views

Qubes/Xen OS: access file manager for dom0

I hope somebody more experienced with Qubes specific terminal commands can help. If the KDE manager is installed, how does one open via terminal input the file manager for 'dom0'? To browse 'Home' ...
2
votes
3answers
5k views

Unable to configure the Network Settings in centos 7

unable to run "system-config-network-tui" command in centos 7. Returns the error "bash: system-config-Network-tui: command not found". I've already installed the package using "yum install ...
0
votes
2answers
45 views

How to see and use the last paths used in Terminal? [duplicate]

I'm quite a newbe. I was wandering: is it possible to see the last paths used in terminal (bash, whatever.., I use a Mac), something like what you do with recent commands? I often use the terminal on ...
0
votes
0answers
27 views

Traceback (most recent call last) error appears on terminal [duplicate]

Recently i encountered a weird problem in Linux mint 14.When i enter any command (e.g $ ls) in terminal it throws error saying Traceback (most recent call last). Detail Description of the error is ...
3
votes
6answers
17k 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 ...
5
votes
2answers
633 views

Can emacs use gpg-agent in a terminal at all?

I understand that there are problems with getting pinentry-curses to work with emacs (see some of the comments on http://emacswiki.org/emacs/EasyPG), and so using emacs in a terminal isn't compatible ...
0
votes
0answers
76 views

What could be the reason for a delayed display of the prompt ?

When I click on the Xfce-Terminal Logo, the terminal window opens, but for about 30 seconds there is no prompt and no reaction to a command. On the picture below, the lower window already attained ...
0
votes
1answer
354 views

Compile OpenBroadcaster on Debian

Trying to compile obs on debian like here described: https://github.com/jp9000/obs-studio/blob/master/INSTALL gives me this error: Linking C shared library libobs.so /usr/bin/ld: /usr/local/lib/../...
2
votes
1answer
127 views

Package installation : dpkg parse error

I need help with installation through the terminal. Any time I try to install any new packages using sudo apt-get install *package*, I get the following error: dpkg: parse error, in file '/var/lib/...
3
votes
2answers
315 views

Send javascript to Chromium or Firefox from linux terminal

I am using either a chromium or firefox web browser in kiosk mode to log in to a website from boot up, and I want to use a javascript to send in a command to login to a website automatically. I know ...
28
votes
2answers
15k views

Output from ls has newlines but displays on a single line. Why?

I think I may be overlooking a relatively fundamental point regarding shell. Output from the ls command by default separates output with newlines, but the shell displays the output on a single line. ...
0
votes
0answers
21 views

SunOS 5.10 gives invalid terminal

While I login to SunOS 5.10 through putty it shows as terminal vt100: Then what ever command I type it says invalid terminal with the command. For example if i type ls the display will be. ...
2
votes
0answers
33 views

xfce4-terminal: keyboard shortcut to set terminal title

How can one set a keyboard shortcut for an instance of xfce4-terminal? It appears that the Terminal->Set Title menu does not have a shortcut tooltip, and I would really like to keep my open terminals ...
1
vote
1answer
71 views

Save cursor position and restore it in terminal

I am playing with some terminal capabilities to create async prompt output on bash. I want to get something like this: while outputting string in PROMPT_COMMAND, save terminal cursor position, print ...
7
votes
6answers
963 views

Terminal and Vim

I open a terminal then I open Vim. Then I work on my source code, but unfortunately I click on the close button of the terminal title bar and my work is lost. Is it possible to configure Vim such that ...
1
vote
2answers
146 views

Disable scroll inside Xfce terminal / Avoid scrolling through command history

Is there a way to disable scrolling through command history for the Xfce terminal? I don't wish to rely on palm rejection, I'd just like it disabled when I'm using the terminal. Specifically I'm ...
2
votes
1answer
37 views

.desktop file for ncurses application

I am trying to create a .desktop file for the calcurse ncurses calendar application: [Desktop Entry] Version=1.0 Type=Application Name=calcurse Comment=an ncurses calendar TryExec=calcurse Exec=...
1
vote
1answer
33 views

Scrolling output with ccze

I love the default fancy output of ccze, but I can't seem to get it scroll property. Executing tail -f something.log | ccze from an X terminal works, but I can't scroll back once the screen has ...
1
vote
1answer
627 views

Passing escape sequences to shells within ansi-term in Emacs

In a regular terminal (e.g. iTerm2 on OS X) I can connect to a database, e.g. > psql .... and then, as I type my command in psql, e.g. $ select foo from bar I can move around (as I type psql ...
77
votes
4answers
15k views

What is the point of Ctrl-S?

Ctrl+S stops all output to the terminal which can be restarted with Ctrl+Q. But, why does Ctrl+S exist in the first place? What problem was trying to be solved by putting that control sequence in ...
0
votes
0answers
18 views

Trying to download new Yakuake skins on my Arch/Gnome installation, but cannot

Currently I am using Arch Linux with a Gnome Desktop Environment. Now I have chosen to use Yakuake as my terminal. I'd like to use other skins that other people have put up online for my terminal. ...
0
votes
2answers
63 views

How to suppress debug2 messages during SSH session?

When I am logged into my home Linux machines via SSH, I get the following debug output a few times every minute: debug2: channel 0: request window-change confirm 0 When I am editing files in nano, ...
1
vote
2answers
175 views

'hhighlighter' wrapper script saying command not found

I have gotten the wrapper script 'hhighlighter' from https://github.com/paoloantinori/hhighlighter which colors anything you want in stdout. I followed the instructions about installing ack-grep, ...
1
vote
3answers
60 views

add timestamps to recorded session via “script” command

In my .bash_profile I have script -a -t 0 session.log which automatically records all terminal input/output into the session.log file. I know this command comes with an optional flag to record the ...
1
vote
2answers
47 views

How do I send a notification to all active shells, like shutdown does?

You know, I was just there, doing my things, when suddenly a terrible Broadcast message appeared! fiatjaf@mises ~> sl fiatjaf@mises ~> ls dotfiles/ urxvt vim/ vimrc fiatjaf@mises ~> cowsay ...
0
votes
1answer
36 views

Source ~/.bashrc when using the shell recorder `script`

I am using the first answer from How to automatically record all your terminal sessions with script utility to record my terminal sessions, however, I can not figure out how to get my bashrc to be ...
8
votes
4answers
7k views

How do I jump to the next or previous word with CTRL + arrow keys in a console?

In terminal emulation applications, pressing CTRL + Left / Right arrows jumps from one word to the previous or next one. Is it possible to have the same functionality in a Linux console, whether it is ...
0
votes
1answer
51 views

Some keys don't work in console (tty), but work in a terminal emulator [duplicate]

When I am am in virtual terminal and open my editor, I can use editor key shortcuts such as CTRL + Down and CTRL + Up to select lines (select block), or F5 and F6 to copy/move the selected block. ...
0
votes
0answers
18 views

Possibility to write some words in different color in log file [duplicate]

Is there a possibility to colorize words in a log file? I want to have the word ERROR in my logfile always in red, to see it more easily. I watch it with the tail function: tail -f -n 500 catalina....
4
votes
1answer
82 views

Make screen work like a terminal (scrolling + alternate screen) [duplicate]

I would like to use screen (from GNOME Terminal, via ssh) like I use GNOME Terminal without screen, or as close as possible to that. Specifically: In GNOME Terminal, I can scroll back using the mouse ...
4
votes
4answers
3k views

Getting stdin from a named pipe

What I am trying to do is run python in a terminal window and redirect it's stdin from a named pipe. Then I write to the named pipe in another terminal and have that command execute on python. ...
1
vote
1answer
18 views

ClamAV check infected file

I ran clamscan --bell -r / and in the end it returned me Infected files: 1 now is there any way to check which file is infected (i.e. a log file)?
7
votes
2answers
4k views

terminal: displaying special characters

In some programs, such as htop the lines and frames are not displayed correctly. Instead, they are displayed as - and /. But on another machine, they are displayed correctly as proper lines: I ...
1
vote
0answers
27 views

Do light color codes work across all distros and terminals? [duplicate]

I use \033[1;34m for light blue. I am using Debian and Putty and it works for me. However, I've heard that it may not work for all users (using different distros and terminals). Is that true? Do they ...
9
votes
3answers
645 views

Piping a command through a color filter

Does something like this exist in Unix? $ echo "this should show in red" | red $ echo "this should show in green" | green $ echo "this should show in blue" | blue Here I don't mean for literal ...
2
votes
2answers
2k views

Double line box_drawing characters in terminal

This piece of code in wikipedia: $ char=( 6a 6b 6c 6d 6e 71 74 75 76 77 78 ) $ for i in ${char[*]}; do printf "0x$i \x$i \e(0\x$i\e(B\n"; done includes one-line box-drawing characters. Are there ...