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

4
votes
1answer
262 views

How to draw a single pixel in a terminal?

Until now I used characters to draw images, shapes etc in a terminal. Is it possible to draw a single pixel? Let's say: foo 1 1 red This will draw a red pixel at the coordinate (1, 1). Is there ...
4
votes
5answers
4k views

How to change title in gnome-terminal profile

I know how to load a specific terminal profile as well as loading a config file that the terminal reads, but every time I try to set the title and save the config file, it still returns to the ...
448
votes
3answers
85k views

What is the exact difference between a 'terminal', a 'shell', a 'tty' and a 'console'?

I think these terms almost refer to the same thing, when used loosely: terminal shell tty console What exactly does each of these terms refer to?
53
votes
7answers
3k views

How safe is it to cat an arbitrary file?

Sometimes when I cat a binary file by mistake, my terminal gets garbled up. Nothing a quick reset can't fix, but couldn't an attacker theoretically create a file that, when displayed on a terminal, ...
0
votes
1answer
424 views

Change size of pantheon terminal

I haven't found any settings with regard to terminal size and I hate to keep resizing every time I want to use it. How can I change the size of the terminal?
9
votes
5answers
4k views

How can I open a new terminal in the same directory of the last used one from a window manager keybind?

I'm using a tiling window manager and I switched from gnome-terminal with multiple tabs to multiple urxvt instances managed by the window manager. One of the features I miss is the ability to open a ...
2
votes
1answer
63 views

Play .wav when text scrolls in terminal

After watching a TV show, I came up with a fun idea. Is there a way to take that cheesy high-pitched sound effect they play every time text scrolls down a command-line screen on TV and play it when ...
13
votes
2answers
4k views

tmux, TERM and 256 colours support

Introduction My question arises from the necessity of understanding why I have now (after multiple trials) Terminal and tmux supporting 256 colours and tput colors telling me there are only 8 of ...
6
votes
1answer
312 views

What exactly is 'scrollback' and 'scrollback buffer'?

What are "scrollback" and "scrollback buffer" in programs like bash and screen, and how do they relate to the tty, the programs being run, and stdin/ stdout/ stderr? Here is the only definition of ...
3
votes
2answers
2k views

How to change the width of remote serial console?

I followed this tutorial and now I'm able to connect to serial line. Now I want to change the width of terminal. How can I do this by using screen or minicom or something else?
8
votes
3answers
5k views

How can I hook on to one terminal's output from another terminal?

I need to hook onto output of currently running terminal (tty1) from virtual terminal and capture it (running X server). I'm pretty sure such a thing is possible by simpler means than debugging ...
-1
votes
1answer
108 views

How to control network bandwidth using Linux [closed]

Currently my Internet is really slow. But I want to allocate all resources to a browser that is loading a movie. How do I do that?
3
votes
1answer
173 views

Stop printer jobs from terminal

I am working with an old CentOs version (5.0) that is not really my machine. Recently, for some dark reasons, I have problems in printing. The jobs rest in queue, and I cannot cancel them from the ...
2
votes
1answer
619 views

Garbage characters appear on screen when typing

When typing, garbage characters somehow appear on the screen for all the letters that I type. The garbage character is a small rectangle box, and this prevents me from executing any commands on the ...
1
vote
1answer
221 views

What does typing a single apostrophe do in terminal? [duplicate]

I typed in a single ' by accident and I got this as a result and exited out of it after typing ' in again. ' > > ' : command not found What does this do?
1
vote
1answer
77 views

Control + L not clearing screen

When I try to clear my terminal screen on OSX: computer@ ~ () $ ^L And when I hit Enter after that it just shows: -bash: : command not found Any ideas on how this happens? My .bash_profile, ...
7
votes
3answers
496 views

How to permanently change both STDOUT and STDERR color to grey?

This question is similar to Can I configure my shell to print STDERR and STDOUT in different colors? But I am looking for a solution that will allow me to change both STDOUT and STDERR to ONE color. ...
62
votes
4answers
6k views

What is the point of CTRL-s?

