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
What is grep command in unix with examples?
What are file commands?
What is the behavioural difference between cmp and diff commands?
How can you see the command line history?
Give the command for finding the current date.
How to display no of records in oracle using unix command?
Who wrote grep?
What is awk used for?
What is awk good for?
How do I open a port?
What is grep short for?
What do chmod, chown, chgrp commands do?
hw will u use awk in replacing cahrs and files
What are filter commands in unix?
Can you enlist some commonly used network commands?