Archive for July, 2008

Changing File’s Date and Time on Unix Systems

Wednesday, July 16th, 2008

Change Data and Time of a File

At times, we might want to change date and time of a file, for record purposes. For example, when you copying log file from remote machine, when it’s extract on local machine, the date and time will reflect to current date time.

touch Command

To update the date and time of file, run;

touch -t ccyymmddhhMMSS filename

For more info, run;

man touch

How to Use Wget to Download Manual from Website

Tuesday, July 8th, 2008

Problem:

Download online manual from web pages for offline reading.

Solution:

wget –no-parent –mirror -p –convert-links -P ~/Documents/local-browsing http://www.some-website.com/howto/