Hide

What's this?

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/

Get involved!

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.

Universal configuration monitoring and system of record for IT.
Hide

Stay in the loop…

Follow the Tweets.

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

Subscribe to the feeds.

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:

Hide

News

May 19, 2015 - A Look At The New Commandlinefu
I've put together a short writeup on what kind of newness you can expect from the next iteration of clfu. Check it out here.
March 2, 2015 - New Management
I'm Jon, I'll be maintaining and improving clfu. Thanks to David for building such a great resource!
Hide

Top Tags

Hide

Functions

Hide

Credits

Commands by svnlabs from sorted by
Terminal - Commands by svnlabs - 13 results
yum install vixie-cron crontabs
yum -y install bind bind-chroot caching-nameserver
yum install kernel-PAE
echo 0 >/selinux/enforce
2010-02-17 16:33:26
User: svnlabs
Functions: echo
-7

just change SELINUX=enforcing to SELINUX=permissive, and you're done. Reboot if you want to prove it.

scp -P 22 /home/svnlabs.txt root@92.178.0.56:/home/svnlabs.txt
2010-01-22 16:55:25
User: svnlabs
Functions: scp
-6

Upload file to remote server using SCP

rsync -avvvz -e "ssh -i /root/.ec2/id_rsa-gsg-keypair" --archive --progress /root/.ec2/id_rsa-gsg-keypair root@ec2-75-101-212-113.compute-1.amazonaws.com:/root
2010-01-22 16:53:42
User: svnlabs
Functions: rsync
-2

Connect EC2 server with public keys "/root/.ec2/id_rsa-gsg-keypair" or "/root/.ec2/keypair.pem"

zip -r -9 /var/www/html/project.zip /var/www/html/project
cat /proc/meminfo
free -mto
# cat file1.mp3 file2.mp3 > file3.mp3
2010-01-17 13:18:34
User: svnlabs
Functions: cat
-4

cat - concatenate MP3 files and save it...

check output
2009-12-27 05:28:01
User: svnlabs
-13

# wget http://nchc.dl.sourceforge.net/project/gpac/GPAC/GPAC%200.4.5/gpac-0.4.5.tar.gz

# wget http://nchc.dl.sourceforge.net/project/gpac/GPAC%20extra%20libs/GPAC%20extra%20libs%200.4.5/gpac_extra_libs-0.4.5.tar.gz

# 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*

# ./configure

# make lib

# make apps

# make install lib

# make install

# cp bin/gcc/libgpac.so /usr/lib

chown -R webuser:webgroup /var/www/vhosts/domain.com/httpdocs
wget -H -r ?level=1 -k -p http://www.domain.com/folder/
2009-12-27 05:23:27
User: svnlabs
Functions: wget
-2

wget ? server to server files transfer