Sunday, March 1, 2015

touch - Python Tutorial

touchtouch – Is a terminal command that is used to change a file’s date but we can also use touch to create a file via the terminal.


touch Example


#Create a file using touch
Thomass-MBP:test Tommy$ touch test.py
Thomass-MBP:test Tommy$ ls
test.py

#Create multiple files using touch
Thomass-MBP:test Tommy$ touch test1.py test2.py test3.py
Thomass-MBP:test Tommy$ ls
test.py test1.py test2.py test3.py
Thomass-MBP:test Tommy$

 



touch

No comments:

Post a Comment