What Is the command to change a file's creation time. means
one file is created at the time 15:19 then time should br
changed to 14:14

Answer Posted / deepti shrivastava

touch :- used to change the time stamps

Syntax :- touch options expression filename(s)
where expression consists of eight digit number
using the format MMDDhhmm(month,day,hr & min)
E.g :- $ touch 03091245 emp.lst ; ls -l emp.lst
-rw-r--r-- 1 kumar metal 870 Mar 09 12:45 emp.lst

The -m & -a options chng the modifications & access times.
$ touch -m 02281030 emp.lst ; ls -l emp.lst
-rw-r--r-- 1 kumar metal 870 Feb 28 10:30 emp.lst

Is This Answer Correct ?    42 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the metacharacter mean?

690


Differentiate cmp command from diff command.

677


Name the various commands that are used for the user information in unix.

638


Differentiate cat command from more command.

663


Why is it called a shebang?

676






What does this command do,"$more readme.txt“?

775


What is the difference between awk and grep?

631


Who command in unix?

680


Describe the zip/unzip command using gzip.

706


Why is awk called awk?

664


What are the differences among a system call, a library function, and a unix command?

668


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

758


How do I use nslookup?

658


What difference between cmp and diff commands?

819


How do I use grep to search for a file?

668