To enable the mod_rewrite module:
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
To enable for specific <Directory> entry:
RewriteEngine On
To specify a rewrite pattern:
RewriteRule matchpattern rewriteto
Articles, notes and random thoughts on Software Development and Technology
To enable the mod_rewrite module:
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
To enable for specific <Directory> entry:
RewriteEngine On
To specify a rewrite pattern:
RewriteRule matchpattern rewriteto
h left
l right
j down
k up
1G 1st line
G last line
H top of screen
L bottom of screen
Install: sudo apt-get install smartmontools
List SMART status, whether enabled:
sudo smartctl -i /dev/sda (change drive device here)
Run test for a drive:
smartctl -t long /dev/sda
You can view a drive’s test statistics by typing:
smartctl -l selftest /dev/sda
To display detailed SMART information for an IDE drive, type:
sudo smartctl -a /dev/hda
To display detailed SMART information for a SATA drive, type:
sudo smartctl -a -d ata /dev/sda
cat /var/log/dmesg|more