Linux man pages
Script downloads
Code snippets
Built in commands
Bash guide
View more...
Search and Replace Text in Files Recursively -
find . -type f -name "*.html" -print -exec perl -pi -w -e 's/oldsite.com/newsite.com/g;' {} ;
The first part "find . -type f -name "*.html" -print" finds all of
Replacing a Mirrored Disk Using mdadm - Basic steps for replacing a mirrored disk in software raid using mdadm.
Remove all raid partitions
mdadm --fail /dev/md0 /dev/sdb1
mdadm --fail /dev/md1 /dev/sdb2
View more...