Posted on 2012-09-04
Last Modified: 2012-09-14
what is the use of touch command?

what is the difference between touch -p and touch -t command...
Question by:tomvv
    LVL 76

    Expert Comment

    by:slightwv (䄆 Netminder)
    RTFM:  Read The Friendly Manpage?

    From a command prompt:  man touch

    Each version of Unix can have different command line options so your own manpage is the best resource.
    LVL 68

    Accepted Solution

    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.
    LVL 37

    Expert Comment

    by:Gerwin Jansen
    Where did you find "touch -p"? Have an example?
    LVL 48

    Expert Comment

    I've never come across a version of touch that has the -p flag.
    LVL 37

    Expert Comment

    by:Gerwin Jansen
    @Tintin - Me neither, that's why I'm curious about an example ;)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Suggested Solutions

    How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
    I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension ( This reminded me of questions tha…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now