• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 479
  • Last Modified:

touch

what is the use of touch command?

what is the difference between touch -p and touch -t command...
0
tomvv
Asked:
tomvv
1 Solution
 
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
 
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
 
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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now