nicht der Oberbringer
[http://www.easylinux.de/Artikel/ausgabe/2003/09/054-shell-tipps ] aber der Anfang :) Bash Prompt HOWTO [http://www.gilesorr.com/bashprompt/prompts/mountain.html Bash Prompt HOWTO ] http://www.exan.de/faq/q_linux_shell.html http://www-user.tu-chemnitz.de/~hot/unix_linux_werkzeugkasten/bash.html http://www.tu-chemnitz.de/urz/linux/faq/shell.html http://www.tu-chemnitz.de/urz/linux/faq/shell.html#Eingestellte_Tastenbelegungen_Au
schreddern von Platteninhalten
dd bs=1M conv=noerror if=/dev/random of=/dev/sdX Dann gibt es doch auch noch shred! Oder 1)Knoppix cd booten 2)fdisk -l /dev/hda 3)Köpfe*Sektoren*Zylinder rechnen. Wert merken. 4)dd if=/dev/random of=/dev/hda bs=512 count="errechneter Wert" Ist aber zugegeben wirklich eine umstaendliche Methode. http://sg.torque.net/sg/sdparm.html http://www.samwel.tk/laptop_mode/tools/faq.html root@vible:~# apt-cache search sdparm sdparm - Output and modify SCSI device parameters root@vible:~# apt-get install sdparm http://www.nslu2-linux.org/wiki/FAQ/SpinDownUSBHarddisks http://www.nslu2-linux.org/wiki/FAQ/SpinDownUSBHarddisks
#!/bin/sh
disk=$1
interval=$2
state=`grep " $disk " /proc/diskstats`
count=$interval
up=1
while [ true ]; do
sleep 10
count=$(($count-10))
newstate=`grep " $disk " /proc/diskstats`
if [ "$state" = "$newstate" ]; then
if [ $count -lt 0 ]; then
count=$interval
if [ $up = 1 ]; then
#echo -e "spin-down\t" `date`
sync
state=`grep " $disk " /proc/diskstats`
scsi-stop /dev/$disk
up=0
fi
fi
else
#echo -e "drive is up\t" `date`
count=$interval
state="$newstate"
up=1
fi
done
SpinDownUSBHarddisks
Linux/Daily Usage Tipps/Meine 10 Tipps zum Umgang mit der Bash (last edited 2010-01-16 18:29:41 by DetlevLengsfeld)