1. it find your public ip via ifconfig.io 2. than use this IP to request your timezone via worldtimeapi.org 3. and send it to the command timedatectl set-timezone
blktrace is a block layer IO tracing mechanism which provide detailed information about request queue operations up to user space. blkparse will combine streams of events for various devices on various CPUs, and produce a formatted output the the event information. It take the output of above tool blktrace and convert those information into fency readable form. Show Sample Output
This will also work with bash instead of sh shell sudo bash -c 'apt update -y && apt upgrade -y'
Although the need to type a password to make certain changes to the system may make perfect sense in a business or educational environment, it makes absolutely zero sense to the home user. So, if you’re at home and would rather get work done than be annoyed by what is essentially Linux’s UAC, then this command is for you.
In some applications on eeepc xandros 7, default OS, video ccamera is not available untill you enter this command
Basically an improvement on an earlier ethtool command line. Show Sample Output
ec commits changes to etckeeper must have etckeeper installed with bzr to use this place inside bashrc can be used from any directory to commit changes
gemInst.sh: #!/bin/bash for i in $@; do if [ "$1" != "$i" ] then echo /newInstall/gem install $1 -v=\"$i\" /newInstall/gem install $1 -v="$i" if [ "$?" != "0" ] then echo -e "\n\nGEM INSTALL ERROR: $1\n\n" echo "$1" > gemInst.err fi fi done
Plays the sound of the file, should sound like *some* kind of music, most files sound like static but some are really cool.
variations:
sudo cat /dev/sda > /dev/dsp
sudo cat /dev/sda5 | aplay
Check out http://bbs.archlinux.org/viewtopic.php?id=70937 for more variations!
semi-dupe--like http://www.commandlinefu.com/commands/view/985/generate-white-noise but with different syntax and program.
Show Sample Output
adding users to groups on OS X is not a straightforward process, you need to use the new in built in Directory Service command line utility...
When you need to add another tty device that can automatically start at boot time
Change run control links from start "S" to stop "K" (kill) for whatever run levels in curly braces for a service called "myservice". NEWFN variable is for the new filename stored in the in-line shell. Use different list of run levels (rc*.d, rc{1,3,5}.d, etc.) and/or swap S with K in the command to change function of run control links. Show Sample Output
I know this sucks in some way but if someone can improve it please be my guest Show Sample Output
on a dpkg managed system this PATTERN will help you generate .deb files from source AND remove all the dev libs you had to install. i hate cluttering up my machine with rouge packages and headers. it would be pretty darn easy on rpm systems as well. i just dont have a rpm managed system to test on right now. NOTE, you sharp ones will notice that it uninstalls the deb you just made! yeah, but the deb is still there to do with it what you want, like re install it. or you can just grep -v after the diff
You don't need this command often and there are other ways to test output but if you want to be sure if your router and ethernet card are working this is one way. Show Sample Output
To re enable just change the "off" for "on" Show Sample Output
sudo is optional, but to find out about all files, it is nice, or else run as superuser, ie: su -c 'du -sm * | sort -n' Show Sample Output
"The -b (background) option tells sudo to run the given command in the background." -- after it asks you for the password in the foreground. Show Sample Output
When you right click a text box in Firefox and you have installed a few dictionaries you'll see a loooong list of spellcheckers. Most of them are duplicated (symlinks). This command deletes de duplicates and reduces the list.
Will limit the amount of CPU time Grooveshark the greedy yet useful Adobe Air app will have. Leaves the UI lagging a little, but crucially does not ruin the audio. Show Sample Output
kill all the (-y) from the interface eth1, not touching the legitimate server with 00:11:22:33:44:55 homepage: http://www.netpatch.ru/dhcdrop.html download: http://www.netpatch.ru/projects/dhcdrop/dhcdrop-0.5.tar.bz2
commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for: