view is the command: vi -r which opens a file in read-only mode. The + character jumps to the bottom of the logfile where the most relevant information starts. Other aliases can be created for commonly viewed logfiles. Show Sample Output
Nofity Message sudo apt-get install libnotify-bin
simple function i found somewhere to open vim help page from the shell use :h like you would in vim
centos list directories sorted by size Show Sample Output
Transpose parameter: 0 = 90CounterCLockwise and Vertical Flip (default) 1 = 90Clockwise 2 = 90CounterClockwise 3 = 90Clockwise and Vertical Flip
The large context number (-C 1000) is a bit of a hack, but in most of my use cases, it makes sure I'll see the whole log output.
I needed to get a feel for how "old" different websites were, based on their directories. Show Sample Output
Discover host and url of media files (ex. flv, mp4, m4v..). It locate the urls of audio and video files so that they can be recorded.
If you don't have seq, you can use perl.
Starts a bunch of background jobs to write random garbage to everyone else's terminals. The "\n" in IFS should be an actual newline, but I can't put that in the command. Show Sample Output
Set field separator char from command line. Prints first, second and lsat columns. Show Sample Output
Have you ever wondered what the hell was dd command doing? well, there you have it... notice the -USR1 signal :)... Show Sample Output
sudo when you mean it ps aux | grep $USER exit Show Sample Output
xargs deals badly with special characters (such as space, ' and "). To see the problem try this: touch important_file touch 'not important_file' ls not* | xargs rm Parallel https://savannah.nongnu.org/projects/parallel/ does not have this problem.
-l for long list, -r for recursive, -a for display of hidden files, and -t for modification date
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: