"git grep" automatically excludes untracked files (e.g. compiler output) and files under .git directory. If no directory or file is given, it will recursively search through the current directory.
If a session with named the same as your username already exists, then attach to it, otherwise create it
Same functionality without using bash functions. Show Sample Output
Very convenient to for sending data to the clipboard for processing. However, note that tee will affect the buffering of the output (stdout won't be update very live). Show Sample Output
This can be easier to look at in ls output. Not as clean as +%Y%m%dT%H%M%S, but quicker to write. Show Sample Output
Typing a word in terminal is easier than digging your phone out, opening your two-factor authentication app and typing the code in manually. This alias copies the one-time code to your clipboard for 3 seconds (long enough to paste it into a web form), then restores whatever was on the clipboard beforehand. This command works on Mac. Replace pbpaste/pbcopy with your distribution's versions.
Search, find and list aliases that match a regexp.
# basic search example:
alls c.*
# loose search example:
alls .*sudo.*
# remember to double escape special characters; example:
alls .*\\/.*
Everytime You Run Bash It Will Run And Send The Command To Background In A Loop Forever. This Is Useful In Android To Avoid Getting Discconnected While Using ADB Or Other Services Like SSH By Being Inactive For Long Periods Of Time. In My Case I Get Bash Full Suport Only Through ADB And Also A Decent Python Interpreter Using Python For Android.
This alias is useful if you need to use some text often. Executing the alias will copy the text into your clipboard and then remove it after X seconds. Show Sample Output
Include in your .bashrc
This creates an alias that will do a 'git archive' command to package up the current repo into reponame-shorthash.tar.gz, in the current directory.
Tells you where's left and right. Handy if you can't ever remember them. Show Sample Output
to run write: Sound-volume 30% or Sound-volume 1% Sound-volume 100% Show Sample Output
Merge remote into local of current branch. Show Sample Output
Get link on clipboard and start download
Creates an alias called "junit" that will allow you to run the command "junit your.software.package.TestClass" to execute automated testing on that Java Class.
This can be added to ~/.bashrc with your other shell aliases. Emulates similar look & feel to ping6 & traceroute6. Show Sample Output
Some Unix systems have this by default. Check if you need to add it on yours. Show Sample Output
Normally executing 'set' returns a vast amount of information, including the source code of every function and variable within the environment - including those that are part of the shell. By using the -o posix argument, bash runs temporarily in POSIX mode for this command, which simplifies expressions and leaves out the shell's own functions and definitions - leaving a much smaller, more useful list. Show Sample Output
Like what it says. Show Sample Output
or add to your ~/.bash_aliases: echo "alias myhost='ssh me@myhost'" >> ~/.bash_aliases to be available at shell launch.
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: