commandlinefu.com is the place to record those command-line gems that you return to again and again.
Delete that bloated snippets file you've been using and share your personal repository with the world. 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.
If you have a new feature suggestion or find a bug, please get in touch via http://commandlinefu.uservoice.com/
You can sign-in using OpenID credentials, or register a traditional username and password.
First-time OpenID users will be automatically assigned a username which can be changed after signing in.
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:
Works 99.9% of the time; so far never required a more complex expression in manual input.
This is a safest variation for "sitepass function" that includes a SALT over a long loop for sha512sum hash
I have often file like this
01 - file.file
02 - file.file
03 - file.file
I rename all with this command
for f in * ; do mv -- "$f" "${f/[0-9][0-9] \- /}" ; done
then it looks like this
file.file
file.file
file.file
etc
wmwave is part of wmwave package, when launched display a small wireless link monitor on your desktop with noise, level and link power.
requires a gmail account, it opens Google tasks in a self contain window, to write your todo list and have it sync online yay =)
Generates a password using symbols, alpha, and digits. No repeating chars.
CPU flags:
rm --> 16-bit processor (real mode)
tm --> 32-bit processor (? mode)
lm --> 64-bit processor (long mode)
# Small for loop, that can list files in dir, and after that executes
# [COMMAND] of your choice, usefull for example rename, move, tar etc..
# change cmd's for different results :)
This is useful for remove all packages that are part of a common suite.
HP UX doesn't have a -a switch in the ifconfig command.
This line emulates the same result shown in Solaris, AIX or Linux