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

8
votes
5answers
10k views

delete line in vi

How can I delete a line in VI? Here what I am doing right now: Open up the terminal alt + ctrl + t vi a.txt I move my cursor to the line which I wan to delete, then what key-combination is should ...
0
votes
3answers
327 views

Shell script testing through terminal simulation

I am developing a generic bash script which could be executed in different distro. I have only a CentOS virtual machine and I would be interested to test my script on a virtual terminal (online or ...
16
votes
9answers
1k views

How to make sure that a command is not interrupted, even if terminal is closed? [duplicate]

In Linux. Say I want to run a command and it takes too long. I just want to ensure it's done. How?
6
votes
2answers
622 views

Detect if running in a virtual terminal?

I'd like to autologin to tty1 on login and then use vlock to lock it. How can I detect from Bash if the current terminal is a console virtual terminal (e.g. tty1), so that I can put the vlock line ...
6
votes
1answer
287 views

Documentation on LESS_TERMCAP_* variables?

I see these pretty colors in manpages viewed with less when setting a bunch of these variables. What do they mean, where is the documentation? Is this interpreted by less or termcap? screenshot
0
votes
2answers
643 views

Rename file in Mac OS Terminal using Regex

Hundreds of images need to be renamed with a terminal command using regex on MacOS 10.9 Mavericks. The files are named this way: 0045AW489R3T(IPCAM)_0_20131124101245_931.jpg ...
0
votes
2answers
201 views

How to change background and text colors in Yakuake?

I like Yakuake, but I don't like the grey background color. I want to change the background and text colors of the Yakuake terminal. I checked the options, but the background color option is only ...
0
votes
0answers
21 views

Hotspot on Linux Not Working: Already in use?

I was following my own article, but after having activated the Hotspot as mentioned, I get the following error: Address already in use ...
1
vote
1answer
57 views

Installing Certain PPAs

I'm following my own article: Making a Wireless Hotspot When I put in sudo add-apt-repository ppa:nilarimogard/webupd I get the message Cannot access PPA ...
2
votes
2answers
127 views

Is it correct to set the $TERM variable manually?

I set the $TERM variable adding the line XTerm*termName: xterm-256color to my .Xresources file. When I did it I didn't know what exactly that meant (I was following an online guide to change the look ...
3
votes
2answers
4k views

How can I make PuTTY compatible with Solaris?

I'm connecting to a Solaris machine from WinXP using PuTTY. When I try to use the NumPad keys for editing a command in Bash (Home, End, Delete) a ~ character is instead printed to the console. ...
6
votes
1answer
576 views

How can I list the available color names?

I'm trying to add some color to my git configuration and I want to know what color names are available on the terminal. I only want to use colors by name so it's easier for others to understand I ...
-2
votes
1answer
51 views

Need some type of shortcut [closed]

So first thing, I am not good Linux really beyond mildly advanced commands. I need some type of short cut from one fake folder called SD-card to a real folder called system/advt so whenever something ...
9
votes
2answers
472 views

Alt-Left to skip words does not work in terminal emulators

On a Debian Wheezy machine at previous job, I got used to Alt+Left and Alt+Right to skip between words on active command-line (in bash). However, since at home I have upgraded to Jessie (Debian 8.0, ...
1
vote
2answers
61 views

Is there a way to keep an app running after closing the terminal that calls it? [duplicate]

Say I run an app from a terminal, but in some cases I want to close the terminal but hope the app keeps running. Is there anyway to do so in Linux? I just found that when calling an app via "exec ...
3
votes
1answer
42 views

How do I generate the sequence “\e[Z” in a terminal?

It is bound to menu-complete in GNU readline. $ bind -p|grep menu "\e[Z": menu-complete # menu-complete-backward (not bound) # old-menu-complete (not bound) I think it's Meta-something.
1
vote
2answers
1k views

How to see all commands executed by the current user, in all sessions/screen/byobu terminals?

If there is debian box, some users have access to the root account, some of those users open an ssh connection and start executing commands, some open screen or byobu or other similar tools to execute ...
3
votes
5answers
459 views

What are the special characters to print from a script to move the cursor?

I found that by printing \r from a script the cursor moves to the beginning of the line. What character will move the cursor up one line? Where is a list of these special characters? EDIT: Working ...
1
vote
1answer
38 views

Mysql import the most recent file from a directory

I have a directory with daily backups of my entire MySQL database. I want to import the most recent backup into the database. I know to import a backup I need to use mysql -u root -ppasswordhere ...
0
votes
1answer
82 views

Cancel SSH (after using it to browse) without logging out?

I'm afraid I'm not an expert on Unix and its command line (I'm using a Mac), so do bear with me (possibly an extremely stupid or basic question). I've used the command ssh -D 8080 -f -C -q -N user@IP ...
3
votes
1answer
86 views

Trailing spaces when copying from gnome-terminal using zsh

When copying text from gnome-terminal with zsh trailing whitespace is also copied. For example copying the following clearly adds a vertical scollbar on stackexchange site as trailing whitespace the ...
1
vote
1answer
89 views

Autocompletion and coloring not working, when using ssh in emacs shell

I'm connecting to remote server using emacs shell. Emacs shell displays directory listings with proper coloring and auto completion when working with local machine. But when I use ssh the ...
1
vote
1answer
90 views

Simulating READLINE_LINE in Bash < 4.0

I am trying to make some of my code bash 3.X compatible and I have a key-binding that utilizes READLINE_LINE inside its callback function. 3.0 versions of Bash don't supply the READLINE_LINE, so I ...
0
votes
2answers
960 views

$PATH in /etc/profile not inherited by user shell

I have this in /etc/profile in Fedora 17: PATH=$PATH:"/usr/pgsql-9.2/bin" EDITOR="/usr/bin/emacs -nw" PSQL_EDITOR="/usr/bin/emacs" PAGER="/usr/bin/less" export PATH USER LOGNAME MAIL HOSTNAME ...
11
votes
2answers
521 views

Can the empty spaces/background in a terminal be replaced with a random(but pretty) pattern of ASCII characters?

Context and Question There are many ways to colorize the terminal and shell environment. The output of individual commands, such as ls and grep, can also be colorized. Not directly related but ...
0
votes
0answers
347 views

Octave - warning: unable to open X11 DISPLAY

My setup is as follows: Octave 3.6.4 Mac OS X Mavericks 2009 Macbook Pro I'm trying to run Octave in Terminal, with gnuplot. I'm trying to plot matrices in a graph, as part of an online Coursera ...
6
votes
3answers
3k views

what is stored in /dev/pts files and Can we open those?

I am curious to know that what is stored in /dev/pts/ files . Can we open those files ? According to my knowledge /dev/pts files are created for ssh or telnet session .
11
votes
2answers
1k views

How does a Linux terminal work?

If you fire up a terminal and call an executable (assuming one thats line oriented for simplicity) you get a reply to the command from the executable. How does this get printed to you (the user) does ...
12
votes
2answers
10k views

What is the concept behind “tty” in linux?

Where did the terminology "tty" come from in Linux?
2
votes
1answer
56 views

Specify rows/columns of a fullscreen X terminal?

For presentations it would be convenient to have a X terminal which supports following workflow: make it fullscreen specify how many columns/rows should be displayed -> the terminal then ...
5
votes
2answers
281 views

issue with terminal/prompt

I have an issue where if I type in very long commands in bash the terminal will not render what I'm typing correctly. I'd expect that if I had a command like the following: username@someserver ...
9
votes
2answers
6k views

Shortcut key for scrolling inside a terminal

What is the shortcut key for scrolling inside a terminal? If I hit the Up or Down arrow or PageUp or PageDown, it will only traverse through command history, not let me traverse the previous part ...
1
vote
1answer
76 views

Change terminal type for screen over a serial connection

I am connecting to an embedded Linux board using screen over a serial link and trying to change the terminal type, as the default vt100 is pretty restrictive in terms of colours and scrolling etc. ...
6
votes
4answers
237 views

Prevent terminal from displaying previously executed command

I have a script that allows me to log random thoughts while working on a project. In the terminal I would add a new log entry by running $ @ "some random thought" where @ is just an alias for my ...
-4
votes
1answer
57 views

Why is learning command line imporatant? [duplicate]

I googled this question many times but could not find a good reason why the knowledge of command line is important.Some say GUI cannot be used always but there are no examples supporting their ...
1
vote
2answers
4k views

How can I get better-looking fonts in my terminal (URxvt)?

I've noticed that the fonts in URxvt look a little bit low-res compared to fonts that I see in my browser, for example. I was wondering how could I fix my .Xdefaults file to make the fonts have a ...
3
votes
1answer
79 views

Spawn a new terminal window from the terminal

Is there any terminal command I can execute that will pop open a new terminal window? I need something that will work in OSX' Terminal.app, but it would be nice if there were a way to do this that ...
0
votes
1answer
936 views

What is the .screenrc file for?

What is the .screenrc file for? I have seen it in some dotfiles repos and such but I don't quite understand what it's for. Judging from the name it sets settings for the Terminal itself, not the ...
0
votes
2answers
305 views

How to exit file reading mode in linux terminal?

I appologize if its something really stupid i am asking. But this is my first day on linux commands infact I dotn have linux right now I have just installed CYGWIN for my learning. SO my question is ...
0
votes
0answers
143 views

What are these strange characters in wifi-menu and alsamixer?

I have a fresh install of Arch. When I run wifi-menu or alsamixer, both of which I think use dialog, the display in the shell is not correct. The border, for example, is drawn with the wrong ...
0
votes
1answer
62 views

In Fedora, how do I turn off the automatic dictionary suggestions?

I just installed Fedora 19 in VirtualBox using an image from virtualboxes.org. It suggests words from a dictionary wherever I type. It's slow and it won't let me type what I want, since it ...
1
vote
1answer
46 views

Can I increase brightness of text in Arch shell?

I just installed Arch Linux. All I have right now is the shell. The text is very difficult to read on a black background. My eyesight is fine. Can I change the brightness of the text, or can I ...
1
vote
0answers
319 views

GConf-WARNING **: Client failed to connect to the D-BUS daemon: Unable to autolaunch when setuid

I am encountering a strange error whenever I run certain commands, for example, sudo apt-get install ______ and I receive the following error: (process:28847): GConf-WARNING **: Client failed to ...
2
votes
1answer
133 views

Garbled text in tmux menus

I am trying to use the st terminal, but after starting tmux (or screen) in a remote ssh session, the text becomes all garbled. Exiting tmux/screen makes text normal again. Now, I have found that this ...
1
vote
1answer
314 views

Echo/Printing text in the color of a given hex code (regardless of Xresources/Xdefaults)

is there any way to echo/print text in the color of a given hex code (#000000, #FFFFFF, etc.) regardless of one's own Xresources/Xdefaults color definitions? Like, if Bob had in his ...
1
vote
0answers
98 views

Aptitude installing jre

I am trying to install jre on my debian 7 kali box, but I keep getting these faulty errors. I tried installing it through aptitude and it fails at the end. The result is: dpkg: error processing ...
3
votes
4answers
201 views

Show video files with its size

I need all the .mp4 files' dimensions to be printed with the file name. For example: 1_VIDEO.mp4 1204x680
29
votes
1answer
780 views

What happens when Ctrl + Alt + F<Num> is pressed?

I am looking for an explanation of what happens in Linux when this key combination is pressed to change the current terminal. In particular, what software component intercepts this key combination and ...
2
votes
3answers
953 views

Pasting binary data into a Unicode terminal

I need to be able to paste binary data into a terminal. For some reason, every byte outside the ASCII range (0x80-0xff) is pasted as the same three byte sequence 0xef 0xbf 0xbd. For example: $ echo ...
1
vote
1answer
64 views

Capture textual snapshot of pseudo terminal

My question is related to Keyboard and Console, but I want to do it for an arbitrary pseudo terminal, and not just the built-in Linux ones. Also, I'm not interested in a stream, I just want the ...