Questions about using the command-line interface in Ubuntu.

learn more… | top users | synonyms

59
votes
8answers
7k views

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

What is the difference between Terminal, Console, Shell, and Command Line?
38
votes
4answers
50k 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 ...
20
votes
4answers
23k 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. ...
17
votes
1answer
6k 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? ...
16
votes
4answers
28k 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 ...
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
757 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
430 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 ...
10
votes
3answers
772 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
3answers
7k 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 ...
9
votes
4answers
905 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
17k 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 ...
7
votes
4answers
26k 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. ...
7
votes
1answer
7k 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 ...
7
votes
2answers
406 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
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
3answers
977 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 ...
6
votes
2answers
52k 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 ...
6
votes
4answers
24k 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?
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
2answers
5k 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 ...
5
votes
2answers
1k 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
2k 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 ...
5
votes
1answer
2k 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
8k 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
1answer
128 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
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 ...
5
votes
1answer
3k views

How can I set and get the tty console font?

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 ...
4
votes
2answers
23k 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 ...
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
2answers
907 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 ...
4
votes
1answer
2k 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
347 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 ...
4
votes
3answers
1k 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
1answer
752 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
1answer
2k views

Help fixing Virtual Console (tty1-6) under VirtualBox

I updated my Ubuntu from 10.4 to 11.10. (Huge mistake, I know.) I am unable to view my virtual consoles ttyS1- ttyS6 This happens inside VirtualBox and gdm is running in background. I'm not sure ...
4
votes
0answers
140 views

CompizConfig and gnome-terminal [duplicate]

Possible Duplicate: How to set the terminal to open maximized Place Windows > Fixed Window Placement > fixed placement mode I have added Window class=Gnome-terminal Mode = ...
3
votes
4answers
1k views

How to select and copy content from the terminal (ATL + CTRL + F1)

When in the 'lower level terminal' (not sure how this is called), the one opened by pressing Ctrl + Alt + F1, how can I copy the content of the command I used there, since there is no mouse and I can ...
3
votes
1answer
3k views

Screen went black

I'm new to Ubuntu.. I'm not sure what just happened, but the screen just went black with the text: Ubuntu 11.10 "my computer name" tty4 and I was asked to log on. It happened when I closed Chrome ...
3
votes
2answers
1k 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 ...
3
votes
2answers
2k views

How to config hotkeys for switching between consoles in ubuntu

By default switching between consoles is evaluated by keys CTRL+ALT+Fx (1-6) How to change these hotkeys? Is there any config file for doing this?
3
votes
1answer
347 views

launching a program from bash causes bash to go to new prompt

When I run a program from the console, e.g. me@box:~$ firefox I expect the console to log error messages (I think this is std out or std err?) and other items from the program, firefox in this ...
3
votes
2answers
302 views

alt-tab completion while using SSH

I just recently discovered that pressing alt-tab on a console window allows me to autocomplete from the last commands and parameters I used. Very useful! But when using SSH from Windows this feature ...
3
votes
1answer
10k 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 ...
3
votes
1answer
109 views

Copying code directly into the console with keyboard shortcuts [duplicate]

Possible Duplicate: Making Ctrl+C copy text in gnome-terminal? I am have installed Ubuntu 10.04 right now, and I am getting quite a bit of code examples from my browser, Firefox, where the ...
3
votes
1answer
51 views

How to zebra stripe the console?

I'd like the terminal to alternate the background color on successive lines, making it easier to see where one starts and the next one ends. This would be specially useful when reading logs with tail ...
3
votes
2answers
734 views

Can I play movies without X launched?

I know that I dont need a GUI for browsing Internet (using Links) but what about doing other things like playing movies, music and pictures slide shows. Is it possible to do that in a text mode ...
3
votes
1answer
521 views

How to compare zip files' contents?

Is there any tool to compare zips by content? maybe some krusader addon or command-line magic?
3
votes
1answer
72 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 ...
3
votes
1answer
818 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?