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

LinuxÈëÃÅÃüÁî

·¢²¼Ê±¼ä:2010-12-11 20:29:33À´Ô´:ºìÁª×÷Õß:gcq288
echoÃüÁî

echoÃüÁîµÄ¹¦ÄÜÊÇÔÚÏÔʾÆ÷ÉÏÏÔʾһ¶ÎÎÄ×Ö£¬Ò»°ãÆðµ½Ò»¸öÌáʾµÄ×÷Óá£

¸ÃÃüÁîµÄÒ»°ã¸ñʽΪ£º echo [ -n ] ×Ö·û´®

ÆäÖÐÑ¡Ïîn±íʾÊä³öÎÄ×Öºó²»»»ÐУ»×Ö·û´®¿ÉÒÔ¼ÓÒýºÅ£¬Ò²¿ÉÒÔ²»¼ÓÒýºÅ¡£ÓÃechoÃüÁîÊä³ö¼ÓÒýºÅµÄ×Ö·û´®Ê±£¬½«×Ö·û´®Ô­ÑùÊä³ö£»ÓÃechoÃüÁîÊä³ö²»¼ÓÒýºÅµÄ×Ö·û´®Ê±£¬½«×Ö·û´®Öеĸ÷¸öµ¥´Ê×÷Ϊ×Ö·û´®Êä³ö£¬¸÷×Ö·û´®Ö®¼äÓÃÒ»¸ö¿Õ¸ñ·Ö¸î¡£



calÃüÁî

calÃüÁîµÄ¹¦ÄÜÊÇÏÔʾijÄêijÔµÄÈÕÀú¡£

¸ÃÃüÁîµÄÒ»°ã¸ñʽΪ£º cal [Ñ¡Ïî] [Ô [Äê]] ÃüÁîÖи÷Ñ¡ÏîµÄº¬ÒåΪ£º

- j ÏÔʾ³ö¸ø¶¨ÔÂÖеÄÿһÌìÊÇÒ»ÄêÖеĵڼ¸Ì죨´Ó1ÔÂ1ÈÕËãÆ𣩡£

- y ÏÔʾ³öÕûÄêµÄÈÕÀú¡£



dateÃüÁî

dateÃüÁîµÄ¹¦ÄÜÊÇÏÔʾºÍÉèÖÃϵͳÈÕÆÚºÍʱ¼ä¡£

¸ÃÃüÁîµÄÒ»°ã¸ñʽΪ£º date [Ñ¡Ïî] ÏÔʾʱ¼ä¸ñʽ£¨ÒÔ+¿ªÍ·£¬ºóÃæ½Ó¸ñʽ£©

date ÉèÖÃʱ¼ä¸ñʽ

ÃüÁîÖи÷Ñ¡ÏîµÄº¬Òå·Ö±ðΪ£º

-d datestr, --date datestr ÏÔʾÓÉdatestrÃèÊöµÄÈÕÆÚ

-s datestr, --set datestr ÉèÖÃdatestr ÃèÊöµÄÈÕÆÚ

-u, --universal ÏÔʾ»òÉèÖÃͨÓÃʱ¼ä

ʱ¼äÓò

% H Сʱ£¨00..23£©

% I Сʱ£¨01..12£©

% k Сʱ£¨0..23£©

% l Сʱ£¨1..12£©

% M ·Ö£¨00..59£©

% p ÏÔʾ³öAM»òPM

% r ʱ¼ä£¨hh£ºmm£ºss AM»òPM£©£¬12Сʱ

% s ´Ó1970Äê1ÔÂ1ÈÕ00£º00£º00µ½Ä¿Ç°¾­ÀúµÄÃëÊý

% S Ã루00..59£©

% T ʱ¼ä£¨24СʱÖÆ£©£¨hh:mm:ss£©

% X ÏÔʾʱ¼äµÄ¸ñʽ£¨£¥H:£¥M:£¥S£©

% Z ʱÇø ÈÕÆÚÓò

% a ÐÇÆÚ¼¸µÄ¼ò³Æ£¨ Sun..Sat£©

% A ÐÇÆÚ¼¸µÄÈ«³Æ£¨ Sunday..Saturday£©

% b Ôµļò³Æ£¨Jan..Dec£©

% B ÔµÄÈ«³Æ£¨January..December£©

% c ÈÕÆÚºÍʱ¼ä£¨ Mon Nov 8 14£º12£º46 CST 1999£©

% d Ò»¸öÔµĵڼ¸Ì죨01..31£©

