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.
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:
It would be nice if commandlinefu.com had a better domain name. Will they pick one of the above; We'll see.
Never read the documentation? No, then why have that ~ 20 MB sit there and take up space? This command preserves directory structure wile removing all of those unnecessary help and documentation files. Works on Ubuntu, Debian, and most related systems. Gives a lot of directory errors, I'll fix those later.
This works just like write or wall ... cept one thing the sender is anonymous ... if you really want to drive everyone insane replace echo \"The Matrix has you...\" with cat /dev/urandom
nice one to do on April fool's day
This is way faster than typing 'sudo'. And AFAIK - there is no decent command for letter 's'.
Com o fuser voce descobre quem esta ocupando o dispositivo.
Depois pode desativar o servico manualmente. Ou se necessario, matar o servico com Kill, usando o numero PID.
ex: kill -9 1768
get the ip address on your LAN
I often forget to type sudo before a command that needs it. This is the quickest way to rerun the command prefixed by sudo.
I have this as a file called deletekey in my ~/bin.
Makes life a little easier.
This version does not rely on a 3rd party service. Just put this in a bash cgi on your own server.
paste file to pastebin (other similar sites available, read man page).
make sure to have 'pastebinit' install
RHEL / CentOS Support 4GB or more RAM ( memory )
In the sample output I used google.com.
# tar -zxf gpac-0.4.5.tar.gz
# tar -zxf gpac_extra_libs-0.4.5.tar.gz
# cd gpac_extra_libs
# cp -r * ../gpac/extra_lib
# cd ../gpac
# chmod +x configure
# yum install zlib*
# make lib
# make apps
# make install lib
# make install
# cp bin/gcc/libgpac.so /usr/lib
list all the processes
I am new to linux, and I was trying to figure out why I could not sudo with my username in Fedora 10. This command, when run as root, will add a line to the sudoers file allowing the loginname supplied to sudo. The above line will require a password when you sudo, if you wish to sudo without password, use:
echo 'loginname ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
instead. you have to run this command as su, and this is just an easier way of using visudo, just adds it right from the terminal.