×ðÁú¿­Ê±¹ÙÍøµÇ¼

³£¼ûµÄʱ¼ä´ÁÊôÐÔÔÚLinuxÎļþϵͳÖÐ

LinuxÎļþϵͳÖг£¼ûµÄʱ¼äÊôÐÔ°üÀ¨»á¼ûʱ¼ä£¨atime£©¡¢ÐÞ¸Äʱ¼ä£¨mtime£©ºÍ¸ü¸Äʱ¼ä£¨ctime£©¡£ÕâЩʱ¼äÊôÐԼͼÁËÎļþ»òĿ¼µÄ²î±ð²Ù×÷ʱ¼ä£¬¹ØÓÚÎļþϵͳµÄÖÎÀíºÍ¸ú×ÙºÜÊÇÖ÷Òª¡£ÒÔϽ«ÖðÒ»ÏÈÈÝÕâÈýÖÖʱ¼äÊôÐÔ£¬²¢¸½ÉÏÏìÓ¦µÄ´úÂëʾÀý¡£

»á¼ûʱ¼ä£¨atime£©

»á¼ûʱ¼äÖ¸µÄÊÇÎļþ»òĿ¼×î½üÒ»´Î±»»á¼û»òÖ´ÐеÄʱ¼ä¡£µ±Îļþ±»¶ÁÈ¡¡¢Ö´ÐлòÉó²éʱ£¬»á¼ûʱ¼ä»á±»¸üС£ÔÚ´ó´ó¶¼ÇéÐÎÏ£¬atime»á±»ÏµÍ³×Ô¶¯¸üУ¬µ«Ò²¿ÉÒÔͨ¹ýÉèÖÃÀ´Õ¥È¡¸üС£ÏÂÃæÊÇÒ»¸ö¼òÆÓµÄʾÀý£º

touch example.txt
ls -l example.txt
# Êä³öʾÀý£º-rw-rw-r-- 1 user user 0 Dec 1 00:00 example.txt
cat example.txt
ls -l example.txt
# Êä³öʾÀý£º-rw-rw-r-- 1 user user 0 Dec 1 01:00 example.txt

µÇ¼ºó¸´ÖÆ

ÔÚÉÏÃæµÄʾÀýÖУ¬ÎÒÃǽ¨ÉèÁËÒ»¸öÃûΪexample.txtµÄÎļþ£¬²¢Í¨¹ýcatÏÂÁîÉó²éÁËÎļþµÄÄÚÈÝ£¬ÕâÑù»á¼ûʱ¼ä¾Í±»¸üÐÂÁË¡£

ÐÞ¸Äʱ¼ä£¨mtime£©

ÐÞ¸Äʱ¼äÖ¸µÄÊÇÎļþÄÚÈÝ×î½üÒ»´Î±»Ð޸ĵÄʱ¼ä¡£µ±ÎļþÄÚÈݱ»ÐÞ¸Äʱ£¬ÐÞ¸Äʱ¼ä»á±»¸üС£ÏÂÃæÊÇÒ»¸öÐÞ¸Äʱ¼äµÄʾÀý£º

touch example.txt
ls -l example.txt
# Êä³öʾÀý£º-rw-rw-r-- 1 user user 0 Dec 1 00:00 example.txt
echo "Hello World" > example.txt
ls -l example.txt
# Êä³öʾÀý£º-rw-rw-r-- 1 user user 12 Dec 1 01:00 example.txt

µÇ¼ºó¸´ÖÆ

ÔÚÉÏÃæµÄʾÀýÖУ¬ÎÒÃÇͨ¹ýechoÏÂÁîÏòexample.txtдÈëÁËÄÚÈÝ£¬ÕâÑùÐÞ¸Äʱ¼ä¾Í±»¸üÐÂÁË¡£

¸ü¸Äʱ¼ä£¨ctime£©

¸ü¸Äʱ¼äÖ¸µÄÊÇÎļþµÄi½Úµã£¨inode£©ÐÅÏ¢×î½üÒ»´Î±»Ð޸ĵÄʱ¼ä¡£µ±ÎļþµÄȨÏÞ¡¢ËùÓÐÕß»òÆäËûÔªÊý¾Ý±¬·¢×ª±äʱ£¬¸ü¸Äʱ¼ä»á±»¸üС£ÏÂÃæÊÇÒ»¸ö¸ü¸Äʱ¼äµÄʾÀý£º

touch example.txt
ls -l example.txt
# Êä³öʾÀý£º-rw-rw-r-- 1 user user 0 Dec 1 00:00 example.txt
chmod 777 example.txt
ls -l example.txt
# Êä³öʾÀý£º-rwxrwxrwx 1 user user 0 Dec 1 01:00 example.txt

µÇ¼ºó¸´ÖÆ

ÔÚÉÏÃæµÄʾÀýÖУ¬ÎÒÃÇͨ¹ýchmodÏÂÁîÐÞ¸ÄÁËexample.txtÎļþµÄȨÏÞ£¬ÕâÑù¸ü¸Äʱ¼ä¾Í±»¸üÐÂÁË¡£

×ܽ᣺LinuxÎļþϵͳÖеÄʱ¼äÊôÐÔ°üÀ¨»á¼ûʱ¼ä¡¢ÐÞ¸Äʱ¼äºÍ¸ü¸Äʱ¼ä£¬ËüÃǸ÷×ԼͼÁËÎļþ»òĿ¼²î±ð²Ù×÷µÄʱ¼äÐÅÏ¢¡£Í¨¹ý´úÂëʾÀýµÄÑÝʾ£¬¿ÉÒÔ¸üÖ±¹ÛµØÃ÷È·ÕâЩʱ¼äÊôÐÔÔÚLinuxϵͳÖеÄÓ¦Óú͸üз½·¨¡£

ÒÔÉϾÍÊdz£¼ûµÄʱ¼ä´ÁÊôÐÔÔÚLinuxÎļþϵͳÖеÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí£¬°æȨÕùÒéÓë±¾Õ¾Î޹أ¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿­Ê±¹ÙÍøµÇ¼ÂËÓÍ»úÍø¹Ù·½Ì¬¶È£¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ£¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢£¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢£¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼

18523999891

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎ壬9:30-18:30£¬½ÚãåÈÕÐÝÏ¢

QR code
ÍøÕ¾µØͼ