When touch command is used without any option but with an expression, which of the following timestamps are changed?

Hưng Thịnh

New member
When touch command is used without any option but with an expression, which of the following timestamps are changed?
A. modification time
B. last access time
C. last inode modification
D. modification time and last access time
 
Answer: d
Explanation: When touch command is used without options but with an expression, it changes both access and modification times. The expression is an eight number using the format MMDDhhmm (month, day, hour and minute). For example,
Code:
$ touch 03161430  emp.txt ; ls -l emp.txt
rw-rw-rw-  1  kumar  metal  870 Mar 16 14:30  emp.txt
 

Tìm kiếm

Back
Top