If you are in /begin/path/with/XX/pattern cd XX YY will change your current directory to /begin/path/with/YY/pattern in ZSH
Not that useful really, more novel. Can open up an awful lot of terminal windows.
Uses the PHP binary to check the syntax of all .php files in or below the current working directory. Really handy for doing that last minute check before you commit code to the repository. Show Sample Output
Surround the first letter of what you are grepping with square brackets and you won't have to spawn a second instance of grep -v. You could also use an alias like this (albeit with sed): alias psgrep='ps aux | grep $(echo $1 | sed "s/^\(.\)/[\1]/g")'
Needs xxdiff installed, which looks a bit clunky but is an extremely powerful graphical diff.
Creates a log of a session in a file called typescript. Or specify the file with:
script filename
Exit the session with control-d.
Shows the current directory and those below it in a simple tree structure. Recommended use: alias lt='$command_above'
see aticonfig --help
* = where
"*" is important if you don't know exact name of file. Check it out and you'll see
checking files in current and sub directories, finding out the files containing "sampleString" and removing the containing lines from the file. * Beware that The command will update the original file [no backup]. The command can be extended if play with 'find' command together, e.g. it is possible to execute on certain type of files: *.xml, *.txt... (find -name "*.xml" | grep....) if anybody knows a better solution on that, please drop a comment. thx.
Tells the closest (latest) shared ancestor commit (SHA1) of two branches. http://www.kernel.org/pub/software/scm/git/docs/git-merge-base.html Show Sample Output
Will do the merge, but only apply changes to working copy and index; won't commit.
Format a password file for John the Ripper from Cisco configs (Level 5) Pulled from http://www.openwall.com/lists/john-users/2006/05/14/8
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: