What Does Touch Command Do in Unix?
Contents the Touch Command Is a Standard Command Used in Unix/Linux Operating System Which Is Used to Create, Change and Modify Timestamps of a File. What Is...
Contents
The touch command is a standard command used in UNIX/Linux operating system which is used to create, change and modify timestamps of a file.
What is touch command in Unix examples?
10 practical examples of Touch command on Linux
- Create a blank file. …
- Create multiple files with touch. …
- Create lots and lots of files. …
- Avoid creating new files. …
- Change file access time – ‘a’ …
- Change the modified time ‘-m’ …
- Change access and modification time together. …
- Set a specific access/modify time instead of current time.
Must Read
What is touch in command prompt?
The touch command in Linux is used to change a file’s “Access“, “Modify” and “Change” timestamps to the current time and date, but if the file doesn’t exist, the touch command creates it. … The file timestamps in Windows can be changed using the built-in PowerShell commands.