среда, 29 апреля 2009 г.

Время, создание образа директории

Use the date command with the -d parameter, and pass in a number of date increments in the future in days, minutes, years, months, or even weeks. For instance, to find the date 3 weeks in the future, use the following command from the shell prompt:

date -d "3 weeks"

To find the date from a period of time in the past, you would add "ago" to the end of the command:

date -d "3 weeks ago"

You can even combine the arguments together -- so if you wanted to find the exact date for 3 weeks and 2 days in the future, you would use:

date -d "3 weeks 2 days"

Linux newbies might appreciate knowing that you need no software app to create burn-able CD images of a particular directory on your system. One terminal command:

mkisofs -V LABEL -r DIRECTORY | gzip > cdrom.iso.gz


creates a compressed ISO for easy backup (replace the italicized sections with your CD label and directory, of course).

Комментариев нет: