commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
This will give you the Dell Service tag number associated with your machine. Incredibly useful when you need that number for tech support or downloads.
List the commands you have the right to use with sudo.
Opens a new shell as root. Useful if you want to run a lot of commands as superuser without needing to sudo each of them.
This is the solution to the common mistake made by sudo newbies, since
sudo echo "foo bar" >> /path/to/some/file
does NOT add to the file as root.
sudo echo "foo bar" > /path/to/some/file
should be replaced by
echo "foo bar" | sudo tee /path/to/some/file
And you can add a >/dev/null in the end if you're not interested in the tee stdout :
echo "foo bar" | sudo tee -a /path/to/some/file >/dev/null
when I turn on my wifi, I always have to put in this command in order to make my laptop notice the wifi.
wanna know something about your hardware? how about EVERYTHING?? then this should do ya well
if you lose your sound, this will restart alsa and you will get your sound back
After you install/remove lots of packages, there are many packages marked with 'rc'. This script help you to purge these packages, it will save some spaces from your disk.
In July 2008, there was an uproar over Foxconn motherboards feeding Linux installs incorrect ACPI information (http://ubuntu-virginia.ubuntuforums.org/showthread.php?t=869249).
Foxconn has gladly corrected their mistake, but make sure it's not happening on your motherboard!
After running the command, just view the 'dsdt.dsl' in any editor you like.
this application monitors the apps you use most often and load them into memory with their libraries and other dependencies.
So now, when you launch Firefox or Thunderbird or OpenOffice, the display is immediate as on Mac.
In some applications on eeepc xandros 7, default OS, video ccamera is not available untill you enter this command
You need sudo privileges for this command.
Replace username with actual username.