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

2
votes
2answers
59 views

find closest matching folder

What is the best way to sort the results of $ find . -name scripts -type d by the occurrences of '/' and then choose the first result. I want to create a function that would cd down to a common ...
2
votes
2answers
112 views

Redirect output of less utility to a file

Here is what I did less -N file1 > file2 what I want is writting file1 into file2 with line-numbers option. But I failed with that. Any suggestion to do that? Why I failed to do it? Thanks.
2
votes
1answer
75 views

Unable to get back to bash prompt after strange command

I was messing about with different wildcards and ran the following command: ls testdir/!(*/) after which I was completely unable to get back to the bash prompt. None of ^C, ^D, or even ^Z worked: ...
0
votes
3answers
59 views

Delete all files that DON'T have duplicate names?

Given a large list of files, containing the following: FILE1.doc FILE1.pdf FILE2.doc FILE3.doc FILE3.pdf FILE4.doc Is there a terminal command that would allow me to remove all files that do not ...
0
votes
0answers
17 views

What is the difference between Uni1, Uni2, and Uni3 terminal font codesets?

I'd like to change my terminal font to any of: /usr/share/consolefonts/Uni1-Fixed15.psf.gz /usr/share/consolefonts/Uni2-Fixed15.psf.gz /usr/share/consolefonts/Uni3-Fixed15.psf.gz What is the ...
0
votes
2answers
40 views

grep for lines/files that contain exactly X chars

Here's the output of a grep command I ran: [user@localhost] : ~/Documents/challenge $ grep -i -e ".\{32\}" fileA fileB fileA:W0mMhUcRRnG8dcghE4qvk3JA9lGt8nDl fileB:observacion = new Observacion(); ...
0
votes
0answers
14 views

Weird UI glitching in VIM adjusting split bar

i just installed gvim on linux mint and I'm experiencing some weird UI glitch when adjusting the split bar and it also seems to happen when making changes to files in the editor. I have similar ...
1
vote
0answers
24 views

tmux select-pane -LDUR command - disable auto-cycling behavior

is it possible to disable the behavior which cause selecting a pane on opposite side of a tmux window if there is no more pane left in a direction select-pane command was originally triggered at? if ...
1
vote
2answers
25 views

Issue commands at the same time in several terminals

Desktop -> ssh -> Servers Are there any solutions to have several windows in my desktop and: If I issue a command in one window, the same command thing will be issued on other terminals too. So if ...
0
votes
0answers
19 views

Vi buffer contents stay on-screen after using screen commands

In shell terminal, echo $TERM --- prints xterm Now i do vi somedoc and exit, vi contents disappear from the shell screen and the shell's previously ran commands are visible. So far, all good. Now ...
2
votes
0answers
39 views

Eliminating trailing space on wrapped lines in a terminal

In some terminal sessions, a space is inserted where long lines wrap. When copying multiple lines with a mouse, the inserted trailing space on each line is included. When pasted, one must manually ...
1
vote
1answer
40 views

Send javascript to Chromium or Firefox from linux terminal

I am using either a chromium or firefox web browser in kiosk mode to log in to a website from boot up, and I want to use a javascript to send in a command to login to a website automatically. I know ...
-3
votes
1answer
36 views

How to solve terminal window [closed]

I am getting the following error: There was an error creating the child process for this terminal Failed to execute child process "terminal" (No such file or directory) Please help me resolve ...
0
votes
1answer
71 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) $ ...
0
votes
1answer
24 views

How does Elinks renders the HTML? [closed]

I like the elinks browser and I would like to know how does it render the HTML into text, using ANSII styles. I suppose there is a library behind elinks to handle the rendering, or it should be. Is ...
0
votes
1answer
41 views

Difference between tty and ttyS and pts and vcsa? [closed]

I can't understand what is difference among tty, ttyS, pts and vcsa? Are they same? when we connect a serial cable to a server which hosts unix-like operating system, which ones of these type of ...
1
vote
0answers
27 views

-devilspie doesn't play nice with spawning new terminals

I'm trying to configure devilspie so that on detection of opening a certain directory it runs a script to mount that directory over a network. I don't think the script itself is too important but ...
0
votes
3answers
42 views

ssh from screen leads to unknown terminal error

I'm trying to make an ssh connection (via lsh) from one Ubuntu host to another from within screen. If I try to run mc right after that I get the following error: Unknown terminal: screen-256color-s ...
1
vote
1answer
38 views

Tmux displaying quotes/messages on startup

I have installed tmux on Linux Mint Debian Edition and every time I start it or create a new pane/window it displays a random quote or message above the prompt. It's driving me crazy and I cannot seem ...
1
vote
1answer
56 views

Using cron to start a process on a terminal without using screen?

I want to start a process in a terminal using cron. I want the process to start in a terminal, so that I can continuously see the output of the process on the terminal, and kill it / restart it etc. I ...
1
vote
2answers
61 views

how to use nohup while still sending stderr to the terminal

nohup automatically redirects stderr to stdout, but I want to send it to the terminal (it shows progress). How can I do that?
5
votes
2answers
132 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
54 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
2answers
70 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
26 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 ...
1
vote
1answer
28 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
vote
1answer
46 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
76 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
32 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
20 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
90 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
33 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
25 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
31 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 ...
3
votes
2answers
348 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
122 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
1answer
62 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
50 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
10answers
417 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
60 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
25 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
38 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
54 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
54 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
26 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
8 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
257 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
131 views

terminal color theory

TLDR: What is the theory behind terminal colors? I have a fixed value of LS_COLORS in numbers: ...