Discussions on Linux system console in Ubuntu, as well as on TUI (text user interface). Questions about command-line interface shall be tagged with (command-line), about specific commands and text-interface programs – with tags appropriate to specific problem.

learn more… | top users | synonyms

209
votes
10answers
12k views

Terminal 'incognito mode'?

I use Terminal a lot, and sometimes I am running commands, which aren't things I don't want others to see, but more commands that if I accidentally arrowed up to and accidentally executed would cause ...
100
votes
10answers
45k views

What is the difference between Terminal, Console, Shell, and Command Line?

What is the difference between Terminal, Console, Shell, and Command Line?
67
votes
5answers
136k views

Running programs in the background from terminal

How do I run a program in the background of a shell, with the ability to close the shell while leaving the program running? Lets say my UI is having problems or for some reason, I need to boot up a ...
38
votes
3answers
62k views

How do I change the color for directories with ls in the console?

On my console the color for directories is such a blue, that it is hard to read on a dark background. How can I change the color definitions for ls?
31
votes
7answers
62k views

How do I increase console-mode resolution?

I've recently clean-reinstalled Maverick on my computer. It uses propietary Nvidia drivers. Everything runs just fine, except that I'm seeing lots of ugly text when booting and shutting down Ubuntu. ...
30
votes
4answers
62k views

What is the default Debian/Ubuntu console (TTY) font called?

I'm currently running Ubuntu and a few other Linux distributions on my computer and since I use the TTY a lot, a good font is pretty important! Does anyone know the name of the default console/TTY ...
26
votes
1answer
10k views

Can I change the Linux console (Ctrl+Alt+F1) font to Ubuntu Mono?

Is there a way to set a specific TTF font to be used on the console? (I believe you might have to convert it to a bitmap font?) If it needs to be converted, what tools can I use to do the conversion? ...
25
votes
9answers
3k views

How to display more than 1 terminal simultaneously

Sometimes when I work I use more than one terminal and I find it inconvenient to switch between them when all of them were invoked using Ctrl+Alt+T. I wonder if there is any program or terminal that ...
17
votes
1answer
570 views

How do I produce a É character in the tty login prompt?

TL;DR : How can I produce a É character in the tty login prompt ? Long story : Ok so I was playing with the application "Unity Tweak Tool" to discover some nice features but at some point the whole ...
16
votes
3answers
19k views

Prepend current git branch in terminal

How can I configure the terminal to display the current git branch? I'd like to see the second line rather than the first: andy@bob:~/my_projects/project_x$ (master)~/my_projects/project_x$ I ...
15
votes
3answers
13k views

Debugging: Console Output and Upstart Scripts

How do you send the output of an upstart script to a terminal so to find tracebacks in python code? It's taking me for ever to do things without trace-backs that used to take just a second. I'm ...
14
votes
4answers
74k views

Proper way to change terminal resolution in Ubuntu Server 13.04? [duplicate]

I'm running Ubuntu Server 13.04 in a VMware VM running only in command-line mode (i.e. no GUI). It defaults to a 640x480 screen resolution, but I'd like to increase that to either 800x600 or 1024x768. ...
14
votes
5answers
557 views

What keypress will take me to tty13?

Trying out Ubuntu Intrepid, I have discovered that RightAlt+F1 doesn't take me to tty13. I've exhaustively tried every option presented to me in dpkg-reconfigure console-setup, the best I've been ...
13
votes
2answers
6k views

How to stop gedit (and other programs) from outputting GTK warnings and the like in my terminal?

I am running awesome on trusty after having upgraded from raring. My desktop environment intentionally does not have all the Gnome / Freedesktop daemons running—I don't want them. When I execute ...
13
votes
0answers
21k views

How do I boot into console mode? [duplicate]

In previous versions of Ubuntu I could get the computer to boot into console mode by setting the variable GRUB_CMDLINE_LINUX_DEFAULT to "text" in the file /etc/default/grub and run sudo update-grub. ...
12
votes
6answers
1k views

How can I grep through tab completion possibilities?

When I press tab in a console I get this output Display all 2957 possibilities? (y or n) Is there any way to use grep on these 2957 possibilities? I would like to search for all commands with ...
11
votes
5answers
54k views

