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:
wait a hour and 10 seconds to shutdown
Advanced information about RAM.
Install the Linux kernel headers for currently running kernel version on Debian-based systems via apt-get
Replace default command in skype.desktop file.
Install Ksuperkey one command in Kubuntu.
You must manually add ksuperkey to autostart in System Settings KDE.
Your computer's name is raspberrypi and you want to rename it to pita1.
This command will change both the hostname and the name used for netwrk communications.
You can easily stop shutdowning process by CTRL+C
On wired connections set 'eth0' instead of 'wlan0'
Opening several files at once in Vim can be very easy in connection with find command.
This is a useful command to backup an sd card with relative total size for piping to pv with a progressbar
Nethogs groups bandwidth by process.
MAC OSX doesn't come with a locate command, This will do the same thing as the locate command on a typical Linux OS.
Simply add it to your ~/.bash_profile
Magic line will extract almost all possible archives from current folder in its own folders. Don't forget to change USER name in sudo command. sed is used to create names for folders from archive names w/o extension. You can test sed expression, used in this command:
arg='war.lan.net' ; x=$(echo $arg|sed 's/\(.*\)\..*/\1/') ; echo $x
If some archives can't be extracted, install packages:
apt-get install p7zip-full p7zip-rar
Hope this will save a lot of your time. Enjoy.
you will be sad after you run a command and find out it needs root, so you should run it again but with prefix sudo.
so this line is to make it simple. just 'sudo !!'
Command used to know if we are working on a virtual or physical machine. This command will use the dmidecode utility to retrieve hardware information of your computer via the BIOS. Run this command as root or with sudo.