ºìÁªLinuxÃÅ»§
Linux°ïÖú

[[CC]YY]MMDDhhmm[.ss] ÖÐCCÊÇʲô¶«¶«£¿

·¢²¼Ê±¼ä:2012-11-24 09:55:41À´Ô´:ºìÁª×÷Õß:gogo11
ÒýÓÃ:
[root@FileServer 1234]# touch --help
Ó÷¨£ºtouch [Ñ¡Ïî]... Îļþ...
½«Ã¿¸öÎļþµÄ·ÃÎÊʱ¼äºÍÐÞ¸Äʱ¼ä¸ÄΪµ±Ç°Ê±¼ä¡£

²»´æÔÚµÄÎļþ½«»á±»´´½¨Îª¿ÕÎļþ£¬³ý·ÇʹÓÃ-c »ò-h Ñ¡Ïî¡£

Èç¹ûÎļþÃûΪ"-"ÔòÌØÊâ´¦Àí£¬¸ü¸ÄÓë±ê×¼Êä³öÏà¹ØµÄÎļþµÄ·ÃÎÊʱ¼ä¡£

³¤Ñ¡Ïî±ØÐëʹÓõIJÎÊý¶ÔÓÚ¶ÌÑ¡ÏîʱҲÊDZØÐèʹÓõġ£
-a Ö»¸ü¸Ä·ÃÎÊʱ¼ä
-c, --no-create ²»´´½¨ÈκÎÎļþ
-d, --date=×Ö·û´® ʹÓÃÖ¸¶¨×Ö·û´®±íʾʱ¼ä¶ø·Çµ±Ç°Ê±¼ä
-f (ºöÂÔ)
-h, --no-dereference »áÓ°Ïì·ûºÅÁ´½Ó±¾Éí£¬¶ø·Ç·ûºÅÁ´½ÓËùָʾµÄÄ¿µÄµØ
(µ±ÏµÍ³Ö§³Ö¸ü¸Ä·ûºÅÁ´½ÓµÄËùÓÐÕßʱ£¬´ËÑ¡Ïî²ÅÓÐÓÃ)
-m Ö»¸ü¸ÄÐÞ¸Äʱ¼ä
-r, --reference=Îļþ ʹÓÃÖ¸¶¨ÎļþµÄʱ¼äÊôÐÔ¶ø·Çµ±Ç°Ê±¼ä
-t STAMP ʹÓÃ[[CC]YY]MMDDhhmm[.ss] ¸ñʽµÄʱ¼ä¶ø·Çµ±Ç°Ê±¼ä
--time=WORD ʹÓÃWORD Ö¸¶¨µÄʱ¼ä£ºaccess¡¢atime¡¢use ¶¼µÈÓÚ-a
Ñ¡ÏîµÄЧ¹û£¬¶ømodify¡¢mtime µÈÓÚ-m Ñ¡ÏîµÄЧ¹û
--help ÏÔʾ´Ë°ïÖúÐÅÏ¢²¢Í˳ö
--version ÏÔʾ°æ±¾ÐÅÏ¢²¢Í˳ö

Çë×¢Ò⣬-d ºÍ-t Ñ¡Ïî¿É½ÓÊܲ»Í¬µÄʱ¼ä/ÈÕÆÚ¸ñʽ¡£

ÇëÏòbug-coreutils@gnu.org ±¨¸ætouch µÄ´íÎó
GNU coreutils ÏîÄ¿Ö÷Ò³£º<http://www.gnu.org/software/coreutils/>
GNU Èí¼þÒ»°ãÐÔ°ïÖú£º<http://www.gnu.org/gethelp/>
ÇëÏò<http://translationproject.org/team/zh_CN.html> ±¨¸ætouch µÄ·­Òë´íÎó
Òª»ñÈ¡ÍêÕûÎĵµ£¬ÇëÔËÐУºinfo coreutils 'touch invocation'
[root@FileServer 1234]#
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 1 ÌõÆÀÂÛ

  1. lfgoxwqu ÓÚ 2012-11-24 14:52:34·¢±í:

    ²»¶®