Most Popular
1500 questions
403
votes
16 answers
How can I get a list of all repositories and PPAs from the command line into an install script?
I know how to list all packages installed on my system.
But how could I get a list of all repositories and PPA's into a script that I can run on a new machine to replicate the repository setup including the keys?
I know I can look into…
stwissel
- 6,451
403
votes
15 answers
How to easily resize images via command-line?
I would like to know how to resize images in Ubuntu. What is the easiest tool to do so?
myusuf3
- 35,659
402
votes
5 answers
How can I find my User ID (UID) from terminal?
The title says it all. What command I need to run from a terminal to find my user ID (UID)?
a06e
- 14,233
402
votes
3 answers
How do I remove an alias?
I want to remove the gs alias from my PC. When I type gs it opens GhostScript. But I checked everywhere in the home directory .alias, .bash_aliases, and .bashrc.
I also overwrote gs with my custom alias.
I can't remove it. I've also typed alias in…
jean000
- 4,129
402
votes
8 answers
How is the /tmp directory cleaned up?
How is the /tmp directory cleaned up? Is it automatic? If so, how frequently is it cleaned up?
Olivier Lalonde
- 60,581
402
votes
7 answers
What is the 'whoopsie' process and how can I remove it?
On one of my machines I have a process running called "whoopsie". I'm running 12.04 server and never specifically installed anything with this name.
Google seems to imply that it has something to with error logs but I'm not finding too much…
Nanne
- 8,685
401
votes
7 answers
fsck error on boot: /dev/sda6: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY
I dual boot Ubuntu and Windows 7.
I was browsing on FireFox in Ubuntu and all of a sudden I get some error message, so I rebooted.
Now when I try to boot into Ubuntu I get this message:
fsck from util-linux 2.26.2
/dev/sda6 contains a file system…
Jordy
- 4,111
401
votes
4 answers
How to set JAVA_HOME for Java?
I've installed a version of Java. How can we set the $JAVA_HOME environment variable correctly?
Gaurav Agarwal
- 11,913
400
votes
6 answers
Clock time is off on dual boot
Dual boot system Windows XP Pro and Ubuntu 12.04.
I have the bios set for the correct time and Ubuntu set for US Eastern time. Ubuntu will boot up and the time will be off by -4 hours. If I correct the time in Ubuntu then when I boot up in Windows…
Bill Walden
- 4,001
399
votes
6 answers
How do I turn on workspaces? (Why do I only have one workspace?)
It appears that Unity on Raring only comes with a single virtual desktop (aka workspaces) by default, and CCSM's Wall plugin has no way to add more. Is this configurable at all?
Bo Dang Ren
- 5,654
397
votes
10 answers
How to increase swap space?
I have, by default, 250MB of swap space in Ubuntu, and I want to expand it to a larger size. I need 800MB, which I think will be enough to open several applications without having to hit the current limit of swap. I hope someone can help me.
Bruno
- 4,157
396
votes
11 answers
Is it possible to remove a particular host key from SSH's known_hosts file?
Is it possible to remove a particular host key from SSH's known_hosts file?
I usually end up deleting the entire known_hosts file, which I have no problems with doing, but just out of curiosity, is it possible to remove just a single entry?
I…
theTuxRacer
- 16,533
395
votes
14 answers
How do I change the computer name?
When I connect to my server (ubuntu server 10.10), I get this:
name@server-name.belkin ~>
How can I remove ".belkin"?
Wolfy
- 8,050
395
votes
10 answers
Run a shell script as another user that has no password
I would like to run a script from the main ubuntu shell as a different user that has no password.
I have full sudo privileges, so I tried this:
sudo su -c "Your command right here" -s /bin/sh otheruser
Then I have to enter my password, but I am not…
rubo77
- 34,024
- 52
- 172
- 299
392
votes
7 answers
How can I check the available version of a package in the repositories?
How can I check the version of the available package in the Ubuntu repositories without installing it?
Raja G
- 105,327
- 107
- 262
- 331