Questions about using the command-line interface (CLI).

learn more… | top users | synonyms (5)

29
votes
4answers
23k views

What is a terminal and how do I open and use it?

What is a terminal? How do I open a terminal window? How do I use the terminal?
41
votes
7answers
4k views

How can I easily share the output of a command or a text file with others?

I recently asked a question on AskUbuntu (or somewhere else), and a comment or answer asks me to paste the contents of some file or the output of a command to troubleshoot my problem. How do I do ...
130
votes
5answers
267k views

How do I install a .deb file via the command line?

How do I install a .deb file via the command line?
21
votes
6answers
24k views

How to change LCD brightness from command line (or via script)?

To work around bug #1005495 (changing LCD brightness via hotkeys impossible), I'd like to have one command line query for increasing and one for reducing the brightness of my LCD. I could then map a ...
16
votes
9answers
101k views

How do I run .sh files in Terminal?

Whenever I open a .sh file, it opens it in gedit instead of the terminal. I can't find any option similar to Right Click → Open With → Other Application... → Terminal. How do I open this file in the ...
40
votes
5answers
25k views

How to create a permanent “alias”?

If you create an alias for example: alias cls="clear" It exists untill you kill terminall session. When you start a new terminal window the alias doesn't exist any more. How to create "permanent" ...
33
votes
4answers
36k 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 ...
10
votes
3answers
4k views

What is the best way to learn how to use Ubuntu with terminal?

Frequently, there are some things we need to do, tweak system settings, execute some processes, however even on Ubuntu, sometimes there isn't a GUI to perform such tasks, which is why we come to ...
60
votes
4answers
63k views

How do I sudo a command in a script without being asked for a password?

