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
3answers
419 views

Silent GnuPG password request with bash commands

I'm trying to hide the "output" of a gnupg command, but it seems that it is always printed. the command is: echo "thisprogramwørks" | gpg -q --status-fd 1 --no-use-agent --sign --local-user D30BDF86 ...
0
votes
0answers
54 views

Open remote BMC console and interact

I have a server running CentOS I will address as the master. I have been reading several solutions for different scenarios. However, I'm still having trouble grasping the idea of what is required to ...
0
votes
1answer
71 views

Bash file is unable to execute on linux terminal: Socket Programming

I have written some codes for socket programming namely socket and plug. To execute them together I am trying to use the below bash file but I get the following errors. I did execute the command ...
20
votes
5answers
1k 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 ...
4
votes
3answers
425 views

Open file with started vim from outside (in terminal)

I have a started vim. I suspended it (Ctrl+Z). So I was in terminal session and I would like to open some file with the same vim session (new tab). I can open the file in new vim session. Actually, ...
3
votes
1answer
898 views

How to see what accounts connected with ssh are running

Using the question here I can see the users connected with ssh. Is there a way to see (from terminal) what program the users connected with ssh are running? EDIT The ssh users are running commands as ...
0
votes
1answer
119 views

What really is bash? (or any linux shell) [duplicate]

I understand bash as a window where I can type commands to linux. Reading the wikipedia, I've learned that there were various shell applications throughout the history. First, I understood bash as ...
1
vote
1answer
23 views

access to ttyusb0 as normal user

I am trying to access a serial device, which is attached as: "/dev/ttyUSB0". crw-rw---- 1 root dialout 188, 0 Nov 29 15:45 ttyUSB0 For that I created a new udev rule: SUBSYSTEM=="tty", ...
4
votes
2answers
76 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 ...
0
votes
0answers
110 views

Linux Mint partition doesn't appear in Disk Util (El Capitan).

i have two problems here! I'm pretty new to dual booting on OS X, I'm trying to dual boot with Linux Mint. I've gone through all the recommended route of dual booting. I started with mounting the ...
1
vote
0answers
49 views

Terminology terminal fonts [closed]

I have a problem with terminology fonts, my font is "Bitstream Vera Sans Mono (Roman)" I tried switch fonts but it is not solved the problem, picture attached: Thanks, Michael. EDIT: The problem ...
1
vote
0answers
114 views

Change output (sink) using the terminal

I've made the change from Gnome to i3, and I want to be able to switch my audio output (from headphones to HDMI and vice versa) using the terminal. $ pactl list cards | grep profile Part ...
0
votes
0answers
42 views

Terminal doesn't print colors

My Antergos terminal doesn’t show me any colors when executing scripts. I have a fresh instalation, with no tweaks. I have zsh and oh-my-zsh, but the configurations are the default ones. You can see ...
0
votes
1answer
140 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
46 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 ...
7
votes
3answers
4k views

key bindings table?

Do we have a key bindings table that translates all the various ways of referring to a key press? I'm using zsh, but I presume that if there was such a table it would work for any shell. The reason I ...
1
vote
1answer
43 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
1answer
8k views

CentOS 7 add new user with root privileges

I am reading this tutorial, and trying to create a new user with root privileges and then block root access via ssh in a CentOS 7 server. The problem is that the new user is blocked from doing root ...
2
votes
2answers
135 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
27 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. ...
0
votes
0answers
20 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
3answers
544 views

Trailing spaces when copying from console

It's this annoying behavior I've been experiencing here and there occasionally: when you select text with mouse in console (that is, copy it), paste it, and realize you've got extra spaces at the end ...
0
votes
0answers
57 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
3answers
73 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 ...
1
vote
1answer
95 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
99 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
35 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
31 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" ...
3
votes
1answer
80 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
122 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
2k 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
22 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
46 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
37 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 ...
32
votes
9answers
137k 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
33 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 ...
23
votes
8answers
20k 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
847 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
237 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
33 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
116 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
296 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
550 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
183 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
555 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
85 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
45 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
107 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 ... ...