CTRL+s stops all output to the terminal which can be restarted with CTRL+q. But, why does CTRL+s exist in the first place? What problem was trying to be solved by putting that control sequence in ...
10
votes
2answers
798 views

disable CTRL-D window close in terminator (terminal emulator)

I am often logged in through multiple SSH sessions. To logout from my sessions, I press CTRL+d, until I am back on my local machine. However, sometimes I press once too many, and my terminal exits. ...
5
votes
1answer
95 views

Copy/paste across vim without X

In vim, "+p pastes from the system clipboard. However, when working remotely over SSH on a non-GUI box, this is not available. Is it possible to implement copy/paste in this environment? Merely ...
2
votes
0answers
19 views

Running Custom commands in a Terminal Application [duplicate]

I'm running a terminal application in /dev/pts/X terminal that has its own console as:         What I need is to run commands specific to this application but from ...
1
vote
1answer
901 views

How to change terminal character encoding

Today I uninstalled the GUI packages on my home CentOS installation. Now, when the machine starts, I get the login prompt. It acts finicky. Sometimes pressing enter just once after answering each ...
17
votes
2answers
693 views

How do I start all shell sessions in a directory other than $HOME?

When I open my non-login shell in Ubuntu, my present working directory is /home/user_name (my $HOME environment variable), but I want to change this such that when I start my terminal I am in some ...
14
votes
3answers
1k views

Using variables to store terminal color codes for PS1?

In my .bashrc, I use ANSI terminal color codes to colorize various bits. It looks like this: PS1='\u@\h:\w\[\033[33m\]$(virtual_env)\[\033[32m\]$(git_branch)\[\033[0m\]$ ' where virtual_env and ...
1
vote
1answer
48 views

Is it possible to switch the user logged in to desktop environment via the terminal?

Is there any possibility to login as a different user while changing also the environment (or how do you say the wallpaper, shortcuts,...) via terminal command like su, ssh or login? Like when you ...
8
votes
2answers
12k views

Connect to a Bluetooth device via Terminal

I'm using Mint 15 w/ cinammon. I bought a set of bluetooth speakers and i'm tring to connect to them via terminal. Via GUI i can see them normally and i am connected to them. I want to make a small ...
0
votes
2answers
68 views

Why do I have to execute bash programs with ./? [duplicate]

Why is it that some bash programs will only run on my system when I type ./ before their name? An example: In my [...]/android/sdk folders I have to execute adb like this: ./adb devices Why not ...
3
votes
0answers
56 views

Is it possible to save the state of open terminals?

When working on certain projects, I routinely open a number of terminals, navigate each of them to various directories and resize and position them on my desktop. Is there any way to save this ...
2
votes
2answers
3k views

Endless data loop from dev/ttyUSB while sending AT commands

I have problem sending AT commands to my USB modem. At first I tried php-serial class, but when i was reading data, I got endless loop with strange data. Then I tried to debug problem and opened putty ...
4
votes
2answers
765 views

mounting local network folder in Ubuntu

I add a folder in /etc/fstab: //172.30.12.37/test/ /home/my/test cifs user=afs,pass=123456,auto,exec,umask=002,gid=1000,uid=1000,file_mode=0777,dir_mode=0777 0 0 Now test link can be seen in ...
2
votes
0answers
328 views

How to enable Control key combinations for GNU screen on putty?

I am accessing a linux box via ssh using putty. Key combinations work fine when I'm not running screen. However, Ctrl key combinations do not work under a screen session. In fact, a Ctrl-any key is ...
12
votes
3answers
6k views

Telnet send Ctrl-C

I use telnet to connect to a terminal server, which proxies the traffic to a RS-232 port. Unfortunately when using some of the devices it is not possible to send the CTRL+C character (0x03). Instead ...
1
vote
1answer
374 views

Why CTRL+L in Terminal won't clear screen like cls in Powershell

I compared the CTRL+L in the Linux Debian terminal and the cls in Powershell. When I pressed CTRL+L, it doesn't really clear the screen, it just prints newlines a few times. But when I type cls in ...
2
votes
1answer
78 views

