한국어

네트워킹

온누리070 플레이스토어 다운로드
    acrobits softphone
     온누리 070 카카오 프러스 친구추가온누리 070 카카오 프러스 친구추가친추
     카카오톡 채팅 상담 카카오톡 채팅 상담카톡
    
     라인상담
     라인으로 공유

     페북공유

   ◎위챗 : speedseoul


  
     PAYPAL
     
     PRICE
     

pixel.gif

    before pay call 0088 from app


Linux and Unix touch

Quick links

About touch
Syntax
Examples
Related commands
Linux and Unix main page

About touch

touch changes file timestamps.

Syntax

touch [OPTION]... FILE...

Description

The touch command updates the access and modification times of each FILE to the current system time.

If you specify a FILE that does not already exist, touch creates an empty file with that name (unless the -c or -h options are specified; see below).

If the FILE argument is a dash ("-") is handled specially and causes touch to change the times of the file associated with standard output.

Options

In the options below, arguments to long options are mandatory for short options as well:

-aChange only the access time.
-c--no-createDo not create any files.
-d--date=STRINGParse the string STRING and use it instead of current time.
-fIgnored, but included for compatibility reasons.
-h--no-dereferenceAffect each symbolic link instead of any referenced file (useful only on systems that can change the timestamps of a symlink).
-mChange only the modification time.
-r--reference=FILEUse this FILE's times instead of current time.
-t STAMPUse [[CC]YY]MMDDhhmm[.ss] instead of current time.
--time=WORDChange the specified time: WORD is accessatime, or use; or modify(equivalent to -a WORD), or mtime (equivalent to -m).
--helpDisplay a help message, and exit.
--versionDisplay version information, and exit.

Note that the -d and -t options accept different time-date formats.

Examples

touch file.txt

If file.txt exists, touch updates its access and modification times to the current time. Iffile.txt doesn't exist, it is created as a new, empty file.

Related commands

date — Output the current date and time.

조회 수 :
28515
등록일 :
2015.11.15
13:09:56 (*.160.88.142)
엮인글 :
http://www.webs.co.kr/index.php?document_srl=3159576&act=trackback&key=7d1
게시글 주소 :
http://www.webs.co.kr/index.php?document_srl=3159576
List of Articles