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
Is it inbetween or in between?
What is “chmod” command?
what is the advaantage of each user having its own copy of the shell?
Why is it called a shebang?
Name the unix command to find how many days the server has been up.
Write a command to display a file’s contents in various formats?
How does shebang work?
What are the general commands in using unix os for a beginner?
Which command can you use to find the currently running process in unix server?
How do I search for text in vi?
Is ‘du’ a command? If so, what is its use?
Are you in or at the office?
What is the use of cut command in unix?
Give the command for finding the current date.
What is the use of the command 'ls -x chapter[1-5]' ?