How do I start the MySQL console in XAMPP?

The XAMPP installation is done. XAMPP is up and running. What about the MySQL console? How is possible to start the MySQL console to run some special SQL statements?
11
votes
5answers
12k views

What is the bash equivalent of DOS's pause command?

I need a pause on a shell script to show a warning before continuing. For instance, on DOS it goes like this: doit.bat: [...] echo 'Are you sure? Press Ctrl-C to abort, enter to continue.' pause ...
10
votes
2answers
24k views

How can I increase the console resolution of my Ubuntu server

I am running an Ubuntu server inside VMware workstation, when I run the VM the screen is really small. I want to increase it to something that fits in the whole VMware console. I tried changing the ...
10
votes
3answers
1k views

Faint clicking sound as console text is scrolled

This is a strange thing I've noticed across several different computers. When I have a console session open, every time I scroll (say in a pager) there's a faint click for every line that goes by. It ...
9
votes
2answers
29k views

How do I disable messages or logging from printing on the console/virtual terminals?

My wireless driver is noisy. It prints out messages to the console every 10-30 seconds. So, if I'm working on VT1 or something, I get messages scrolling by all the time. Is there a way to shut this ...
9
votes
1answer
489 views

How do I stop displaying “warranties” notice when logging in on tty1 console

That messages the ubuntu displays about warranties and suggestions for help. The only thing I want to see is the version and status of updates. Actually if someone can tell me how to create my own ...
9
votes
4answers
1k views

How to find out who is using the physical console?

I would like to use a script to find out the username - of the user who is currently on the physical console (who has command of the keyboard, mouse and graphical display)? I do not just want to ...
8
votes
2answers
72k views

How can I set my Ubuntu 12.04 LTS to boot to console without GUI? [duplicate]

So I installed Ubuntu server to run some tests on a VM. For various reasons I couldn't get a specific DEB file, and instead of using a shared folder I decided it would be a good idea to install ...
8
votes
1answer
498 views

How do I get cmatrix to turn on after a certain period of inactivity in console? [duplicate]

I have got the console screensaver cmatrix, and I was wondering if there is anyway of getting it to turn on after a certain amount of inactivity in the console you are in? OS Information: No LSB ...
7
votes
3answers
20k views

Recommended console ftp clients

Are there any full featured console (command line) ftp clients? I'm moving parts of a website from one host to another. One server has ssh shell access (and thus scp, sftp, etc.), the other only ...
7
votes
3answers
3k views

Is possible to run the jsc (JavaScriptCore) utility from the command line in Ubuntu, like in OSX?

In OSX there is a hidden utility called jsc, part of WebKit, that can be used to run JavaScript code on the command line. It can be used as a JavaScript console, like irb for Ruby. I have the ...
7
votes
2answers
421 views

Add some default text to Ctrl-Alt-F1 console to remind myself how to reboot properly

