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

How to remove the return code from the terminal prompt in Sugar on a Stick?

I am using Sugar on a Stick (Fedora 23) 0.106 for i686 as a distro. Here's the link to the website of this distro: https://sugarlabs.org When I use the terminal I get a very weird behaviour. For ...
-2
votes
1answer
37 views

ClamAV installation problem?

My USB has windows viruses in it. Before attaching it to device(windows installed), I want to delete these viruses but i have kali installed device also from which I want this action to be done. I got ...
1
vote
1answer
27 views

Configuring Getty for hardware terminal

I am looking to configure a serial line for the following: 9600 Baud Word Length: 8BIT Parity: Mark XON/XOFF On I can't seem to locate the details on the "Parity Mark" part so far on my searches ...
0
votes
0answers
19 views

Brew Cleanup keeps appearing in my Terminal history

When ever I open Terminal and/or open a new windows in OSX then press the up key, brew cleanup keeps appearing. I tried adding history -c to my bash profile but that did not work. I ran brew update, ...
2
votes
2answers
55 views

Detecting shift + keyup/down in the terminal

How do I do this? I want a terminal menu where shift+up or shift+down selects multiple lines. ncurses seems to have problems. I don't necessarily need an advanced terminal library. I just want to ...
1
vote
3answers
50 views

How can I show output of command during terminal text login prompt?

I have a mostly headless server running Debian with no xorg/graphical environment installed. At boot it simply shows a text-mode login prompt. I am wondering how could I show the output of a command ...
0
votes
0answers
42 views

KeePassx install

I am noob who tries to install KeePassx on Linux. Downloaded tar. Decompressed it with ~/Desktop$ tar -xzvf keepassx-2.0-beta2.tar.gz In decompressed files I found installation command but I am not ...
1
vote
1answer
80 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 ...
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 ...
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 ...
1
vote
3answers
18 views

Get current execution of command out in ssh?

There is a thing that I need help with. I am running a simulation command in a servr using ssh, from my terminal. The simulation is running for 10+ hours. I am expecting output after 15+ hours. ...
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
61 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
510 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 ...
3
votes
1answer
32 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 ...
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), ...
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 ...
1
vote
2answers
178 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 ...
4
votes
2answers
52 views

What is the right way to consistently mangle bash terminal?

I'm on OSX 10.11.1 and occasionally my bash terminal gets mangled. It often happens when I accidentally cat a binary file. The result can be seen on the image below. The output becomes weird, and I ...
4
votes
2answers
253 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 ...
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), ...
21
votes
1answer
510 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
2answers
51 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 ...
0
votes
3answers
50 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? ...
3
votes
1answer
31 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) ...
2
votes
1answer
53 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 ...
0
votes
2answers
30 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 ...
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
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 ...
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 ...
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 ...
9
votes
2answers
307 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 ...
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 ...
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 ...
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
4answers
142 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 ...
2
votes
2answers
40 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 ...
0
votes
1answer
67 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 ...
0
votes
1answer
52 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 ...
1
vote
0answers
49 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?
2
votes
2answers
73 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 ...
2
votes
0answers
117 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 ...
0
votes
1answer
64 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: ...
1
vote
2answers
61 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
164 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 ...