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

5
votes
2answers
80 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 ...
3
votes
1answer
27 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
20 views

Java programs not running in terminal

I have java 8 installed on fedora 20. Any java program runs perfectly fine via eclipse but when I run the same program on terminal it reports an error saying 'could not load main class' . what could ...
0
votes
1answer
12 views

dsniff not showing

How can I check a package? I installed dsniff and I can't access any of it's tools from terminal. I type arpspoof and nothing. Tab key doesn't autocomplete. Dsniff is installed using sudo apt-get ...
0
votes
1answer
19 views

Gimp canvas resize through terminal

I have multiple images in wrong canvas sizes and I need to resize them like this: for i in *; do blabla $i -resize 500x500 $i; done I can already resize image with convert tool but I need to resize ...
-1
votes
0answers
22 views

accessing router through terminal [on hold]

I am setting a ftp server on fedora 20(vsftpd). And all the basic configurations are complete. But now I have to tell my router about ports that need to remain open. However, this is possible from ...
1
vote
1answer
27 views

Terminator not working!

Terminator is my choice of terminal in debian. I somehow broke it while playing with its profile preferences. I cant open it normally as other applications. However after becoming root i can access ...
0
votes
1answer
33 views

why are colors mixed up in CentOS 7 terminal?

I have CentOS 7 running as a guest OS inside a VirtualBox host. I opened a terminal to write some commands, but the colors are all messed up as shown in the following print screen: It looks ...
1
vote
3answers
19 views

Order of text jumbled when printing

We run an automated process which changes the data structure in a file, and it has run for about a year without any issues. It has just started failing and I have narrowed the problem down to one of ...
-1
votes
2answers
14 views

OpenDNS automatic diagnostic

I've contacted OpenDNS support because advertising are not filtered on this site http://www.backpackerboard.co.nz/ They asked me to read this manual instructions ...
1
vote
1answer
25 views

Escape sequences for function keys (F1-F12), especially F11 and F12

