For Windows XP through current version, use this command ff you have a folder with a bunch of DLLs (or OCXs, EXEs, etc) that need to be registered in mass using regsvr32. Just replace *.DLL with the file extension of other files to be registered.
This is useful for scripting. Show Sample Output
Place all your venvs in ~/Documents/venvs/, or wherever you please, and quickly activate them by running `pve {name_of_env}`. Place this snippet in your ~/.bash_profile for example.
Requires Powershell Core on Linux or Windows Powershell 3.0 Gets the filename of the latest x64 rpm available from java.com
sh as: #! /bin/sh while [ 1 -ne 6 ]; do pid=`ps -ef | grep -v "grep" | grep "trans_gzdy" | cut -c10-17` ps gv $pid | head -2 sleep 1 done check changes of RSS. Show Sample Output
Replace the word 'war' to word 'peace' in every file in the current directory.
We use the "convert" command (ImageMagick package) : see man convert (http://www.ma.utexas.edu/cgi-bin/man-cgi?convert+1)
Returns last day of current month. Useful to implement a bash script backup based on a GFS strategy. Show Sample Output
`mount -o remount` doesn't pick up new NFS options (eg. timeo, soft, retrans, etc) so you need to do a full mount/remount cycle. This one-liner makes it quick and easy :) Update your fstab with the new options, then run it. Show Sample Output
This command downloads the actual 20 most popular pictures from the website 500px. It uses a random name due to the fact the the pictures in 500px are stored with the same name. UPDATED: doesn't work if no referrer is specified: --referer='http://500px.com/'
Viewing kernel partition info. Show Sample Output
Extracts domain and subdomain from given URl. See examples. Show Sample Output
grep pdf files easily
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: