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
222 views

Cursor keys in bash in dtterm don't work as expected

I am trying to remap some of my keyboard shortcuts in bash. The problem is that when I try to display key code using Ctrl-V, not all keys work. For example, Typing Ctrl-V, then Home moves the terminal ...
4
votes
1answer
184 views

Send stdin to console and compressed file

I'm running a propietary program which generates text output. Kind of like a logger. logger I'd like to both view this output on the terminal to watch the server breathe, and send it to a text ...
2
votes
1answer
115 views

Why has the ANSI 3.64 standard been withdrawn?

From the Wikipedia "ANSI escape code" article: The name "ANSI escape sequence" dates from 1981 when ANSI adopted ECMA-48 as the standard ANSI X3.64 (and later, in 1997, withdrew it). Does ...
3
votes
1answer
945 views

Confused about Debian error message from su

On Raspbian, the Debian distro aimed at RPi, I end up getting the following error: $ sudo su -l root -c /bin/bash bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no ...
1
vote
1answer
2k views

Change the number of rows and columns in the TTY [duplicate]

I want to resize the terminal which comes up when you press CtrlAltF1 (or F2,F3,...). 25x80 is small for a 24" screen. Tried using stty, but the commands stty columns 200 and stty rows 50 does not ...
0
votes
0answers
57 views

Root has no permission on virtual console screen devices

Even being root I can't do the following: # cat /dev/vcs1 cat: /dev/vcs1: Operation not permitted And the rights are set correctly: # ls -o /dev/ crw-r--r-- 1 root 7, 1 Aug 5 22:00 vcs1 ...
0
votes
2answers
60 views

getting a gui program to start on boot

I have a C program I wrote for debian on the raspberry pi that asks the user to enter a number, 1-4 which it then stores in a configuration file. This only happens if the configuration file is ...
7
votes
2answers
7k views

How to mount removable media in /media/<LABEL> automatically when inserted, without any desktop environment?

I have a Debian sid system (Wheezy) (and same for arch), without any desktop environment (and no Xorg at all). I can mount my SD-cards, USB sticks, external HDD by label into a specified directory in ...
1
vote
3answers
119 views

how to make search a text on the terminal directly

I have a program that outputs some data to the terminal (via printf() ). Is it possible search a text on the outputed text on the terminal directly? It is possible to do search by directing the ...
2
votes
2answers
569 views

Get list of all files by mask in terminal

I want to find all *.h,*.cpp files in folders with defined mask, like */trunk/src*. So, I can find separately *.h and *.cpp files: find . -path "*/trunk/src/*.h" find . -path "*/trunk/src/*.cpp" ...
7
votes
5answers
16k views

Using the system date / time in a Cron Script

I'm setting up a Cronjob that will backup a MySQL database I have in my server, but I don't want it to keep overwriting the same file over and over again. Instead, I want to have an array of backups ...
4
votes
2answers
2k views

Switch between tabs in gnome-terminal with keyboard?

Once I've created a new tab in gnome-terminal with Ctrl+Shift+t, how can I switch back and forth between the tabs using the keyboard? For example, in Google Chrome the keyboard shortcut is Ctrl+Tab ...
3
votes
1answer
113 views

Why is “[ok]” not shown in daemon status message when using GNU Screen?

I have a debian-based system (Voyage Linux 0.9.1 actually, which is based on debian wheezy) and when I do /etc/init.d/ntp status it returns (for example) $ /etc/init.d/ntp status [ ok ] NTP server is ...
1
vote
1answer
206 views

Non-ASCII characters handled incorrectly on command line

I have a problem with non-ASCII characters in the Terminal on Mac. If I write: echo ÆØÅ Then press Enter, Arrow Up, Arrow Left, so the cursor is between the Ø and the Å, then write X, then the Å is ...
3
votes
1answer
236 views

Difference between a.out and ./a.out

My Confusion a.out is the output of the programs which I execute in my Ubuntu 12.10. In Red Hat system when I execute a.out in the terminal it executes. While in Ubuntu I have to execute ./a.out to ...
1
vote
2answers
743 views

Using mintty as default terminal on Cygwin and default shell as bash

There is already one answered the question at Best way to use a shell with Cygwin in Windows 7. That is to start Cygwin with C:\cygwin\bin\mintty.exe - With that $SHELL = /bin/sh How can I launch ...
6
votes
3answers
352 views