I want to turn my system on automatically every day. So I use the below code in my Python script, but sudo asks me for a password every time: os.system('sudo sh -c "echo date \'+%s\' -d \'+ \ ...
29
votes
2answers
52k views

How to connect and disconnect to a network manually in terminal?

Since the network manager is troubling me so much I want to replace it (possibly wicd orNM from ppa:volanin). I do not know how to connect and disconnect to the network through the terminal without ...
35
votes
7answers
122k views

How to install Chrome browser properly via command line?

Setting up and managing an Ubuntu server all by myself, in coming months, is a part of my current plans. Hence, I am planning a switch from Windows to Linux - - Ubuntu. I now need to get some grip on ...
33
votes
7answers
18k views

How to clean launch a GUI app via the Terminal (so it doesn't wait for termination)?

Some GUI apps launch cleanly via the Terminal command line. Some don't, and they cause the Terminal to wait for the app to terminate. ...and even then, some don't "release" the command line. The ...
49
votes
9answers
21k views

How can I set default terminal used in Unity?

How can I set the default terminal used in Unity? I would like to use the Ctrl+Alt+T hotkey to start a non-default terminal. The default terminal is gnome-terminal. Where can I change the default ...
38
votes
5answers
51k views

How to check battery status using terminal?

I would like a command that check the battery status through the terminal "acpi" does not work for 11.10.
22
votes
5answers
58k views

How do I connect to a WPA wifi network using the command line?

So basically, I'd like to use iwconfig to connect to my wifi network when I'm not inside X. But I just don't see a way to do it in the man page. Any idea?
26
votes
5answers
28k views

Can I install extra drivers via the command prompt?

Since I can't seem to open the Additional Drivers program? And how do I know what driver I need to install?
105
votes
8answers
89k views

How can I suspend/hibernate from command line?

How can I suspend or hibernate my laptop using command line, without installing additional software?
54
votes
6answers
235k views

Change folder permissions and ownership

I would like the user to have full rights on this folder (as well as all sub-directories and files in it): ~/.blabla currently owned by root. I have found numerous posts (in this forum and ...
26
votes
9answers
11k views

Making Ctrl+C copy text in gnome-terminal?

Is it possible for me to make Ctrl+C perform a copy command if there is highlighted text in the terminal? Otherwise, it should retain its normal behavior. (If there is a terminal that can do this ...
90
votes
12answers
148k views

How can you log out via the terminal?

Is there a command, that will take you back to the login screen?
55
votes
8answers
43k views

Progress and speed with 'cp'?

When copying files using cp, is it possible to display the progress and speed of the transfer? Otherwise, is there any alternative command line utility that can achieve this?
8
votes
6answers
821 views

How can we get the command line of a running application?

In Ubuntu, applications can be opened from a terminal. But sometimes it isn't clear what the appropriate command is to do this. So, having an application open, how can I get the command used to ...
33
votes
9answers
17k views

Running a .desktop file in the terminal

From what I can gather, .desktop files are shortcuts that allow application's settings to be customized. For instance, I have lots of them in my /usr/share/applications/ folder. If I open that ...
20
votes
5answers
8k views

How to find out the terminal command of an application?

I want to use some applications shown on the Unity Launcher in a terminal, but I need to know the appropriate command to run them. How can I achieve that?
16
votes
9answers
17k views

System Monitoring Tools For Ubuntu

I am looking for System Monitoring tools which are GUI and Cli or Web Based which include Basic Functions such as CPU Usage Ram Usage Swap Usage Disk Usage ( Space / I/O ) Heat Monitoring I know ...
66
votes
8answers
170k views

What does “sudo apt-get update” do?

I am wondering what this command line does? "sudo apt-get update" What does it update?
26
votes
12answers
27k views

Can not paste into Gnome Terminal from Netbeans

When I copy something from another window then my terminal and want to paste it into my terminal (on the command line) the paste option in Edit is grayed out. Ctrl+V does not work in GNOME Terminal ...
7
votes
1answer
3k views

One line command for adding new items to com.canonical.Unity.Panel systray-whitelist

This is more of a how to use command line instruction question more than how to add items to the Unity notification panel. I have to have a one line CLI to add a new item to com.canonical.Unity.Panel ...
5
votes
3answers
699 views

Are there any tutorials and books to get accustomed to the terminal? [closed]

I want to use my Ubuntu computer with text-based system. But I can find only some tutorials. I need more tutorials and books.
26
votes
4answers
20k views

Make gedit embedded terminal colours the same as the default terminal

I've just updated to 11.10 and now my embedded terminal in gedit does not match my default terminal. I hate looking at a white and black terminal. Does anyone know how to make the embedded terminal ...
24
votes
3answers
8k views

Upgrading from the command line? [duplicate]

I would like to know how to upgrade from my current version of Ubuntu to the next stable from the Command line interface?
15
votes
3answers
3k views

How do file permissions work?

Can you explain briefly the main concepts and command line tools used to manage file permissions?
9
votes
3answers
55k views

Can't install aircrack-ng

Whenever I attempt to install aircrack-ng in terminal I get the following error: Package aircrack-ng is not available, but is referred to by another package. This may mean that the package is ...
5
votes
4answers
18k views

Stuck on GRUB Command Line

I am running Natty Alpha 3. I used Update Manager to install something (not sure what it was), then I restarted, but instead of listing all the kernels, it gave me a command line. I don't know what ...
16
votes
2answers
3k views

How to “show desktop” from command line?

I want to be able to lower all windows and show the desktop from the command line, not Ctrl+Alt+D.
19
votes
2answers
1k views

How do I run an application with arguments from the command line without losing the terminal?

I use dwm as a window manager on Ubuntu, I like tiled windows and I like them as few as possible. I sometimes need to run an application (let's say it's the pdf viewer mupdf in x11) from the terminal, ...
11
votes
2answers
4k views

What is a tty, and how do I access a tty?

I keep hearing about these things known as tty's. what are they how can I access them what do they do?
9
votes
2answers
4k views

What is a virtual terminal for?

When I press ctrl+alt+F1 it goes to virtual terminal. What is this virtual terminal for? When do you need to use it?
11
votes
3answers
17k views

How do I enable the “Universe” repository from the command line?

How do you use terminal to enable Universe source? Or any those 4 from Software Sources: Main, Universe, Restricted, Multiverse Main is on by default and Restricted is on if durring Ubuntu ...
69
votes
5answers
63k views

What do the different colors mean in the terminal?

What does the different colours in Ubuntu mean? For example, when I type 'ls' in one of my folders, I get one of the files in light green, the other (which is a folder) in blue with green high ...
15
votes
2answers
7k views

What do the various dpkg flags like 'ii' 'rc' mean?

I frequently need to check which packages are installed, and I use the following command: dpkg -l | grep foo which gives the following output Desired=Unknown/Install/Remove/Purge/Hold | ...
39
votes
5answers
65k views

How do I download and install Handbrake?

I'm new at Ubuntu so I don't know very well how to use the terminal in order to download and install programs that aren't in the software center. I've tried without success downloading and installing ...
8
votes
5answers
6k views

How to add an alias to a command in terminal?

By typing a manually specified command in terminal i want to do some. How could add an alias to a command? Can i do that with the help of the terminal or should i edit some kind of file?
64
votes
3answers
8k views

Why is a virtual terminal “virtual”, and what/why/where is the “real” terminal?

I hope the question is self-explanatory. My understanding is that gnome-terminal and konsole are virtual terminals, and they are basically serving the same purpose, i.e. a command line environment ...
13
votes
2answers
4k views

What are “$PATH” and “~/bin”? How can I have personal scripts?

What is $PATH? How can I have commands/programs which are only available for me? I have seen this path ~/bin mentioned before, but what is it used for, and how do I use it?
14
votes
3answers
137k views

How to start GUI from command line?

I've installed the following version of ubuntu om my machine. ubuntu-12.04-desktop-i386.iso But when I switch on the computer, I get command line. Ubuntu 12.04 LTS COMP-1245 tty1 Once I ...
16
votes
2answers
8k views

How do I disable the blank console “screensaver” on Ubuntu Server?

How to disable blank screensaver on Ubuntu Server? There's no desktop or X, only console (command-line interface).
13
votes
3answers
12k views

Shutdown from terminal without entering password?

I have desktop edition of Ubuntu. I like the Terminal so that that I prefer to shutdown my computer with the shutdown command. However when I type shutdown now it prompts me to enter my password.Is ...
12
votes
6answers
14k views

How to run a script without closing the terminal?

I have a script in file bla.sh and it is executable. When I click on it, the script is executed and the window is closed. I'd like the window to stay open. Something like command cmd /k** command in ...
18
votes
4answers
10k views

How to list package dependencies (reverse dependencies)?

In order to research what caused the installation of a given package, I'd like to get a list of packages which depend on that package. I couldn't find anything obvious in man dpkg.