touch (update access and modification date)

team bbl


Sets the access and modification dates for a file to the current date and time. If the file doesn't exist, touch creates an empty file, setting the dates.

 Format:    touch filelist Examples:  touch report 

Opt

What It Does

Examples

-a

Update only the access date

touch -a file1.txt

-c

Don't create a file

touch -c file3

-m

Update only the modification date

touch -m file4

-r filename

Change date to match filename

touch -r file2 report3


    team bbl



    Spring Into Linux
    Spring Into Linux
    ISBN: 0131853546
    EAN: 2147483647
    Year: 2005
    Pages: 362
    Authors: Janet Valade

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net