Check These Out
Command binds a set of commands to the F12 key.
Feel free to alter the dashboard according to your own needs.
How to find the key codes?
Type
$ read
Then press the desired key (example: F5)
$ ^[[15~
Try
$ bind '"\e[15~"':"\"ssh su@ip-address\C-m"""
or
$ bind '"\e[16~"':"\"apachectl -k restart\C-m"""
txt2regex can be interactive or noninteractive and generates regular expressions for a variety of dialects based on user input. In interactive mode, the regex string builds as you select menu options. The sample output here is from noninteractive mode, try running it standalone and see for yourself. It's written in bash and is available as the 'txt2regex' package at least under debian/ubuntu.
Execute a process or list of commands in the given interval and output the difference in output.
This command securely erases all the unused blocks on a partition.
The unused blocks are the "free space" on the partition.
Some of these blocks will contain data from previously deleted files.
You might want to use this if you are given access to an old computer and you do not know its provenance.
The command could be used while booted from a LiveCD to clear freespace space on old HD.
On modern Linux LiveCDs, the "ntfs-3g" system provides ReadWrite access to NTFS partitions thus enabling this method to also be used on Wind'ohs drives.
NB depending on the size of the partition, this command could take a while to complete.
Friday is the 5th day of the week, monday is the 1st.
Output may be affected by locale.
This command is a more flexible than my previous submission.
It will work with spaces however suuuuper hacky and ugly.
Source: http://www.unix.com/shell-programming-scripting/146173-find-rename-files-using-find-mv-sed.html
Useful when you want to cron a daily deletion task in order to keep files not older than one year. The command excludes .snapshot directory to prevent backup deletion.
One can append -delete to this command to delete the files :
$ find /path/to/directory -not \( -name .snapshot -prune \) -type f -mtime +365 -delete
Sometimes the question comes up: How to get unbuffered tcpdump output into the next program in the pipe? i.e. if your OS forces you to wait for the buffer to fill before the next program sees any of the output
If you use -Uw- then you can't use -A (or -X or -XX) at the same time.
When the question comes up, I've never seen anyone suggest this simple solution: chaining 2 tcpdump instances.