I want to use the terminal multiplexer byobu, so I need to use the function keys (F1-F12). However, I am accessing a remote machine via SSH, so I need to send function keys over SSH. (I'm running ...
0
votes
1answer
30 views

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

Simple question, but too generic to find on google I guess. How would I set-up a program to run every time I opened terminal? for example; ever time I open the Terminal it runs hello.sh which would ...
1
vote
1answer
20 views

automatic line on every terminal tab open

I started getting this weird line every time I open a new terminal tab. 3='cd -3' ruby-2.1.5 ➜ /Volumes/dev_directory It started about a month ago and I've looked in the ~/.profile ~/.bashrc ...
0
votes
2answers
30 views

Which file should be sourced in .devishrc to permanently change the hitch-file? [closed]

By default, in DEVISH (at least for me) the hitch file used is mhitch.py... I can change the hitch using the -h option for the shfile command, but I need to permanently set it to something... Any ...
-1
votes
0answers
20 views

Startup script run “oh my zsh”

I want "oh my zsh" to run below script each time it loads "echo 'export PATH=$PATH:/Applications/orca' >> ~/.bash_profile; source ~/.bash_profile" this would easily run orca software each ...
3
votes
2answers
255 views

How do I select text from terminal by using keyboard only?

I used to select text via mouse click+drag but I want to know if I can do the same thing via the keyboard only? I am talking about selecting text with the help of the keyboard on gnome-terminal, etc. ...
6
votes
2answers
79 views

Why does the terminal echo keystrokes when commands are running?

I was recently running tail -f on a log file of a server that was running, trying to diagnose a bug, when I accidentally bumped the keyboard and typed some characters. They got mixed in with the ...
2
votes
0answers
31 views

“at” (batch) job + dialog = nothing

The goal: to be able to get an "infobox" to open in a terminal after some time; alarm clock style, (on a Debian derived linux box). However: > at now + 3 min dialog --infobox "Time to attend to ...
4
votes
1answer
30 views

Posix command that moves cursor to specific position in terminal window

in school we have been assigned a homework in which we are suppose to print an ascii art into a terminal window. A input is data in format [x_coordinate, y_coordinate, char_ascii_value] (there is no ...
4
votes
9answers
381 views

How to quickly add some space in the terminal?

I often find myself scrolling back through the terminal with the mouse-wheel to see the first of many C++ template errors issued by a command. Anticipating this, I'll hold down the Return key to give ...
2
votes
1answer
25 views

Shift + Ctrl + C (terminal copy) doesn't work since I installed Awesome WM

The title sums it up. Since I installed Awesome WM I can't use Shift+Ctrl+C to copy text from terminal (although Shift+Ctrl+V still pastes)
1
vote
2answers
16 views

How to input Chinese (JCK) in console without X running

Is it possible at all to input JCK languages (Traditional Chinese in my case) in the console without having X-windows running? All the help I have found online for Chinese input assume that X and ...
2
votes
1answer
33 views

Why does the `users` command return different users depending on whether I ssh or open a new terminal?

How does users define what users are logged in? If I ssh into a box twice, I see my username twice listed if I execute users. However, if I create a new login shell via sudo su -, I do not see root ...
0
votes
0answers
11 views

Synchronize strings copied on vim with the xserver clipboard [duplicate]

How to copy a string in vim under terminal and get it available in the main clipboard? Seems that by default, is not possible to copy from vim to my browser, for example
3
votes
1answer
20 views

sudo command inside heredoc block in a ssh session is not working

When i use heredoc and put all the commands inside heredoc as, ssh -t -i master.pem cloud-user@$1 <<EOSSH sudo service x restart sudo service y restart EOSSH it throws error as, ...
0
votes
0answers
16 views

tmux doesn't resize with terminal window

When I resize a terminal window containing a tmux session, tmux doesn't detect this change, but continues to function normally within the old window boundaries. tmux ls shows no other attached ...
0
votes
1answer
21 views

gnome-terminal broke after adding command to initialize

I just broke my gnome-terminal. At the options I tried to force my terminal to open with 256 colors adding the command: export TERM=xterm-256color but now my terminal open and exits immediately. ...
0
votes
0answers
4 views

Keyboard's Control key detected as Primary

I use ArchLinux 64-bit, with these apps: xfce4-panel 4.12.0-1 xfce4-session 4.12.1-2 xorg-server 1.17.1-7 xorg-server-common 1.17.1-7 xorg-server-xwayland 1.17.1-7 xorg-setxkbmap 1.3.1-1 xorg-xauth ...
5
votes
3answers
183 views

How to display commands in a different terminal?

I have a raspberry pi with a screen attached to it. It boots up to a login prompt. I have no keyboard and no mouse attached to it and would like to keep it this way. I proceed to login to it via ssh ...
0
votes
0answers
18 views

Serial Console Log Redraw Characters [duplicate]

We have a server in our infrastructure that logs all serial output of devices. One of the main issues we experience with it, is that sometimes we get output that is virtually unreadable due to the ...
3
votes
1answer
94 views

terminal color theory

TLDR: What is the theory behind terminal colors? I have a fixed value of LS_COLORS in numbers: ...
3
votes
2answers
68 views

preventing terminal prompt from being overwritten by program output

Suppose I run a command like this in the terminal: ~$ echo 'sleep 2; echo "hello!"' | sh then start typing the next line. After two seconds the words "hello!\n" will be inserted into whatever I'm ...
5
votes
1answer
46 views

How to scroll up after a kernel panic?

While tinkering with a Linux VM I regularly get kernel panics, that push up all the helpful output with stuff I don't understand and that is probably not helpful to me. The panics mostly occur during ...
0
votes
0answers
29 views

How can I update or upgrade BOSS Linux by terminal?

I use EduBOSS Linux 3.0. Since installation I still not update my OS. But I want to solve some Audio, Video and Graphics problems. To solve that problems I want update my BOSS Linux. How can I ...
5
votes
2answers
71 views

How are terminal length and width forwarded over SSH and telnet?

When I view the length and width of my terminal emulator with stty size then it is 271 characters long and 71 lines tall. When I log into another server over SSH and execute stty size, then it is also ...
1
vote
1answer
18 views

keyboard shortcut for terminal opens and instantly closes terminal (konsole)

After upgrading to latest Kubuntu 15.04 my keyboard shortcut ctrl+alt+T no longer works. The konsole window opens and instantly shuts down. Different keybindings dont work either. Other shortucts like ...
0
votes
1answer
44 views

Compile OpenBroadcaster on Debian

Trying to compile obs on debian like here described: https://github.com/jp9000/obs-studio/blob/master/INSTALL gives me this error: Linking C shared library libobs.so /usr/bin/ld: ...
0
votes
1answer
60 views

What does this ls command do? [duplicate]

what does this command do if it was executed in my current working directory that has files in it? ls 2> result I think whatever ls writes will be redirected to the result file? Is that correct and ...
-5
votes
1answer
36 views

Find Command: display the file numbers [closed]

I have a couple of questions about the find command. How to show how many files and directories(only the result numbers) within the /var directory (and below) are owned by someone other than you or ...
2
votes
1answer
53 views

What happens step by step when using “rm -rf directory”? [duplicate]

Let's assume that I have 150 GB of data in a directory and I have accidentally run this command for a directory. Suddenly I realised, I should not put "/" in the beginning of directory and I ...
5
votes
3answers
151 views

cssh: change terminal from xterm to terminator

I would like cssh to use terminator terminal emulator, instead of the default xterm. In ~/.clusterssh/config I have changed the following line: #terminal=/usr/bin/xterm terminal=/usr/bin/terminator ...
2
votes
2answers
60 views

What allows a command to be typed while the previous command is still running in foreground?

Sometimes I have seen when one program (say A) is running in the foreground and printing its output to stdout, I can type another command (say B), and when I press Enter it is run, even though I had ...
0
votes
0answers
13 views

Changing from bash-4.3$ to [user@hostname currentfolder]# [duplicate]

I'm tring out different linux distros. I've settled on Fedora, but I'm a bit confused. On my other distros, my terminal would open up with a [user@hostname currentfolder]# before each prompt. Now I ...
0
votes
1answer
64 views

sudo apt-get update doesn't work

I am using ubuntu 14.04 LTS. when I run sudo apt-get update command in terminal, following error will appear E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) ...
1
vote
1answer
17 views

Resizing the terminal window for ipython command prompt

I am using the OS X Terminal (I know, not Linux or Unix, but hopefully that's irrelevant here) for a number of operations, and commonly use nano to quickly edit files. In doing so I often resize the ...
1
vote
1answer
42 views

Why is sudo slow when I mistype my password? [duplicate]

If I'm asked for the sudo password, after typing it in correctly, the terminal moves on almost instantaneously. However, if I mistype my password, it takes a few seconds before working it out and ...
6
votes
1answer
88 views

Terminal does not accept pasted or typed lines of more than 1024 characters [duplicate]

When I enter text on stdin in an OS X Terminal, a single line is limited to 1024 characters. For example, cat > /dev/null beeps after I type (or paste) a line longer than this, and refuses to ...
2
votes
2answers
206 views

How can I import new Unix commands on my OS X Terminal?

There are a number of Unix commands which do not work on my OS X Yosemite 10.10.3, Terminal Version 2.5.3. For instance, I often use this cheatsheet of Unix commands: ...
1
vote
1answer
20 views

LS_COLORS for 256-color terminal

I thought ls colors are defined as <file_type>=[<bg(40-47)>];<font_spec(0:5)>;<font_color(30-37)> but, I recently found this where there are more colors and colors are ...
2
votes
0answers
35 views

Terminal pty name according to the source IP address

Is possible to have some Unix (either just in Linux) 'engine' mounting the pts'es (terminals) names according to their IP (socket) source ? In the past we could map each physical ports to its tty ...