touch command in linux



touch command: Mostly this command is use to create blank file. But also this command will help us to modify the time stamp of file.

Create a blank file
# touch test1.txt

Create multiple file
# touch test1.txt test2.txt test3.txt

Another way to create multiple file
# touch a{1..10}
# touch {a..z}
# touch {A..Z}

Change/modify only access time of file
# touch -c file1

Check file access time using stat command
# stat file1
Share on Google Plus

About Penguin Technology

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

2 comments: