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

GNU Screen: How to enable or disable logging while screen is already attached?

Suppose I have whole bunch of processes running under screen, but I forgot to execute screen -L initially. Is it possible to enable and disable the logging of a currently attached screen without ...
8
votes
1answer
5k views

Your kernel headers for kernel 3.10.0-229.el7.x86_64 cannot be found

When I type the command service vboxdrv setup in my CentOS 7 terminal, I get the following error: Your kernel headers for kernel 3.10.0-229.el7.x86_64 cannot be found How can I resolve this ...
7
votes
2answers
3k views

Tmux output is slower when vertical splits exist: why?

When I use Tmux and split the window into panes, I notice that programs are quite a bit slower to print out lines of text when there is vertical split (two panes side by side) than when there is a ...
1
vote
2answers
43 views

Ignore first x lines when executing a script?

I'm making a script that eventually starts over by executing itself again using exec. The problem is the first few lines are only supposed to be run everytime you launch the script yourself, so I'm ...
4
votes
5answers
5k views

How to change title in gnome-terminal profile

I know how to load a specific terminal profile as well as loading a config file that the terminal reads, but every time I try to set the title and save the config file, it still returns to the ...
9
votes
2answers
537 views

Why does tmux set TERM variable to screen?

Citing tmux man page: The TERM environment variable must be set to “screen” for all programs running inside tmux. New windows will automatically have “TERM=screen” added to their environment, but ...
2
votes
1answer
48 views

How to copy/tar files from a folder with huge number of files?

So, I made a little stupid mistake. During the collection process of data from a source, I dumped everything to the root of my external disk, which now has like 600k+ files (totaling 23 gigs). Here ...
0
votes
1answer
120 views

Can I cancel SSH (after using it to browse) without logging out?

I've used the command ssh -D 8080 -f -C -q -N user@IP to SSH into a VPS and set it to browse in the SOCKS proxy settings in System Preferences (on my Mac). How do I cancel the SSH session (and browse ...
2
votes
4answers
174 views

Automate Rename files from 1 to unlimited number

How to rename multiple files starting from 1 to unlimited ( to finish all files ) ? My files looks like: file.jpeg.jpg fileA.jpeg.jpg fileB.jpeg.jpg Output: 1.jpeg.jpg 2.jpeg.jpg 3.jpeg.jpg I'm ...
1
vote
1answer
15 views

Changes of Terminal look don't work anymore

I got a mac laptop and have been using a home directory which is not under my name. After spending some time, I have set preferences and of course one day, I needed to change the home directory name ...
1
vote
0answers
13 views

how to know whether a headphone is plugged in from terminal? [duplicate]

I'm looking for something like presence of a file or its content that could indicate the headphone's presence. I am working on if statement on conky with condition being presence/absence of ...
0
votes
2answers
93 views

Opened file with several million lines: how to close it?

I've just accidentally opened rockyou.txt in Kali Linux on a fairly slow computer. It has now been sitting on the desktop loading the 30million words for over an hour. It is not frozen, as I can still ...
-1
votes
2answers
28 views

Where can I find all tmux options?

Where can I find a list of all tmux options? I know of tmux list-keys -t which shows you various keybindings and their commands, but I'm looking for a comprehensive list of all possible tmux ...
2
votes
2answers
57 views

Parse terminfo u6 string