I do know there are questions and good answers, what to do if Ubuntu just hangs (like this one: http://ubuntu.stackexchange.com/questions/4408/what-should-i-do-when-ubuntu-freezes). My problem is that ...
7
votes
10answers
58k views

How to use sshpass?

I need to use sshpass to launch a remote command through SSH from a Java code. If I manually type in a console: ssh -p 22 user@ipaddress mplayer '/media/data/myFavouriteSong.mp3' works perfectly, ...
7
votes
1answer
2k views

How to hide console messages on shutdown?

I'm using Ubuntu 10.10 with kernel version 2.6.38-020638-generic. On the shutdown process when the desktop wallpaper is gone, there is always a black console printing some messages and then the ubuntu ...
7
votes
2answers
2k views

TTY[1-6]: Lock screen after delay (like a screensaver)

When using the virtual terminals on TTY 1-6 [*], it's sometimes easy to forget to log out: The screen goes blank after a while, but I'm still logged in - no password required, anyone can use my ...
7
votes
1answer
11k views

Partition tool with console UI (as in server installation)?

Back in 2006, Ray (3DLover) posted the same question in: http://ubuntuforums.org/showthread.php?t=309680 but none of the answers were really useful. Now with a little help from AskUbuntu community, I ...
7
votes
1answer
4k views

How can I set and get the tty console font? [duplicate]

1.How can I set the font and size of the TTYs? The command: dpkg-reconfigure console-setup allows me to choose certain fonts/sizes that cannot be installed (an error message appears after the ...
6
votes
2answers
5k views

How to pass text file contents as argument to console application?

What is the command line to run a console application with input argument fed from text file? text_file: This is a simple text file with characters and other symbols including tabs and new lines ...
6
votes
3answers
1k views

Connecting to WPA2 network from console

How can I connect to a WPA2 Encrypted Network from the Terminal/Console? I've wanted to remove the whole x-window system and use a Terminal based system only to free up any available memory and ...
6
votes
3answers
1k views

How do I compile/run C++ code in the console?

I'm trying to run my C++ code using the console. I used the header file conio.h like I did when I used Turbo C++ IDE in Windows, and I ran the code in console using g++ filename.cpp I have ...
6
votes
2answers
7k views

How to enable display of framebuffer images (e.g. in w3m, fbi) within byobu (pts)?

I'm trying to run a minimal Ubuntu 13.10 installation without X Window System on my old laptop. One of the most useful tools I rely on in this setup is byobu; however, it seems to prevent me from ...
5
votes
3answers
763 views

Amendable console output in Python

Some programs are able to amend console output, wget easily comes to mind. How can I do that in pure Python? I know IPython has clear_output(). I tried that but even that does not work. And I would ...
5
votes
6answers
10k views

How to copy command console text?

I have used the wpa_passphrase command and I get something like this: network={ ssid="blahblah" #psk="moreblahblah" psk=d5e532ecca53ea963e5b3b5521bb3682c53fcf5b6d55f15622027145c795b661 ...
5
votes
2answers
3k views

How to set env with a dot?

I tried doing that with export and set env, but it did not work. how to do it? for example ~/directory$ export a.home=1 bash: export: `a.home=1': not a valid identifier
5
votes
2answers
37k views

How to show java plugin console

In windows, when I open a web page containing applet, icon of java plugin console is displayed in systray. But in Ubuntu, I don't find any way to show java plugin console. How can I open java plugin ...
5
votes
4answers
3k views

Console-based markdown reader

I am working on a remote server that only has a terminal support. There are certain markdown files that I would like to read. However, as I don't have a GUI support, I am in need of a markdown reader/ ...
5
votes
1answer
43 views

How to make a computer running on runlevel 3 ask for password when waking up from suspend in X?

I have recently set runlevel 3 as a kernel parameter instead of runlevel 5, though this has caused a little bit of a problem... Because when I execute startx and then once the GUI has loaded, if I ...
5
votes
1answer
3k views

Starting awesome-wm when using startx?

I uninstalled gnome-session-fallback and gdm, when I start the machine, it boots in console mode. I can log in normally. Using startx starts up the remnants of GNOME that are still on my machine (a ...
5
votes
1answer
2k views

Redirect stdout and stderr to separate screens with dual monitors

In ubuntu, How to dedirect stdout and stderr to separate screens with dual monitors?
5
votes
1answer
153 views

How do I Record a console session?

I know how to get to the console on my computer by pressing Ctrl Alt F1 - F6. When I run a screen recording program and switch to console and then switch back by pressing Ctrl Alt F7, I save the ...
5
votes
1answer
964 views

How do I write unicode charcaters in console mode?

I know that I'm available to write unicode characters in a terminal application by pressing ctrl+shift+u + unicode hex value, but I don't know how to input ` (the grave accent for example), or any ...
5
votes
3answers
1k views

Make GDM accessible only remotely via XDMCP, while console remains in text mode

I have a 10.04 server and I have installed gnome-desktop on it so that I can do some of work in a nicer way. I connect to gdm remotely via XDMCP (Hummingbird Exceed) but at the same time I want the ...
4
votes
5answers
873 views

How can I run a program and watch its activity using top?

I have a small program which I compiled myself. It’s CPU intensive, so I want to watch the CPU usage when it’s working. However, when I run ./myprog, I can’t run top immediately and sequentially.
4
votes
4answers
301 views

How to copy a line in vi and paste it to console?

There is a text file with bash commands. Is there a way to copy a line from that file using vi and paste it to console? It may be nano as well. It is console only server installation. No mouse to be ...