I recently found myself needing to locate all world writable files in a directory tree and came across the following useful command:
find /var/ -type d -perm -o+w -exec ls -ld {} \;
The syntax may vary depending on the flavour of Unix/Linux you’re using, but this worked on Ubuntu for me.
1. Insert CD/DVD
2. Open a terminal window and use the following command to determine your DVD device:
$ drutil status
Vendor Product Rev
HL-DT-ST DVDRW GSA-S10N AP09
Type: DVD-ROM Name: /dev/disk1
3. Umount the disk with the following command:
$ diskutil unmountDisk /dev/disk1
Disk /dev/disk1 unmounted
4. Use the dd command to create the ISO file:
$ dd if=/dev/disk1 of=file.iso bs=2048
5. Mount the ISO file to verify that it is readable:
$ hdid file.iso
If you’re looking for a utility to allow you to read ISO files on the Windows platform, try Virtual Clone drive from SlySoft.
You can securely synchronize directory structures between two Linux computers by using the following command:
rsync -ave ssh --delete myhost.example.com:Documents/ Documents/
The −−delete option ensures that any files or directories that no longer exist on the source are also removed from the destination.
