Tag Archives: tips

Tips and Tricks from Pesho

mount -t msdosfs -o large,-M=755 /dev/da0s1 temp/
tr -d \r < dosfile > newfile ===premahva bad charovete ot dos file
tr -d ‘”‘ <filename >newfilename — premahva ”
while IFS= read -r file; do rm — “$file”; done < filelist
sed ‘/define hostgroup/{N;N;N;d;}’ $i>$i.new && mv $i.new $i — namira i iztriva 3 reda sled tova 🙂
root@Microknoppix:~# ssh pstankov@hosting dd if=/dev/sdb2 |dd of=/dev/sda2
mailq |grep -i 0-|cut -f 1 -d “*”|postsuper -d –
dns hitrini za load balance
http://www.zytrax.com/books/dns/ch7/queries.html#rrset-order
check and repair all tables
mysqlcheck –all-databases -u root -p
mdconfig -a -t vnode -f /usr/space/work/proxmox-ve_1.9-6542-7.iso -u 1
[root@darksun ~]# mount -t cd9660 /dev/md1 /mnt/temp/
import -window root screenshot1.png – printscreena
find . -name ‘spam-*’ | xargs rm

freeBSD
pw lock vivek
pw unlock vivek
karmic ubuntu
http://azerdark.wordpress.com/2009/12/04/ubuntu-9-10-repository-list/