Tip #231 Rename many files using find and perl
Rename a lot of files at once: Read more »Tip #224 Add header/footer to command output
If you want to surround the output of a command by a header or a footer try the following:Read more »
- TAGS:
- cat
Tip #223 Suspend ssh session
Suppose you have just sshed into a computer and you want to get back to the terminal prompt of the computer you started with. Escape, by default with ssh is "~", so enter "~" followed by "ctl-z" to suspend. You can then use 'fg' to go back to the ssh session. Read more »- TAGS:
Tip #221 fsck my life
To do a filesystem check on all of your partitions, here's a quick one-liner. It parses out /etc/fstab for the partitions and runs a fsck on them.Read more »
- TAGS:
Tip #220 Actively Monitor a File
This is a way to monitor "/var/log/messages" or any file for certain changes.The example below actively monitors "stuff" for the word "now" and as soon as "now" is added to the file, the contents of msg are sent by email
Read more »
Tip #219 Record your session
Record eveything printed on your terminal screen with the following command: Read more »- TAGS:
Tip #218 Edit previous commands with fc
Use the 'fc' command to open your previous command for editing in your default editor. Saving the changes will then run the edited command.'fc -l' will show a list of previous commands to edit and 'fc
- TAGS:
- fc
alias aptitude at awk bash bc cal cat cd colrm comm cp csh curl cut date dd df dialog diff dirname dpkg du fc find fuser grep gs gzip history iconv kill ksh last less ln ls lsof lynx m4 md5sum mkdir mkfifo mkisofs mv mysql nc netstat openssl OSX perl ping popd ps pushd python read redirection rm scp screen sed sort ssh stat sudo svn tail tar tee test top tr uniq vim wc wget xargs