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

2
votes
3answers
4k 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 ...
0
votes
2answers
31 views

Where can I find the speciation that a terminal emulator must meet?

I'm interested in writing a terminal emulator for fun. I roughly understand the division of labor between the shell and the terminal emulator from this post: What is the exact difference between a ...
1
vote
1answer
52 views

Nautilus to open in the foreground

From the terminal I can open the file manager using nautilus ., but the window opens behind the current terminal window (on my Ubuntu 14.04). Is there a way to call nautilus from the terminal and ...
2
votes
4answers
171 views

Recovering Invisible screens and dropdowns on linux

The terminal has gone invisible , although I can type commands and they get executed: Even some firefox download dropdowns are invisible, I can click the items in the drop down list but the list ...
3
votes
2answers
148 views

Center Mutt pager horizontally

Is there a way to horizontally center emails when reading them in a larger terminal using mutt? I'm not interested in centered justification of the text in the email, but I am interested in forcing ...
2
votes
1answer
148 views

Can't open Gajim

When I try to open Gajim using terminal on gnome I get the following: Traceback (most recent call last): File "gajim.py", line 106, in <module> import common.configpaths File ...
2
votes
1answer
50 views

change terminal appearance according to server

I have 2 different serves (all running Linux) to which I connect via ssh . After login all terminal background looks same. I want to have different color theme or background for different servers. For ...
0
votes
1answer
43 views

csh: Terminal inherits environment variables from an unknown location

I'm on a shared machine running CentOS 5.10 that I log onto using VNC from Windows 7. Our default and official shell is csh. Every time I open a new terminal, I have three particular environment ...
1
vote
2answers
59 views

Show output of a command run inside screen if it exits with errors

I am using the screen command for starting server running in foreground. But in case there is an error when starting server I am not able to see the output of command. I have to run it again without ...
6
votes
2answers
732 views

bash - why does \x0d\x20 erase the line

This is the view from gedit editor: and the view from vim editor: I then try to grep it, it did grep successfully if i put Log instead of Tog, but the output is corrupted: [xiaobai@xiaobai grep]$ ...
1
vote
1answer
26 views

Spawn another terminal running tmux (from a terminal running tmux)

I'm currently using urxvt with tmux, run as such: urxvt -e tmux I wish to start up a completely separate instance of urxvt -e tmux (another urxvt, also running tmux) using the terminal. (More ...
0
votes
1answer
37 views

Build gdal with mrsid plugin on fedora 21 server

I've been having an issue for over a week now. The problem is, I can't build gdal source with MrSid DSDK on Fedora 21 Server. I have built and installed gdal with MrSid on Fedora 21 without any ...
1
vote
1answer
57 views

Save all the terminal output to a file

Is there some way of saving all the terminal output to a file with a command? I'm not talking about redirection command > file.txt Not the history history > file.txt, I need the full terminal ...
-2
votes
1answer
41 views

I am using Kali Linux, but however, I want to know how to switch my normal user account into root admin?

I want to know how to switch my normal user account into root admin? For example, when I log into my account I cannot modify and save sources.list from etc/apt/folder nor can I get an update for ...
4
votes
5answers
568 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
1answer
56 views

Why my terminal screen crashes?

Sometimes my system gets freezed, after that my icons looks crashed and the terminal fonts are also crashed Whenever I restart it looks normal, how to fix this?
3
votes
1answer
365 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 ...
1
vote
1answer
46 views

How should look script that launches program on startup

I want program rescuetime to be launched when computer loads. I've found that for this task script should be created in /etc/init.d/my_script and this lines to be entered to console chmod 755 ...
0
votes
1answer
33 views

pager “less”: --quit-if-one-screen without --no-init [duplicate]

I can't get less --quit-if-one-screen (-F) working without --no-init (-X). less --quit-if-one-screen /proc/uptime I see no output. This works: less --quit-if-one-screen --no-init /proc/uptime ...
1
vote
1answer
67 views

Host linux distro without GUI?

I saw this video on Youtube: Run Kali Linux on Android The phone uses the app: Linux deploy, which uses the phone to host the distro, but there's is no GUI. The only way to connect to Kali, is by ...
6
votes
1answer
223 views

How to change background color of a pane in tmux?

I would like to change the background color of the inactive panes in tmux to better distinguish between the active pane and inactive panes. Something just a few shades different than the default. How ...
-1
votes
1answer
47 views

Gauke terminal + powerline: config confusion and parameter issues [closed]

When trying to edit powerline for my bash shell, guake terminal on Ubuntu 14.10, I attempted to copy and edit the default configuration, to no avail. After some experimentation I realised none of the ...
0
votes
1answer
26 views

How to change the key repeat interval?

How can I change the key repeat interval in FreeBSD? I'm talking about when you hold down a key, and the terminal repeatedly registers key presses for that key. I'm having a problem where if I type ...
1
vote
2answers
67 views

Whiptail/dialog input bug when executed from rc.local

I need to start a Bash script containing calls to dialog at Debian boot time. This is how I've been able to do it: Unset default root password Set --autologin option to tty1 in initrd ...
1
vote
0answers
63 views

Decrypting with GPG after a “su - different user”

I have cron job running a script in the cron of "USER A" that encrypts many files in a loop using the gpg command below: gpg --batch --cipher-algo AES256 --passphrase "PASSWORDISHERE" -c FILENAME ...
3
votes
1answer
41 views