% D ÈÕÆÚ£¨mm£¯dd£¯yy£©

% h ºÍ%bÑ¡ÏîÏàͬ

% j Ò»ÄêµÄµÚ¼¸Ì죨001..366£©

% m Ô£¨01..12£©

% w Ò»¸öÐÇÆڵĵڼ¸Ì죨0´ú±íÐÇÆÚÌ죩

% W Ò»ÄêµÄµÚ¼¸¸öÐÇÆÚ£¨00..53£¬ÐÇÆÚһΪµÚÒ»Ì죩

% x ÏÔʾÈÕÆڵĸñʽ£¨mm/dd/yy£©

% y ÄêµÄ×îºóÁ½¸öÊý×Ö£¨ 1999ÔòÊÇ99£©
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 15 ÌõÆÀÂÛ

  1. jarive ÓÚ 2011-04-19 22:50:41·¢±í:

    ÓеãÀÁÁË

  2. risechen ÓÚ 2011-04-14 22:22:43·¢±í:

    ÆäʵÕâ¸öÒÔÇ°¶¼Óùý

  3. liuzhihan2090 ÓÚ 2011-03-24 01:25:28·¢±í:

    Linux
    ÎļþµÄ»ù±¾ÃüÁî ls £ºÏÔʾָ¶¨Ä¿Â¼ÖеÄÎļþÇåµ¥£¬Èç¹ûûÓÐÖ¸¶¨Ä¿Â¼£¬ÔòĬÈÏΪµ±Ç°Ä¿Â¼¡£
    ls -a ÏÔʾÒþº¬Îļþ
    ls -l ³¤¸ñʽÊä³ö
    ls -R µÝ¹éÏÔʾ
    pwd£ºÏÔʾµ±Ç°Ä¿Â¼
    mkdir£º´´½¨Ä¿Â¼
    mkdir -p a/b/c £»´´½¨¶à¼¶Ä¿Â¼
    cd£ºÇл»¹¤×÷Ŀ¼
    touch£º´´½¨¿ÕÎļþ
    cp£º¸´ÖÆÎļþ cp -R£º¸´ÖÆĿ¼
    mv£º½«ÎļþÒƶ¯µ½Ä¿Â¼ÖÐ mv a b£º½«Îļþa¸ÄΪb
    rmdir£ºÉ¾³ýÖ¸¶¨µÄ¿ÕĿ¼
    rm£ºÉ¾³ýÎļþ
    cat£ºÏÔʾÎļþÄÚÈÝ

  4. AC834586898 ÓÚ 2011-03-19 16:24:39·¢±í:

    Ì«ÉÙÀ² Ï£ÍûÄܶàÌṩд

  5. jingyesih ÓÚ 2011-03-03 12:51:45·¢±í:

    ÕâҲ̫ÉÙÁË°É£¿

  6. 109358424 ÓÚ 2011-02-10 12:59:25·¢±í:

    µÄÈ·ÊÇÌ«ÉÙÁË£¡{:2_91:}

  7. ÀÏ°×¸É ÓÚ 2011-01-20 11:11:33·¢±í:

    ÎÒÏëÖªµÀËùÓеÄ

  8. t036521 ÓÚ 2011-01-16 10:54:30·¢±í:

    ѧϰ

  9. wurr707 ÓÚ 2011-01-15 21:08:05·¢±í:

    ¸öÈ˾õµÃ×îÖØÒªµÄ»¹ÊÇ»áÓÃman£¬ÁíÍâÓ¢ÎÄÒªºÃ

  10. wurr707 ÓÚ 2011-01-15 21:08:02·¢±í:

    ¸öÈ˾õµÃ×îÖØÒªµÄ»¹ÊÇ»áÓÃman£¬ÁíÍâÓ¢ÎÄÒªºÃ

  11. cwqing1973 ÓÚ 2011-01-15 20:24:41·¢±í:

    ѧϰ²»Ôڶ࣬¾ÛÉٳɶࡣ

  12. yandih ÓÚ 2011-01-15 12:41:34·¢±í:

    ¾ÍÁ½¸ö£¿

  13. wixii ÓÚ 2010-12-16 13:37:32·¢±í:

    Ì«ÉÙÁË°É

  14. rebma ÓÚ 2010-12-12 08:53:40·¢±í:

    ÉÙ£¬ºÜ²»Í´¿ì

  15. ÒÀÈ»¾ì¹Ë ÓÚ 2010-12-11 20:44:23·¢±í:

    ¾ÍÕâЩ~~£¿