Looking at terminfo and Parameterized Strings. Some examples from infocmp -1 xterm: cud=\E[%p1%dB, given argument 13: \E =><ESC> [ => [ %p1 PUSH parameter 1 (13) onto stack %d POP and print ...
2
votes
2answers
101 views

Why does “shift-tab” result in “Escape” in the terminal?

I just noticed this by accident. I use the vi readline mode (run set -o vi in bash) so it is particularly noticeable; in emacs readline mode I don't think Esc does anything, but in vi mode it exits ...
3
votes
5answers
2k views

Do any text-based web browsers support unicode box-drawing characters?

I have some html like this: &#x250c&#x2500&#x2500&#x2500&#x2500&#x2500&#x2500&#x2500&#x2500 ...
0
votes
1answer
99 views

How can I change my tmux color scheme based on the time of day?

I just implemented a few lines into my .vimrc that changes the color scheme from SolarizedDark to SolarizedLight based on the time of day. " Solarized light during the day, solarized dark during the ...
0
votes
1answer
256 views

How to use screen as a serial terminal with key emulation CR+LF auto mode

I would like to use screen as serial terminal but my output is not formatted well. I use this command: sudo screen /dev/ttyACM0 9600,cs8 thinking the configuration above is like 9600 8N1 with no ...
22
votes
4answers
2k views

What causes a copy/paste in terminal to sometimes execute the command?

When you paste some command in terminal, it will sometimes automatically execute the command (just like if the "Enter" key was pressed), sometimes not. I've been using Linux for ages, pasted ...
1
vote
0answers
83 views

Terminal takes long time to start

Recently, when I start a terminal the $ takes a few seconds to show up. I don't have any problems after it shows up. What might be causing this delay at startup?
1
vote
2answers
909 views

Git Server Bash and SSH

I want to use Git over SSH with my Linode VPS running Ubuntu 10.04 LTS. Instructions seem pretty easy, in fact given I had already setup my SSH key etc.. All I had to do was instruct my local ...
1
vote
1answer
190 views

Terminator is not working!

Terminator is my choice of terminal in debian. I seem to have broken it while playing with its profile preferences. I can't open it normally as other applications. However after becoming root I can ...
0
votes
1answer
47 views

How would I start a program when I login to terminal? [duplicate]

This is a simple question, but too generic to find on google, I guess. How would I set-up a program to run every time I opened the terminal? For example; every time I open the Terminal it runs ...
-1
votes
2answers
47 views

OpenDNS automatic diagnostics

I've contacted OpenDNS support because advertising is not filtered on this site http://www.backpackerboard.co.nz/ They asked me to read these manual instructions OpenDNS Diagnostic Tool: What to ...
2
votes
0answers
220 views

How can I make my Zsh theme (“fade”) look good in urxvt?

I am using Arch Linux and as a newbie I don't have any preference for a terminal emulator yet. Since rxvt-unicode seems to be the most popular one, I thought I'd try that first. I'm configuring it ...
1
vote
2answers
86 views

Do not interpret Carriage Return (`\0D`) in my terminal

I often need to grep for a particular expression in a large text file. For some reason the private vendor decide to use CR (carriage return, \0D) to separate argument on a particular line of the text ...
0
votes
1answer
103 views

How do I emulate sending keystrokes through a terminal program?

I need to send keystrokes virtually to a terminal program (like vi or emacs). I want to do something like this: echo -e 'iHello, world!\e' | vi and then have a vi session open with this buffer: ...
0
votes
2answers
380 views

Chat over LAN in Linux

I am trying to set up a LAN chat with two users using Linux server and none of them is root. I have tried this two methods: write account_name on both computers And: nc -l port_number on first ...
21
votes
4answers
24k views

How to solve the issue that a Terminal screen is messed up? (usually after a resizing)

Sometimes, a terminal screen is messed up, and when we use man ls to read the manpages, or press the UP arrow to go to previous commands in history, the screen will show characters not as the right ...
4
votes
4answers
346 views

Remove a directory from inside using the command line interface [duplicate]

Imaging the next simple file structure within the /home/user/ directory: /home/user |--dir0 |--dir1 |--file1 My current directory is 'dir1' and I remove the ...
0
votes
1answer
242 views

How to setup Mac OS X Terminal on bash and iTerm2 on zsh

I attempted to setup bash shell by default on Mac OS X (Yosemite) Terminal app and zsh shell by default on iTerm2 app. However, it is either bash shell or zsh shell for both the apps. $ chsh -s ...
5
votes
2answers
25 views

maintain prompt despite ouput flow

Short version Can I maintain an input symbol (> for instance) at the bottom of the terminal so that the user can input despite text flowing above? Long version I am making a multi-process ...
29
votes
6answers
20k 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) ...
7
votes
2answers
6k views

Copy / paste text selections between tmux and the clipboard

I am running the latest version of tmux (from the git repository) and xclip (0.12), and I would like to be able to use Emacs-like keyboard bindings to move around the text in copy-mode, copy (M-w) ...
13
votes
4answers
9k 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
0answers
42 views

customer display on headless server / POS system / Mac OSX

I have a web based POS system running (AMP), formerly on debian, now switched to OSX due to lacking linux printer drivers. The Mac mini is running headless, no keyboard, no mouse, no (normal) monitor. ...
1
vote
0answers
18 views

Creating inter-terminal applications for Linux systems

On a Debian machine, I have the BSD games installed, but I wanted to know if it was possible for the monop game to be played with other users on the server. This type of inter-terminal play is a ...
63
votes
3answers
43k views

Scroll inside Screen, or Pause Output

I use screen for my command-line tasks while managing the servers where I work. I usually run small commands (mostly file-system tasks) but sometimes I run more extensive tasks (like DBA). The output ...
3
votes
0answers
170 views

tmux causing bold fonts in vim

I have installed tmux with vim, using the solarized colorscheme and airline plugin. All is good until I start tmux, where all the font turns bold and the airline status bar is looking weird. I have ...
2
votes
1answer
67 views

Remove terminal formatting from file [duplicate]

I used script to dump output of some other script to file. While it worked great, the output was formatted(colours, etc.), so now it's unreadable as a raw text - I have to use cat or less instead. The ...
5
votes
2answers
194 views

Background color whitespace when end of the terminal reached

I am working with control sequences for text formatting and have stumbled upon some unexpected behavior. I have some text to output, in the middle of this text there is some smaller text block ...
0
votes
1answer
70 views

Vi buffer contents stay on-screen after using screen commands

In shell terminal, echo $TERM --- prints xterm Now I do vi somedoc and exit, vi contents disappear from the shell screen and the shell's previously run commands are visible. So far, all good. Now ...
0
votes
1answer
63 views

How does Elinks render HTML? [closed]

I like the elinks browser and I would like to know how does it render the HTML into text, using ANSI styles. I suppose there is a library behind elinks to handle the rendering, or there should be. Is ...
1
vote
0answers
58 views

tmux select-pane -LDUR command - disable auto-cycling behavior

Is it possible to disable the behavior which causes selecting a pane on opposite side of a tmux window if there are no more panes left in a direction select-pane command was originally triggered at? ...
2
votes
1answer
94 views

“askfirst” getty with systemd (“press enter to activate this console”)

On a Debian Jessie system with systemd, how can I configure the terminals so that a message like Press enter to activate this console is displayed and the login prompt does not appear before hitting ...
2
votes
3answers
348 views

copy from file and paste in the terminal without x server

I have got an Ubuntu Linux without x server installed on it (because it's only a gateway). I am requested by an application (ossec,-my question is not ossec related-) to paste information into the ...
12
votes
5answers
1k views

How to recall a previous command (without execution) in order to change it?

I can't remember the trick where I could get the last command without running it: let's say I want to be be able to access the command !1255 when pressing the up arrow key and modify the command. So ...
2
votes
1answer
47 views

Terminal - redirection of output to file is shortened

I am using command: ./cpp-generator > ~/log.log But when I open the log.log the file is shortened. It ends in the middle of a word. But if I run just: ./cpp-generator in terminal, the result ...
0
votes
0answers
15 views

Is there a way to deport gnome terminal output into a regular tty? [duplicate]

I was dist-upgrade my old debian wheezy from a gnome terminal in X and suddenly i got some display bugs. Basically i wasn't able to see the console and the upgrade anymore, impossible then to answer ...
1
vote
2answers
369 views

Bash is not sourcing ~/.bash_profile on OSX

I just got this really weird problem. 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 ...