Nifty linux commands

I tend to forget stuff I don’t do every day.

Especially unix commands:)

 

To mount a file system Unicode. This prevents funny looking characters, like Norwegian æøå.   

mount -t cifs //server/share /mountpoint/ -o username=james,password=bond,iocharset=utf8,codepage=cp850

Keep two folders in sync using rsync. This way only changes will be transferred.

rsync --verbose --progress --recursive --times --perms --compress --delete /source/ /destination/

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">