Javatpoint Logo
Javatpoint Logo

Linux touch -a command

touch command with option 'a' is used to change the access time of a file. By default, it will take the current time of your system.

Syntax:

Example:

To see the access and change time of your file, you need to use stat command.

TOUCH -a Command

In above snapshot we have used 'stat' command (which we'll learn in later tutorial)just to check the status of our directory (usr). So don't get confused with that. Now you can match the access time of directory (usr) before and after passing the command 'touch -a usr. It has taken the default access time of our system.

Next TopicLinux Touch -m




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA