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

6
votes
1answer
2k views

Is there a legend some place that describes all of these color-coded values at the bottom of byobu?

On my EC2 instance I am presented with a screen where the bottom looks like Some of the values seem pretty clear to me. Is there a legend available, or some place that explains this various color ...
0
votes
2answers
994 views

MobaXterm: How to see previous commands' terminal output while still being in VIM? (Equivalent of 'Shift + Page Up' in PuTTY)

I'm finding this difficult to explain because I'm not sure what this is called technically so please bear with me. What I want (which is possible in PuTTY): 1) Login to a machine (using PuTTY) 2) $ ...
1
vote
2answers
256 views

How to scroll up the cursor in terminal in order to print a string?

Here I want something like the way aircrack-ng does to display text in the terminal screen, or like matrix scripts ... ! For example, if my terminal screen already contains 4 lines, I want to ...
0
votes
0answers
12 views

Executing spawned quick commands in tmux?

Sometimes I want to execute a fast command while working on a pane which got a blocking cli (for example a running web server app) so I have to open a new pane, execute that command and close it right ...
1
vote
0answers
36 views

xfce4-Terminal doesn't create a new pts session?

I'm running Openbox on Manjaro, and I've come across a peculiarity trying to use write and wall with some friends. I use xfce4-terminal as my preferred terminal emulator, and I was never able to get ...
4
votes
0answers
117 views

rm -rf ~/.Trash/* doesn't work, Mail Attachment.eml:OECustomProperty unable remove [closed]

I'm on OSX10.10.3, I've had a file in my trash for about 6 months or so. I have a file in my trash, 2 actually. That are from my mail cache that I dumped since I don't have the space on my SSD for my ...
4
votes
2answers
312 views

Set the bash display [while using GNU Screen utility] to not show the vim text after exit

Currently when I am not using screen utility, I am able to see the VIM content wiped out of the display when I quit VIM. However when I am using GNU Screen utility and opening a file in one of the ...
3
votes
3answers
699 views

journalctl: how to prevent text from truncating in terminal

How can I keep long strings from truncating in terminal? For example if I run journalctl -xn There's a lot of text that I cannot read. I am open to using other programs/tools.
1
vote
1answer
209 views

Take text “screenshot” of current terminal contents

I would like to, every 30 seconds or so, copy all text of a certain terminal or terminal emulator to a file, and display it in conky. I'm not talking about simple redirection (command > file), ...
21
votes
1answer
566 views

Is there any manual page for colored shell output?

You know, that colorized output made by special char sequences, for example: echo -e "\e[34m Hello\n \e[0m" This will produce word "Hello" colored in blue. To do this I had to search on the web, ...
1
vote
1answer
99 views

how can I stop multiline commands from messing up my cursor position when scrolling through history?

Related: Why is my bash prompt getting bugged when I browse the history? History looks like: 1831 git remote -v 1832 gs 1833 gd 1834 gc -am 'moved apsum options etc to their own file set ...
3
votes
1answer
46 views

ssh port forwarding through pseudo terminal

Here's a situation: I do all my work on a Mac. There's a certain linux server 'server01' that provides access to another linux server 'server02' via a pseudo terminal So, to ssh into '...
1
vote
2answers
116 views

ag output appears different in the terminal vs when piped to a file

When I run the ag command to search text files, I get output that looks like this on the command line (full results not shown): ❯ ag dependency 140317155505.md 27:The Bundler dependencies API ... ...
0
votes
3answers
100 views

Ignore certain characters when comparing variables?

For example, If this is my script: if [[ $yesno == "What's going on" ]]; then Then how do I make it Ignore ', ?, , and . for example? So basically Whats going on, What's going on, What's going on? ...
1
vote
2answers
70 views

.ssh/rc not working

Whenever I ssh to my desktop, I change $TERM to ansi so that ssh works better with the Windows terminal. I decided to create ~/.ssh/rc and add TERM=ansi to it. The problem is, after I ssh into my ...
3
votes
1answer
33 views

Does ANSI support links on text?

When I use a link in my terminal emulator (I am using Gnome Terminal), it's being highlighted as link and if I click it it is opened in the browser. Is it possible to have a text (e.g. Hello World) ...
0
votes
2answers
48 views

seq -w equivalent in os-x bash

I have sub-folders named 00 01 02, ... n with each foldername containing at least 2 digits. I need to access these sub-folders in os-x terminal. The command for i in $(seq -w 00 06); do echo $i; done ...
2
votes
1answer
237 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 re-...
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
44 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 default....
9
votes
2answers
632 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
49 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
121 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
180 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 headphone/...
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
29 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 commands....
2
votes
2answers
76 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
109 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 &#x2500&#x2500&#x2500&#x2500&#x2500&#x2500&...
0
votes
1answer
117 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
336 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
99 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
912 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
212 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
238 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
92 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
121 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
414 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 ...
23
votes
4answers
26k 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
362 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
270 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 /bin/...
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 ...
31
votes
6answers
21k 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) ...