touch

what is the use of touch command?

what is the difference between touch -p and touch -t command...
tomvvAsked:
Who is Participating?
 
woolmilkporcCommented:
touch updates the access and modification timestamps of a file. The file will be created if it doesn't exist.

"-t" allows for specifying a timestamp other than the (default) current time.

I'm not aware of a "-p" flag for touch.
0
 
slightwv (䄆 Netminder) Commented:
RTFM:  Read The Friendly Manpage?

From a command prompt:  man touch

http://unixhelp.ed.ac.uk/CGI/man-cgi?touch
http://www.rtr.com/winpak/Documentation/touch.htm

Each version of Unix can have different command line options so your own manpage is the best resource.
0
 
Gerwin Jansen, EE MVETopic Advisor Commented:
Where did you find "touch -p"? Have an example?
0
 
TintinCommented:
I've never come across a version of touch that has the -p flag.
0
 
Gerwin Jansen, EE MVETopic Advisor Commented:
@Tintin - Me neither, that's why I'm curious about an example ;)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.