Questions about using the command-line interface in Ubuntu.

learn more… | top users | synonyms

131
votes
8answers
7k 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 ...
77
votes
9answers
22k views

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

What is the difference between Terminal, Console, Shell, and Command Line?
54
votes
5answers
96k 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 ...
26
votes
5answers
42k 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. ...
23
votes
4answers
46k 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 ...
20
votes
1answer
9k 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? ...
19
votes
9answers
1k 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 ...
16
votes
1answer
540 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 ...
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
4answers
53k 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. ...
12
votes
2answers
18k 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?
12
votes
6answers
927 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 ...
12
votes
5answers
503 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 ...
11
votes
3answers
10k 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 ...
11
votes
4answers
40k 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?
10
votes
2answers
21k 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
1answer
13k 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 ...
9
votes
1answer
477 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 ...
9
votes
2answers
9k 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 ...
7
votes
2answers
65k 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 ...
7
votes
2answers
18k 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 ...
7
votes
2answers
419 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
2answers
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
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

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 ...
7
votes
3answers
1k 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
157 views

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

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: ...
7
votes
1answer
3k 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
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
1answer
10k 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 ...
5
votes
3answers
435 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
2answers
2k 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
32k 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
6answers
8k 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
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 ...
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
142 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
687 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
808 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
2answers
3k 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 ...
4
votes
4answers
2k 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/ ...
4
votes
2answers
2k views

How to exit the recovery console?

I was having problems with Ubuntu 11.04 freezing up with Firefox, then it was freezing up with other applications as well. At login I tried Recovery Console and now I can't get out of it. Ubuntu ...
4
votes
1answer
3k views

Can't change theme of ZSH in Ubuntu 12.04

I have changed the theme in my ~/.zshrc file however whilst some of the colors in the prompt change the text size and background color remain as the Ubuntu default. Any one know how I can override ...
4
votes
1answer
737 views

How to compare zip files' contents?

Is there any tool to compare zips by content? maybe some krusader addon or command-line magic?
4
votes
1answer
1k 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?
4
votes
1answer
857 views

How to establish wireless connection from command line?

Can someone please tell me how I can establish connection to my WiFi network from the command line? (My desktop GUI is fried.) I've tried the following: sudo iwconfig wlan0 essid NETWORK_NAME sudo ...
4
votes
2answers
4k 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 ...