Most Popular
1500 questions
785
votes
22 answers
Command for determining my public IP?
If I check with google, I can see my public IP. Is there something on the Ubuntu command-line which will yield me the same answer?

kfmfe04
- 8,319
- 4
- 16
- 21
776
votes
16 answers
How do I reset a lost administrative password?
I'm working on a Ubuntu system, and my client has completely forgotten his administrative password. He doesn't even remember entering one; however it is there.
I've tried the suggestions on the website, and I have been unsuccessful in deleting the…
user9904
770
votes
9 answers
How to increment a variable in bash?
I have tried to increment a numeric variable using both var=$var+1 and var=($var+1) without success. The variable is a number, though bash appears to be reading it as a string.
Bash version 4.2.45(1)-release (x86_64-pc-linux-gnu) on Ubuntu 13.10.

user221744
- 7,711
- 3
- 11
- 4
767
votes
4 answers
How to delete a non-empty directory in Terminal?
How do I delete the following directory?
I typed:
rmdir lampp
This error comes up:
rmdir: failed to remove `lampp': Directory not empty
Is there a command to delete all the files in the directory and delete the directory folder?

naveen
- 7,897
- 4
- 13
- 14
758
votes
4 answers
What is the difference between apt and apt-get?
I read about the new fancy progress bar which was added to apt 1.0 in Softpedia and how to enable it here. However on running sudo apt-get update, I did not see the fancy progress bars. On reading the second link again, the solution explicitly…

nik90
- 11,999
- 10
- 42
- 71
753
votes
39 answers
How do I remove old kernel versions to clean up the boot menu?
Every time I install a new Linux kernel, it gets left in the grub_config, making the boot menu longer each time.
I know I can manually search through the installed packages and remove them.
Does Ubuntu provide any easier way to clean them up or…

ImaginaryRobots
- 8,958
- 4
- 33
- 38
744
votes
7 answers
How do I rename a directory via the command line?
I have got the directory /home/user/oldname and I want to rename it to /home/user/newname. How can I do this in a terminal?

N.N.
- 17,339
- 18
- 55
- 92
727
votes
82 answers
What Application Indicators are available?
This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. While you are encouraged to help maintain…

user8592
- 818
- 6
- 15
- 22
724
votes
18 answers
How do I find the amount of free space on my hard drive?
Is there a way to quickly check the amount of free / used disk space in Ubuntu?
I would assume you could right click on 'file system' in the file browser and choose 'properties' or something but there is no such option.

greg
- 9,693
- 4
- 17
- 15
720
votes
47 answers
What should I do when Ubuntu freezes?
All operating systems freeze sometimes, and Ubuntu is no exception. What should I do to regain control when...
just one program stops responding?
nothing at all responds to mouse clicks or key presses?
the mouse stops moving entirely?
I have an…

ændrük
- 74,042
- 71
- 228
- 362
717
votes
9 answers
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 elsewhere) on how to do this for files but I can't find a…

user2413
- 13,027
- 15
- 53
- 84
711
votes
10 answers
How to run scripts on start up?
How can I run scripts automatically when Ubuntu starts up so I don't have to run them manually after startup?

myusuf3
- 32,229
- 40
- 86
- 100
706
votes
9 answers
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 application
sudo apt-get remove --purge application*
sudo…

user48949
- 7,493
- 4
- 15
- 13
704
votes
22 answers
How can I extract a page range / a part of a PDF?
Do you have any idea how to extract a part of a PDF document and save it as PDF?
On OS X it is absolutely trivial by using Preview. I tried PDF editor and other programs but to no avail.
I would like a program where I select the part that I want and…

user72469
- 7,049
- 3
- 13
- 4
681
votes
9 answers
What does "sudo apt-get update" do?
I am wondering what sudo apt-get update does?
What does it update?

Elysium
- 10,732
- 24
- 54
- 80