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 is the command to find maximum memory taking process on the server?

872


What is a bash command?

811


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

782


What is the use of sed command in unix?

815


What is used to type command?

739






What do chown command do?

771


How does the system know where one command ends and another begins?

1841


Differentiate cmp command from diff command.

784


How to find $ai_serual resolved path by using unix

1240


What does sed command do in unix?

768


What are the dos commands?

854


What is the use of the tee command?

802


How do I search for a file in unix command?

730


What is the use of egrep command in unix?

804


Which command is used to delete all files in the current directory and all its sub-directories?

925