Check These Out
Merge all pdf files in the directory into one pdf file (the out.pdf file)
This lets you use your favorite vi edit keys to navigate your term.
To set it permanently, put "set editing-mode vi" in your ~/.inputrc or /etc/inputrc.
cp options:
-p will preserve the file mode, ownership, and timestamps
-r will copy files recursively
also, if you want to keep symlinks in addition to the above: use the -a/--archive option
"Sample output" shows a minimalistic configuration file.
You can set the previous bash command as the terminal title by this command.
Explanation:
-trap assigns a command to execute at a given bash signal.
-in the $BASH_COMMAND you find the last command
-you can set the terminal title with the escape sequence: \e]0;this is the title\007
-to let the echo care about the backslashes give the -e to it
Since trap is a built in bash command you find more informatin in 'man bash'for more
Source: http://www.davidpashley.com/articles/xterm-titles-with-bash.html
This is useful when watching a log file that does not contain timestamps itself.
If the file already has content when starting the command, the first lines will have the "wrong" timestamp when the command was started and not when the lines were originally written.
delete multiple files from git index that have already been deleted from disk. this is pretty terrible, I'm looking for a better way.
(much better!! http://www.commandlinefu.com/commands/view/1246/git-remove-files-which-have-been-deleted)
Prints a string indicating whether a command is an alias, keyword, function, builtin, or file. I have used this in my BASH scripts to allow an external parameter to define which function to run, and ensure that it is a valid function that can indeed be run.
If you provide the option -t to the script command and redirect stderr into a file, the timing information on what is going on on the terminal, is also stored.
You can replay the session via the scriptreplay command, where you can also provide a speedup factor (see the man page for details).
Great for demonstration purposes ...
Sometimes you only want to linsten the audio while output the video will be a waste of CPU resource and an annoying window. With option -vo null, you will enjoy the audio!