What is screen's “Multi display mode”?

screen's man page mentions a "Multi display mode" at one place: -x Attach to a not detached screen session. (Multi display mode). It's the only place where "Multi display mode" is mentioned. ...
6
votes
4answers
1k views

How to merge two files with different number of rows in shell?

I have file1 like this: CHR SNP TEST A1 A2 GENO O(HET) E(HET) P 0 AFFX-SNP-000541 ALL 0 0 0/0/0 ...
-3
votes
1answer
68 views

What does root means in terminal?

What is the difference between the following: I have 2 accounts in my OS, baron and root I login with baron account, then run the command sudo -s baron@linux:~@ sudo -s [sudo] password for baron: ...
2
votes
1answer
31 views

Set default color for top

How do you set the default color for top? Right now there is a red that I can barely read. You can toggle from mono to color with z or set it up more thoroughly with Z. But none of those settings ...
3
votes
3answers
41 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 ...
3
votes
2answers
173 views

Where does the TERM environment variable default get set?

When I open a terminal window with the GNOME Terminal emulator in the desktop GUI the shell TERM environment variable defaults to the value xterm. If I use CTL+ALT+F1 to switch to a console TTY ...
20
votes
5answers
933 views

How can I find the common name for a particular glyph?

Sometimes, I'd like to know the name of a glyph. For example, if I see −, I may want to know if it's a hyphen -, an en-dash –, an em-dash —, or a minus symbol −. Is there a way that I can copy-paste ...
3
votes
0answers
41 views

How can I pass function keys to htop in a tty?

I'm trying to use htop in tty1. However, some of the function keys don't appear to work as normal. F1 and F2 do nothing, and F3 seems to trigger setup (which should normally be triggered by F2). In ...
1
vote
2answers
81 views

Change color of input text, not output [duplicate]

I need to capture screenshots of the terminal where the typed commands visually "stand out" from the rest. Right now I'm using this to make my typed commands "red": PS1='\[\e[0;31m\]\u\[\e[m\] ...
1
vote
1answer
44 views

Reinterpret terminal output

I have a program that executes some commands in a terminal (for example apt-get update) and stores the output. How can I reinterpret the output, so I can remove all information that is not needed ? ...
2
votes
1answer
52 views

Using wget, how to download to a specific location, without creating folders, and always overwrite original files

How do I use wget to download files to a specific location, without creating directories, and overwrite the original every time. I've tried using the -r -P and nc options in combination but this ...
1
vote
3answers
685 views

How to re-adjust content while resizing gnome-terminal?

Some times when I am compiling a script the parameters are so long that they cover many lines in the terminal. When I resize the terminal in order to read more clearly, the content does not ...
1
vote
2answers
58 views

echo with backspace

I am trying to figure out why this happens in bash. Ok this is easy enough. $ echo -e 'a\txy\bc' a xc Ok this is easy enough. $ echo -e 'a\txy\b\b\b\b\b\b\b\b\bc' ac xy Ok this is easy ...
8
votes
2answers
2k views

Aliases and tmux

Aliases defined in .bash_aliases and .bashrc don't work in tmux. Can this be changed in some configuration, so the aliases work under tmux?
0
votes
1answer
124 views

Run script from GUI with terminal output

I would like to run a script from the GUI. For example a simple echo "hello" from the right click context menu. In my case I would set up an action in thunar like this: Then it appears in the ...
2
votes
0answers
24 views

Slackware won't ring my bell

I want to ring bell in bash I've set lsmod |grep pcs pcspkr 1987 0 xset b and finally echo -e \\a But no ring.
4
votes
3answers
114 views

Adding vertical space after command in bash

How to add vertical space after each command in bash? Looking for a wee bit of vertical space, not a full line. 1/4 or 1/3 of the line height should do it. [edit] The space to add is only after the ...
41
votes
3answers
48k views

How to recover a 'lost' screen session?

Somehow I managed to close a screen window without screen 'noticing' it, so the session is still flagged as attached. This prevents me from re-attaching to this session. What can I do? ...
1
vote
1answer
86 views

Echoing Backspace Characters in the Terminal

I'm working with picocom running inside gnome-terminal. I have local echo switched on inside picocom using the -e option, and when I backspace I can see that caret moves backwards, however the ...
1
vote
1answer
22 views

Dotfile not working in current shell, need new one

To be clear, this isn't a screen issue, I'm sure it's a general shell issue. On a new Ubuntu 12.04 server, I'm currently logged into a terminal in which I want to run the screen command with my ...
9
votes
3answers
3k 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 ...
1
vote
2answers
111 views

CentOS 7 shell script interpretor

I am starting to write a shell script to be run in CentOS 7. Which interpreter should it call, and what should the shebang line look like? I tried this: #!/bin/sh But when I type cd /bin ...
1
vote
1answer
82 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 ...
0
votes
3answers
58 views

Bash: Access parameter passed to last command [duplicate]

This is a situation I often find myself in: mkdir /Some/really/long/path/to/a/directory/ cd /Some/really/long/path/to/a/directory/ I know that ideally you would cd /Some/...etc.../a/ and then mkdir ...
-2
votes
2answers
73 views

autocomplete weirdness as a result of ugly hack for zsh prompt

I currently have the following line in my .zshrc: export PROMPT=$(printf "\e[38;5;6m")%m$(printf "\e[m")%d-%h:" " Which is supposed to show the hostname in blue and history and current working ...