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

1
vote
1answer
41 views

Launch web page secured with HTTP authentication from a terminal kiosk

I am trying to launch Chromium to open a specific webpage that requires username and password login details. I can open the webpage no problem from the terminal however I have been unable to so far ...
1
vote
1answer
79 views

Finish entering text in GPG

If you call GPG without input, it just says gpg: Go ahead and type your message ... You can enter text and everything, but how do you end the input? I've seen something like this in multiple ...
0
votes
1answer
24 views

Can I have my shell display settings follow me?

I use a local VM to remote into multiple boxes throughout the day. My preferred shell display setting is: export TERM=xterm-256color export PROMPT_DIRTRIM=6 ...
2
votes
1answer
24 views

Vertical lines are disjointed in urxvt

I'm using Debian testing (stretch) with i3 running urxvt with Source Code Pro (a TTF font). MOC (an ncurses program) as it appeared last week: And now - notice the vertical lines: I can "solve" ...
4
votes
1answer
60 views

How to save/restore terminal output

Some programs like vim/nano/nload has the ability to use the whole terminal to display its content and upon exiting, the previous terminal output is restored. How do they implement this restoring ...
2
votes
2answers
105 views

How can I solve the output staggered phenomenon in tmux

My system os is 4.0.5 gentoo. After hours of tmux opening, suddenly it shows output staggered. For example, The output of ls -l will be > 1111 > 1111 > 1111 But now it becomes 1111 ...
0
votes
0answers
480 views

SSH Connection Refused In CentOS?

For a week, SSH was working perfectly. Today I restarted my server and I got this error in my Mac terminal: ssh: connect to host 162.243.7.7 port 22: Connection refused This is very odd... I am ...
1
vote
1answer
19 views

refreshing terminal window's view of a recreated directory

I use a program that recreates a certain directory structure each time it is run, then populates it with all kinds of data. I keep a terminal window "open at" one of the subdirectories of that ...
29
votes
3answers
86k 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.
3
votes
1answer
30 views

How does ssh always manage to reset the terminal attributes?

If I run strace -e trace=ioctl -v ssh some_remote_host I see a line like this: ioctl(0, SNDCTL_TMR_STOP or TCSETSW, {c_iflags=0x6006, c_oflags=0x4, c_cflags=0x 4bf, c_lflags=0xa00, c_line=0, ...
0
votes
2answers
19 views

Using Guake in a Linux VirtualBox on a Windows host

Does anyone know if it's possible to load my guake terminal from a windows host? I use Linux, xUbuntu, in a VirtualBox guest machine installed on Windows. I just discovered the Guake terminal ...
29
votes
9answers
123k 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 ...
1
vote
0answers
30 views

`ls\` logs out of terminal session?

Like many, I have an alias ll=ls -l[.]+ set. A moment ago, I typed ll and then accidentally hit \ on the way to return. I hit return again to finish the command (on the continued line prompt), ...
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 ...
22
votes
8answers
17k views

How can I set my default shell to start up tmux

I would like my default bash shell to go straight into tmux instead of my always having to type tmux every time.
0
votes
2answers
452 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
174 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
11 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
22 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
108 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 ...
8
votes
12answers
13k views

How do I run the same linux command in more than one tab/shell simultaneously?

Is there any tool/command in Linux that I can use to run a command in more than one tab simultaneously? I want to run the same command: ./myprog argument1 argument2 simultaneously in more than one ...
4
votes
2answers
251 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 ...
2
votes
3answers
177 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
127 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), ...
16
votes
6answers
1k views

Is there a terminal app that allows filenames to be clickable?

Is there a terminal emulator (extension or app) that does link resolution for local paths? In particular when I see things like: ...
21
votes
1answer
509 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
61 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
37 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
85 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
49 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
50 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
29 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
27 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
49 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
3k 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
38 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
304 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
46 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
117 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
141 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
70 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
23 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
36 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
71 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
50 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 ...