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

learn more… | top users | synonyms (5)

37
votes
4answers
34k 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?
43
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 Ask Ubuntu (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 ...
14
votes
7answers
3k views

Nothing shows up in the terminal when I type my password

When I'm about to install a program in the terminal it wants the password: [sudo] password for xxx: But when I want to type my password it happens nothing. What should I do?
186
votes
5answers
401k views

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

How do I install a .deb file via the command line?
18
votes
9answers
124k 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 ...
221
votes
6answers
612k views

How can I add a new user as sudoer using the command line?

After I add a user using adduser, I can't see it via System->Administration->Users and Groups unless I logout and then login again. Is that normal? Also, can I set a newly added user as a ...
27
votes
7answers
33k 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 ...
44
votes
5answers
32k 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" ...
37
votes
4answers
47k 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 ...
46
votes
6answers
55k views

How do you select the fastest mirror from the command line?

I want to update my sources.list file with the fastest server from the command line in a fresh Ubuntu Server install. I know this is trivially easy with the GUI, but there doesn't seem to be a simple ...
41
votes
7answers
189k views

How to install Chrome browser properly via command line?

I am trying to install chrome browser via command line. I tried this: $ apt-cache search chrome browser The results show that the proper term is "chrome-browser," so I tried that: $ sudo apt-get ...
19
votes
3answers
5k views

Redirect the output using `sudo`

I have a small question regarding using sudo with output redirect >. To enable IP forwrding, someone can use the command: echo 1 > /proc/sys/net/ipv4/ip_forward Executing this command will ...
36
votes
2answers
62k 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 ...
11
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
6answers
303k 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 ...
123
votes
8answers
107k views

How can I suspend/hibernate from command line?

How can I suspend or hibernate my laptop using command line, without installing additional software?
36
votes
7answers
21k 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 ...
53
votes
10answers
65k views

How to check battery status using terminal?

I would like a command that check the battery status through the terminal
52
votes
9answers
25k 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 ...
40
votes
11answers
21k 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 ...
88
votes
8answers
214k views

What does “sudo apt-get update” do?

I am wondering what sudo apt-get update does? What does it update?
26
votes
5answers
78k 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?
29
votes
5answers
33k 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?
20
votes
10answers
26k 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 ...
100
votes
12answers
168k views

How can you log out via the terminal?

Is there a command, that will take you back to the login screen?
64
votes
9answers
56k 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?
23
votes
5answers
10k 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?
14
votes
6answers
1k 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 ...
17
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?
12
votes
4answers
60k 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 ...
13
votes
2answers
6k 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?
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
789 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.
136
votes
5answers
349k views

How to unzip a zip file from the Terminal?

Just downloaded a .zip file from the internet. I want to use the terminal to unzip the file. What is the correct way to do this?
26
votes
4answers
22k 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 ...
28
votes
3answers
12k 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?
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, ...
5
votes
4answers
21k 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 ...
12
votes
3answers
23k 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 ...
36
votes
4answers
55k views

Execute sudo without Password?

Inspired by this question.... I am the sole person using my system with 12.04. Every time I issue a sudo command; the system asks for the user password (which is good in its own way). However I was ...
16
votes
5answers
34k views

How can I make a script that opens terminal windows and executes commands in them?

I have three scripts I need to run when I start up my Ubuntu machine, they start services I use in my development environment. To do that, I manually open three terminals and type in the commands. ...
17
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.
41
votes
6answers
74k 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 ...
9
votes
2answers
5k 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?
80
votes
5answers
77k 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 ...
54
votes
10answers
8k views

Why do I need to type `./` before executing a program in the current directory?

While executing a C program, a.out, using the Ubuntu terminal, why do I always need to type ./ before a.out, instead of just writing a.out? Is there solution for this?
17
votes
2answers
8k 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 | ...
23
votes
4answers
80k views

How to edit files in a terminal with nano?

Sometimes, a graphical text editor like gedit or kate cannot be used (because you're in a virtual console for example). Luckily, there are text editors for the terminal. An easy one is nano, but I ...
15
votes
0answers
12k views

Command to know my external IP address? [duplicate]

How can I get my external IP address using the Command Line?
15
votes
3answers
15k 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 ...