More straightforward. 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
Show only specific process id's using Top Show Sample Output
the system will display device manager command line utility, dns statistics, v Show Sample Output
You don't need to use "*", it will fail if the working directory has too many fails due parameter extension, you can simply pass the working directory using ".".
Converts flac files to mp3 with the same file names in the same directory. Show Sample Output
You can find Sopcast for linux on Softpedia: http://linux.softpedia.com/get/Multimedia/Video/SopCast-21690.shtml
top 10 of access log
I use this with alias: alias lsl="ls -1F | grep @$ | sed 's/@//' | column" Limitation: This will also list files that happen to have an @ at the end of the filename.
Generates a bash array and uses it to select a random image from ~/wallpapers.
Original command: cat "log" | grep "text to grep" | awk '{print $1}' | sort -n | uniq -c | sort -rn | head -n 100 This is a waste of multiple cats and greps, esp when awk is being used
Command returns valid IP addresses. Append the following regex to additionally filter out NAT and reserved IP addresses | grep -Ev "^0|\.0[0-9]|^10\.|^127\.|^169\.|^172\.(1[6-9]|2[0-9]|3[01])|^192.168.|^2(2[4-9]|3[0-9])|^2(4[0-9]|5[0-5])"
The link gets the definition from vocabulary.com. In case you are behind firewall, use --proxy URL in the curl option. Show Sample Output
This command will list a CSV list of infected files detected by clamav through squidclamav redirector.
-T = traceroute -V = verbose --tr-stop = exit when target is reached -n = don't do reverse lookups (faster) -2 = udp -p 53 = destination port 53 (dns), change to your needs Useful when trying to debug a network with complex routing rules and/or multiple gateways.
Gives stereo, 16bit, 44.1kHz (default in Ubuntu/Medibuntu ffmpeg). -aq 2 = 220-250kbit/s VBR, lower number is better quality. 2 or 3 should be good for most people. If you want the best mp3 q you should remove -aq and use -ab 320k to get 320kbit/s, but that is probably overkill for most .flv videos.
if you have a alias like this: alias cp='cp -i' # cp file1 file1.bak equal to # cp -i file1 file1.bak (it will not overwrite file1.bak if it exist) # \cp file1 file1.bak equal to # /bin/cp file1 file1.bak (skip alias settings, it will overwrite file1.bak if it exist)
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: