Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

LinuxÖ®ÃüÁî

1.date :ÏÔʾÈÕÆÚ
%:::z   ʱÇø
 
2. cal :ÏÔʾÈÕÀú£¨ºáÅÅ£©£¬ncal£¨ÊúÅÅ£©
3. bc :µ÷ÓüÆËãÆ÷
   ÓÃ/×÷³ý·¨ÔËËãʱ£¬¿ÉÏÈÓÃÖ¸Áî scale=number£¨number±íʾÏÔʾµÄСÊýµãλÊý£© ÔÙ×ö³ý·¨ÔËË㣬ʹµÃ¿ÉÒÔÏÔʾСÊýµãºó(number)λ¡££¨bcĬÈÏÖ»ÏÔʾÕûÊý£©
   Í˳ö¼ÆËãÆ÷£º quit
4.[Tab]°´¼üÁ½´Î :ÃüÁȫ»òµµ°¸²¹Æë×÷ÓÃ
5.[Ctrl+c]£ºÖжÏÄ¿Ç°³ÌÐò
6.[Ctrl+d]: ¼üÅÌÊäÈë½áÊø»òÍ˳öÎÄ×Ö½Ó¿Ú¡££¨È»ºóÖØÐÂLoginϵͳ£©
7.man [Ö¸Áî]£º Ö¸ÁîµÄManual page(²Ù×÷˵Ã÷)
8.info [Ö¸Áî]£ºÖ¸ÁîµÄinfo,¹¦ÄÜÀàËÆman.
 
£¹.who£º¿´¿´µ±Ç°LinuxϵͳÓÐÄÄЩÈËÔÚʹÓá£
10.netstat –a :²é¿´ÍøÂçÁª»ú״̬  £¨×¢£º ²»ÊǺÜÇå³þ¸ù¾Ý¸ø³öÀ´µÄÏûÏ¢Ôõô¿´ÍøÂçµÄÁª»ú״̬£©
11.shutdown: ¹Ø»ú
 
12.df(disk free)-----ÏÔʾÒÑ°²×°ÎļþϵͳµÄ´ÅÅÌÈÝÁ¿×´Ì¬
df [options][name]
$ df -h  ÒÔÓѺõĸñʽÊä³öËùÓÐÒÑ°²×°ÎļþϵͳµÄ´ÅÅÌÈÝÁ¿×´Ì¬
$ df -m /home ÒÔMΪµ¥Î»Êä³öhomeĿ¼µÄ´ÅÅÌÈÝÁ¿×´Ì¬
$ df -k  ÒÔKΪµ¥Î»Êä³öËùÓÐÒÑ°²×°ÎļþϵͳµÄ´ÅÅÌÈÝÁ¿×´Ì¬
$ df -i  ±¨¸æ¿ÕÏеġ¢ÓùýµÄ»ò²¿·ÝÓùýµÄ£¨°Ù·Ý±È£©Ë÷Òý½Úµã
$ df -t ext3 ½öÏÔʾÎļþÀàÐÍΪext3µÄÎļþϵͳµÄ´ÅÅÌ״̬
$ df -x ext3 ½öÏÔʾÎļþÀàÐͲ»Îªext3µÄÎļþϵͳµÄ´ÅÅÌ״̬
$ df -T  ³ýÏÔʾÎļþϵͳ´ÅÅÌÈÝÁ¿´óСÍ⻹ÏÔʾÎļþϵͳÀàÐÍ
$ df -l  ½öÏÔʾ±¾µØÎļþϵͳ¡£
13.fsck(file system check): check and repair a Linux file system.
14.cat : °Ñµµ°¸´®Á¬½Óºó´«µ½»ù±¾Êä³ö£¨Ó©Ä»»ò¼Ó > fileName µ½ÁíÒ»¸öµµ°¸£©
15.ls(list): Ö´ÐÐlsÖ¸Áî¿ÉÁгöĿ¼µÄÄÚÈÝ£¬°üÀ¨ÎļþºÍ×ÓĿ¼µÄÃû³Æ¡£
ls –al: ÁгöËùÓеĵµ°¸£¬°üÀ¨Òþ²ØÎļþ¡££¨Òþ²ØÎļþ¾ÍÊǵµ°¸Ç°ÃæµÚÒ»¸ö×Ö·ûΪ.µÄµµ°¸£©
16.¸ü¸ÄterminalÀïµÄÏÔʾÓïÑÔ¡£
 
/etc/passwd: ËùÓеÄϵͳÉϵÄÕ˺ţ¬Ò»°ãÉí·ÝʹÓÃÕߣ¬rootµÄÏà¹ØÐÅÏ¢¼Ç¼ÔÚ´Ë¡£
/etc/shadow: ÃÜÂë¼Ç¼ÔÚ´Ë¡£
/etc/group: ËùÓÐȺ×éÃû³Æ¡£
·ÖÎö£ºdrwxr--r—
Ŀ¼£¬ÇÒÖ»¿É¸øĿ¼ËùÓÐÕ߿ɶÁ¿Éд¿ÉÖ´ÐвÙ×÷£¬Í¬×éÒÔ¼°ÆäËûÈ˾ù²»¿É½øÈë´ËĿ¼¡£
ÒòΪËùÔÚȺ×éÒÔ¼°·ÇȺ×éÈ˶ÔÕâ¸öĿ¼ûÓÐx£¨Ö´ÐУ©È¨ÏÞ£¬ÎÞ·¨¶ÔĿ¼½øÐвÙ×÷£¬ÒÔ¼°½øÈëĿ¼¡£
Reference: ¡¶Äñ¸çµÄ˽·¿²Ë¡·


Ïà¹ØÎĵµ£º

linux»·¾³±àÒëc++¶¯Ì¬¿âÒÔ¼°µ÷Ó÷½Ê½

ÉÏÒ»´ÎÓÃlinuxÊÇ2002ÄêÓÃkdevelop¼°qt¿â¿ª·¢¶àýÌåÈí¼þ¡£
ʱ¸ô8ÄêÔÙÒ»´ÎÔÚlinuxϸ㿪·¢£¬ÒÀÈ»²ËÄñ£¬»¹ÊÇÉúÊè¡£
¸Ð¾õ×Ô¼ºµÄ´óÄԵĴ洢¿Õ¼ä£¬Ëæ×ÅÄêÁäµÄÔö¼ÓÔÚ±äС£¬ºÜ¶àŪ¹ýµÄ£¬ÓÖÖ»ÄÜ´ÓͷѧÆð¡£
²»¹ýÓо仰“»îµ½ÀÏ£¬Ñ§µ½ÀÏ”¹þ£¡
²ÑÀ¢£¬²ÑÀ¢¡£
1¡¢±àд¶¯Ì¬¿âµÄc++Îļþ
    cvpnlib.cpp cv ......

Linux²é¿´Ó²¼þÐÅÏ¢

ÔÚLINUX»·¾³¿ª·¢Çý¶¯³ÌÐò£¬Ê×ÏÈҪ̽²âµ½ÐÂÓ²¼þ£¬½ÓÏÂÀ´¾ÍÊÇ¿ª·¢Çý¶¯³ÌÐò¡£
³£ÓÃÃüÁîÕûÀíÈçÏ£º
ÓÃÓ²¼þ¼ì²â³ÌÐòkudzu̽²âÐÂÓ²¼þ£ºservice kudzu start ( or restart)
²é¿´CPUÐÅÏ¢£ºcat /proc/cpuinfo
²é¿´°å¿¨ÐÅÏ¢£ºcat /proc/pci
²é¿´PCIÐÅÏ¢£ºlspci (Ïà±Ècat /proc/pci¸üÖ±¹Û£©
²é¿´ÄÚ´æÐÅÏ¢£ºcat /proc/memin ......

LinuxÏ¿ÉÒÔÌæ»»ÔËÐÐÖеijÌÐòô?

½ñÌì±»ÅóÓÑÎʼ°“LinuxÏ¿ÉÒÔÌæ»»ÔËÐÐÖеijÌÐòô£¿”£¬ÒÔÇ°ÒÀÏ¡¼ÇµÃLinuxÏÂÊÇ¿ÉÒԵģ¨¶øWindows¾Í²»Èã©£¬ÓÚÊÇËæ¿Ú´ðµÀ“OK”¡£½á¹ûÅóÓÑ·¢À´Ò»¸öÖ´Ðнá¹û£º£¨testÕýÔÚÔËÐÐÖУ©
# cp test2 test
cp: cannot create regular file `test': Text file busy
¿´ÆðÀ´ÊdzÌÐò±»Õ¼Óã¬ÎÞ·¨¸²¸Ç¡£ÓÚÊÇ×Ô¼ºÓÖÔÙ× ......

LinuxÎļþϵͳÖвéÕÒÎļþÃüÁîÓ÷¨

ÔÚµ±Ç°Ä¿Â¼ÏÂËÑË÷Ö¸¶¨Îļþ£º
find . -name test.txt
ÔÚµ±Ç°Ä¿Â¼ÏÂÄ£ºýËÑË÷Îļþ£º
find . -name '*.txt'
ÔÚµ±Ç°Ä¿Â¼ÏÂËÑË÷Ìض¨ÊôÐÔµÄÎļþ£º
find . -amin -10 # ²éÕÒÔÚϵͳÖÐ×îºó10·ÖÖÓ·ÃÎʵÄÎļþ
find . -atime -2 # ²éÕÒÔÚϵͳÖÐ×îºó48Сʱ·ÃÎʵÄÎļþ
find . -empty # ²éÕÒÔÚϵͳÖÐΪ¿ÕµÄÎļþ»òÕßÎļþ¼Ð
find . -g ......

Linuxϵͳ /etc/fstab¸÷¸ö×ֶκ¬Òå½âÊÍ

¡¡# fstabÎļþµÄ×÷ÓÃ
¡¡¡¡Îļþ/etc/fstab´æ·ÅµÄÊÇϵͳÖеÄÎļþϵͳÐÅÏ¢¡£µ±ÕýÈ·µÄÉèÖÃÁ˸ÃÎļþ£¬Ôò¿ÉÒÔͨ¹ý"mount /directoryname"ÃüÁîÀ´¼ÓÔØÒ»¸öÎļþϵͳ£¬Ã¿ÖÖÎļþϵͳ¶¼¶ÔÓ¦Ò»¸ö¶ÀÁ¢µÄÐУ¬Ã¿ÐÐÖеÄ×ֶζ¼Óпոñ»òtab¼ü·Ö¿ª¡£Í¬Ê±fsck¡¢ mount¡¢umountµÄµÈÃüÁÀûÓøóÌÐò¡£
¡¡¡¡# fstabÎļþ¸ñʽ
¡¡¡¡ÏÂÃæÊÇ/etc/fata ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