Looking for a centred, full-screen terminal

There exist out there several different 'distraction-free editors' for writing: these provide a fullscreen, minimal environment with the goal of forcing oneself to focus on the task at hand. I want ...
0
votes
0answers
26 views

hadoop namenode host login issue

hduser1@bycb4y1:/$ ssh -p 9000 hadoop-namenode Welcome to Ubuntu 12.04.2 LTS (GNU/Linux 3.5.0-23-generic x86_64) * Documentation: https://help.ubuntu.com/ Last login: Mon Aug 5 17:05:47 2013 from ...
2
votes
1answer
358 views

How to configure screen-restore in a terminal?

Depending on the terminal/environment following sequence has different effects: $ ls 1 2 $ man ls enter q Either I see last displayed man-page screen above the current prompt or the ls output and ...
2
votes
2answers
133 views

WhenI try to run in the terminal, I get the error:

when I try to run in the terminal, I get the error The command could not be located because '/usr/bin' is not included in the PATH environment variable. e..g. jeper@jeper:~$ clear Command 'clear' is ...
3
votes
1answer
117 views

How to disable flashing file names in rlogin

I have a strange problem with my rhel 6.4 system. If I do a rlogin to any of my machines, all the files in the remore machine will be flashing and it is so annoying. Can somebody please tell me how ...
2
votes
1answer
155 views

zsh adds tab character when autocompleting

I have zsh 4.3.10 installed on a RHEL 6.4 box. I'm not sure why this happens, but when I but Tab to autocomplete things, it also adds a tab character. For example: rocket@rhelbox www % vim vim ...
1
vote
1answer
161 views

Using ncurses for basic GUI on a process started inside an init script

I have a custom written application that runs on a embedded setup (buildroot). My application has to run every time the target device boots up and so I wrote an init script to do this and it works ...
5
votes
3answers
5k views

Backspace, Tab not working in terminal (using ssh)

When I ssh into another machine with Debian with my account(with sudo permissions), my backspace key generates some awkward symbols on pressing. Also Tab & del keys don't work too. On the other ...
0
votes
2answers
165 views

Pg Dn key returns tilde (~)

