Sync Two Folders
Sync two folders using rsync command
rsync -rogpav --delete /home/me /backup/folder
Sync two folders using rsync command
rsync -rogpav --delete /home/me /backup/folder
I had a collection of ico files with the ext gif - these are the commands I used to fix the situation…
rename .gif .ico *.gif
find . -name '*.ico' -exec convert "{}" "{}.gif" \;
OR
mogrify -format gif *.ico
rm -f *.ico
Divide terminal into 5 columns
ls /tmp | pr -T5 -W$COLUMNS
Some date finding commands..
$ date
Mon Mar 10 23:52:08 IST 2008
$ cal
March 2008
Su Mo Tu We Th Fr Sa
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31
Create a boot floppy - if you still have a floppy drive?
mkbootdisk --device /dev/fd0 `uname -r`
Remove two directories and their contents recursively
rm -rf dir1 dir2
Remove a directory called ‘dir’ and contents recursively
rm -rf dir
Create a compressed iso image of cdrom on disk
mkisofs /dev/cdrom | gzip > cd_iso.gz