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

learn more… | top users | synonyms (5)

37
votes
4answers
46k 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?
16
votes
7answers
4k 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?
45
votes
7answers
5k 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 ...
21
votes
9answers
146k 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 ...
60
votes
5answers
107k views

What is the correct way to completely remove an application?

I've searched the net for such information and found different command lines, like these ones: sudo apt-get remove application sudo apt-get remove application* sudo apt-get remove --purge ...
235
votes
5answers
551k views

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

How do I install a .deb file via the command line?
255
votes
5answers
712k 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 ...
49
votes
5answers
41k 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" ...
31
votes
7answers
42k 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 ...
41
votes
4answers
58k 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 ...
41
votes
3answers
72k 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 ...
51
votes
6answers
64k 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 ...
48
votes
7answers
258k 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 ...
11
votes
3answers
5k 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 ...
21
votes
3answers
6k views

Redirect the output using `sudo` [duplicate]

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 ...
114
votes
8answers
259k views

What does “sudo apt-get update” do?

I am wondering what sudo apt-get update does? What does it update?
-3
votes
0answers
297 views

Unable to locate package [duplicate]

There are many questions about Unable to locate package. For example : if user try to install package by using apt-get then the following error shown. (Here package is used only as example for ...
71
votes
6answers
367k 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 ...
41
votes
4answers
65k 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 ...
132
votes
9answers
123k views

How can I suspend/hibernate from command line?

How can I suspend or hibernate my laptop using command line, without installing additional software?
106
votes
12answers
186k views

How can you log out via the terminal?

Is there a command, that will take you back to the login screen?
62
votes
11answers
78k views

How to check battery status using terminal?

I would like a command that check the battery status through the terminal
32
votes
5answers
36k 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?
37
votes
7answers
25k 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 ...
56
votes
11answers
29k 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 ...
27
votes
5answers
96k 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?
24
votes
5answers
12k 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?
43
votes
11answers
25k 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 ...
71
votes
11answers
68k 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?
28
votes
10answers
36k 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 ...
39
votes
5answers
9k views

When using sudo with redirection, I get 'permission denied'

When using sudo to allow edits to files, I regularly get 'permission denied'. For example, my mouse is jittery and sluggish, so I want to disable polling: sudo echo "options drm_kms_helper ...
17
votes
3answers
4k views

How do file permissions work?

Can you explain briefly the main concepts and command line tools used to manage file permissions?
14
votes
1answer
8k 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?
15
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 ...
12
votes
4answers
65k 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 ...
15
votes
6answers
19k 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 ...
7
votes
6answers
2k views

How can I run this sh script without typing the full path?

I'm still very new to Ubuntu. I'm using 12.04, and I'd like to know if there is a way to run this program/shell script without typing: /opt/idea/bin/idea.sh It's kinda tedious and I'm quite lazy. ...
159
votes
7answers
429k 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?
17
votes
2answers
4k 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, ...
12
votes
3answers
35k views

How to remove desktop environments?

I installed few environments that I wanted to try out on Ubuntu 12.04, but none of them worked at all. It could be that I installed them all at the same time, meaning the OS didn't get a chance to ...
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 ...
12
votes
3answers
30k 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 ...
26
votes
4answers
23k 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
14k 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?
20
votes
5answers
44k 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. ...
19
votes
2answers
10k 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 | ...
9
votes
2answers
6k 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?
5
votes
4answers
23k 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 ...
5
votes
3answers
864 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.