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 does the metacharacter mean?
Differentiate cmp command from diff command.
Name the various commands that are used for the user information in unix.
Differentiate cat command from more command.
Why is it called a shebang?
What does this command do,"$more readme.txt“?
What is the difference between awk and grep?
Who command in unix?
Describe the zip/unzip command using gzip.
Why is awk called awk?
What are the differences among a system call, a library function, and a unix command?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
How do I use nslookup?
What difference between cmp and diff commands?
How do I use grep to search for a file?