What modern terminal programs are still configurable per-invocation? [closed]

What terminal programs have the following characteristics? Unicode support geometry, fg/bg colours, other options settable from command line on a per-invocation basis actively supported ...
0
votes
1answer
54 views

Switching to tty changes mouse speed - why / how to change?

I like using a fast mouse, so I use xset to speed it up, more than possible with the normal gnome settings. When I switch to a tty and back to Gnome, my mouse is really slow again (changed to default ...
8
votes
2answers
1k views

Kernel Mode Setting vs. Framebuffer?

With KMS, the graphics drivers are moved into the kernel. Since the framebuffer was already in the kernel, I wouldn't expect this to affect framebuffer operation. Yet, I read that KMS supercedes the ...
1
vote
2answers
57 views

How to get text at start up of terminal

How to get text at start up of terminal as shown in this image.It should show whenever i open terminal.
0
votes
1answer
116 views

tmux: ncurses apps are displayed wrong (with garbage and so on) [duplicate]

I have ncurses apps (say, aptitude) working nice in plain xterm (or gnome-terminal, or any other terminal I've tried), but if I run it inside tmux session, screen isn't properly refreshed while I do ...
6
votes
2answers
304 views

if statement in .bashrc not working correctly

I set up .bashrc to show a long prompt if the terminal is at least 80 characters wide. Otherwise it shows a degraded, smaller prompt. I use an if statement to achieve this: dp_smaller_than=80 if [ ...
4
votes
2answers
2k views

How to change font colors in terminal?

I know how to change the font color via preferences, but it changes the color of ALL text, as in below:     What I'm going for is something more like this:     Any ...
0
votes
0answers
28 views

'Refresh-save' a file, dock problem?

A bit of context: I followed the bug reports on Docky (link1, link2, and all the other links in these links...) and managed to make Plank recognize IntelliJ IDEA using the right StartupWMClass on the ...
0
votes
2answers
304 views

How to install most recent version of Eclipse via the Terminal

I'm new to Linux and have just been given a VM of Oracle Linux to work with. I need to install Eclipse on it and, after a bit of research, discovered that this could most easily be done with the ...
3
votes
1answer
72 views

Interrupting very long output in tmux

In a (gnome) terminal, if I cat a file which turns out to be much too long, I can always press Ctrl-c to interrupt. However, in tmux, when the same happens, it takes long for the signal produced by ...
7
votes
4answers
489 views

Stopping output from a program run in SSH session NOW

Problem I execute command that outputs LOTS of information through SSH. For example, I foolishly add debug information inside a loop that executes million times, or just run cat /dev/urandom for ...
0
votes
0answers
13 views

How to use stty to bind alt/option j to stop current process [duplicate]

I know stty intr ^j will bind Ctrl+j to do intr, but I want to bind this to Alt+j or Option+j. Any one know how to do this?
0
votes
0answers
183 views

VT100 terminal emulation to use with a Java-based 8-bit computer emulator

I'm successfully using GNU Screen as serial terminal to "talk" to my Altair 8800 clone (http://altairclone.com/) using serial line. The command I use is: screen -istrip /dev/ttyUSB0 Screen does the ...
15
votes
4answers
12k views

Dark blue color in vim or ls output in linux

I have a problem with dark-blue color in vim or ls output. Because I'm using black background color, words colored in dark-blue are almost completely invisible. How can I address this problem?
19
votes
5answers
60k views

How to find application's path from command line?

For example, I have git installed on my system. But I don't remember where I installed it, so which command is fit to find this out?
1
vote
2answers
167 views

Gnome Terminal appearance

Is it possible to get the gnome-terminal in GNOME 3 to be borderless, similar to how urxvt looks? Without the big top of it that says Terminal with your working directory or the menu bar?
3
votes
1answer
578 views

command line method or programtically add ssh key to github.com user account

Is there a way to identify with a username and password to github.com servers for the purpose of adding an ssh key to the github user account? So far everything I've read suggests that a users ssh key ...