When I hit Page Down in terminal (I'm using Ubuntu 12.04), strangely I get the ~ (tilde) character. This is annoying especially when I searched my command line history and decided to go to the bottom ...
4
votes
1answer
258 views

Keyboard shortcut to copy current command from terminal to clipboard [duplicate]

Is there any way to copy current command (line typed in bash prompt) in terminal to X-clipboard without involving a mouse?
2
votes
1answer
200 views

highlighting text in shell

I have always been using below method to highlight background of text in shell . tput smso;printf " TEXT ";tput rmso; How can I achieve the same thing without using tput( I mean some way formatting ...
17
votes
4answers
10k views

How to attach terminal to detached process?

I have detached a process from my terminal, like this: $ process & That terminal is now long closed, but process is still running and I want to send some commands to that process's stdin. Is ...
2
votes
1answer
255 views

How to select a line of text in the archaic terminal browser - Links

I poured over this http://links.twibright.com/user_en.html#subsubch-html_options But so far does not seem like there is an key to select a line in the browser running in text mode. I would like to ...
1
vote
1answer
691 views

Kali Linux shows strange line of code using Bash command “set”

I have Kali8 installed - it is a Debian/GNU Linux ("wheezy") based distro - and when I use the Bash built-in command "set" to check my vars from X, like in LXterminal, everything works fine, but when ...
2
votes
4answers
821 views

How to replicate (fork) the current terminal

Say I am using terminal and have sshed to a remote machine and did something. How do I create a new terminal tab (or window) so I still has everything from the previous terminal window without having ...
5
votes
1answer
405 views

How do I get back to X?

I pressed some key combination and got a big full screen black terminal screen with a login prompt. After logging in, I tried startx to get the UI back, but got a message Fatal server error: Server ...
2
votes
1answer
243 views

cat >/path/to/file <<EOF drops some paste content, also patch <<EOF too. Why?

From time to time I like to use cat >/etc/configfile <<EOF thing, and paste content, then send EOF that will flush it into file. Its good with one or two lines, but when there's more of them, ...
1
vote
2answers
244 views

Getting specific line from terminal output

"Hmm, I need to edit file-i-must-edit-2, but I cannot remember where it is." locate file-i-must-edit /home/user/file-i-must-edit-1 /home/user/file-i-must-edit-2 /home/user/file-i-must-edit-3 ...
1
vote
3answers
624 views

How to execute more than one command in a newly opened terminal?

I have a script that I want to use to open new terminals and type commands in them. A command like gnome-terminal opens a new terminal. Also, if I do gnome-terminal -e myprogram1 it will ...
0
votes
0answers
99 views

How to manage TMUX sessions via files?

I'm finding the way to automatically save TMUX-session in file when I reboot my computer, and also I want TMUX to restore session from file if it's exist on start. Now I'm using the same method with ...
1
vote
0answers
85 views

How to setup keyboard shortcut that enters predefined text into X11 xterminal via SSH from mac OS?

I do a lot of remote programming on my CentOS linux server by opening an X11 xterminal window on my Mac OS, and SSH into the server. I'm looking for an easy to use method to enter a predefined text ...
2
votes
1answer
282 views

GNU Screen doesn't echo unicode characters correct

When I do this in my terminal: echo -e "\xF0\x9f\x8d\xba" I get a cool beer mug in my terminal: 🍺 However, when I start screen, and try the same, I'm getting a �. How do I get the nice beer mug? ...
1
vote
1answer
70 views

Where is the Ctrl+/ (^/) bash shortcut for undo defined?

I can not find the mapping in bind -p nor in stty -a. Also, it only works in the terminal emulators I've tried (xterm, konsole, gnome-terminal) and not in the linux system console. I think it's ...
2
votes
3answers
1k views

How to send to background a running process started with sudo?

I have just installed SLC6 (derived from SL6 derived from RHEL6). I can send a running process to the background by hitting Ctrl-Z in the terminal where it was started. However, I can't do it when I ...
12
votes
2answers
1k views

Can I configure bash to execute “clear” before every command typed in the console?

I would like to configure bash to execute clear command every time I type some command in the terminal (before executing my command). How can I do that? I'm using Debian Linux.
1
vote
2answers
161 views

Use a different shell by default in each terminal emulator

I would like to change the default shell in each terminal emulator separately. To clarify, I want Xterm to use TCSH, pterm to use pysh, gnome-terminal to use BASH, etc. Is this possible? If so, how ...
7
votes
1answer
209 views

How do I prevent system information from being displayed on a terminal?

I'm working on a curses GUI that is supposed to start up automatically on boot-up in the default linux terminal (I have no X server installed). I have this working great, but I have a problem where ...
4
votes
1answer
253 views

Konsole works, gnome-terminal doesn't?

I'm running on CentOS 5.7 (in case that matters) I have a program (not my own) that runs fine from Lonsole, but when I run it from xterm, gnome-terminal or rxvt, it just hangs. I'm doing this with a ...
4
votes
5answers
2k views

Is there a (light-weight) replacement for `rxvt-unicode`?

I am currently using rxvt-unicode as a terminal emulator. Since I also like the configurability of terminal emulators from GNOME and KDE, I wonder whether there is some kind of replacement for ...
2
votes
1answer
384 views

Use the terminal's autocomplete path feature for input to a shell script

I want to make a script that: (1) Gets a path giving the user the ability to use tab to autocomplete, then (2) gets a filename from the user, and then (3) creates a file at that path with extension ...
7
votes
2answers
323 views

Are there any linux terminals which can handle all key combinations?

I like to use emacs in terminal mode (-nw), but it seems most (all?) terminals can't handle some key combinations - for example, C-<RET> or C-M-%. I know this is because most terminals emulate a ...
2
votes
1answer
283 views

View song's title on terminal

How to view currently playing song's title on terminal using vlc media player?
0
votes
0answers
40 views

User drive is not showing

I'll try my best explaining this: /dev/disk0 /dev/disk0s1 /dev/disk0s2 disk0 does not show up at all, when I login even my desktop is completely blank with no dock nor toolbar so even to logout is ...
1
vote
0answers
79 views

Best way to view scripted session logs

I have aliases set up for SSH and minicom to call simple wrapper scripts which just ensure that I get a log of the session. The logs are stored in a specified directory, and named with a tag and a ...