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

linux Ö´Ðкǫ́ÃüÁî

nohupÃüÁîÓ÷¨¼ò½é
nohup
Èç¹ûÄãÕýÔÚÔËÐÐÒ»¸ö½ø³Ì£¬¶øÇÒÄã¾õµÃÔÚÍ˳öÕÊ»§Ê±¸Ã½ø³Ì»¹²»»á½áÊø£¬ÄÇô¿ÉÒÔʹÓÃn o h u pÃüÁî¡£¸ÃÃüÁî¿ÉÒÔÔÚÄãÍ˳öÕÊ»§Ö®ºó¼ÌÐøÔËÐÐÏàÓ¦µÄ½ø³Ì¡£n o h u p¾ÍÊDz»¹ÒÆðµÄÒâ˼( no hang up)¡£
¸ÃÃüÁîµÄÒ»°ãÐÎʽΪ£º
´úÂë:
nohup command &
ʹÓÃnohupÃüÁîÌá½»×÷Òµ
Èç¹ûʹÓÃn o h u pÃüÁîÌá½»×÷Òµ£¬ÄÇôÔÚȱʡÇé¿öϸÃ×÷ÒµµÄËùÓÐÊä³ö¶¼±»Öض¨Ïòµ½Ò»¸öÃûΪn o h u p . o u tµÄÎļþÖУ¬³ý·ÇÁíÍâÖ¸¶¨ÁËÊä³öÎļþ£º
´úÂë:
nohup command > myout.file 2>&1
ÔÚÉÏÃæµÄÀý×ÓÖУ¬Êä³ö±»Öض¨Ïòµ½m y o u t . f i l eÎļþÖС£
ÈÃÎÒÃÇÀ´¿´Ò»¸öÀý×Ó£¬ÑéÖ¤Ò»ÏÂÔÚÍ˳öÕÊ»§ºóÏàÓ¦µÄ×÷ÒµÊÇ·ñÄܹ»¼ÌÐøÔËÐС£ÎÒÃÇÏÈÌá½»Ò»¸öÃûΪp s 1µÄÈÕÖ¾Çå³ý½ø³Ì£º
´úÂë:
$nobup ps1 &
ÏÖÔÚÍ˳ö¸Ãs h e l l£¬ÔÙÖØеǼ£¬È»ºóÖ´ÐÐÏÂÃæµÄÃüÁ
´úÂë:
$ps x |grep ps1
ÎÒÃÇ¿´µ½£¬¸Ã½Å±¾»¹ÔÚÔËÐС£Èç¹ûϵͳ²»Ö§³Öps xÃüÁʹÓÃps -ef|grep ps1ÃüÁî¡£
5.Ò»´ÎÌá½»¼¸¸ö×÷Òµ
Èç¹ûÏ£ÍûÒ»´ÎÌá½»¼¸¸öÃüÁ×îºÃÄܹ»°ÑËüÃÇдÈëµ½Ò»¸ös h e l l½Å±¾ÎļþÖУ¬²¢ÓÃn o h u pÃüÁîÀ´Ö´ÐÐËü¡£
ÀýÈ磬ÏÂÃæµÄËùÓÐÃüÁÓùܵÀ·ûºÅÁ¬½ÓÔÚÒ»Æð£»ÎÒÃÇ¿ÉÒÔ°ÑÕâЩÃüÁî´æÈëÒ»¸öÎļþ£¬²¢Ê¹¸ÃÎļþ¿ÉÖ´ÐС£
´úÂë:
cat /home/accounts/qrt_0499 | /apps/bin/trials.awk | sort | lp
$cat > quarterend
cat /home/accounts/qtr_0499 | /apps/bin/trials.awk | sort | lp
<ctrl-D>
ÏÖÔÚÈÃËü¿ÉÖ´ÐУº
´úÂë:
$ chmod 744 quarterend
ÎÒÃÇ»¹½«¸Ã½Å±¾µÄËùÓÐÊä³ö¶¼Öض¨Ïòµ½Ò»¸öÃûΪq t r. o u tµÄÎļþÖС£
´úÂë:
nobup ./quarterend > qtr.out 2>
ºǫ́ÔËÐÐ×÷ÒµµÄ:
ÓÐʱÎÒÃDZØÐëÒª¶Ô´óÎļþ½øÐдóÁ¿¸ü¸Ä£¬»òÖ´ÐÐһЩ¸´ÔӵIJéÕÒ£¬ÕâЩ¹¤×÷×îºÃÄܹ»ÔÚϵͳ¸ººÉ½ÏµÍʱִÐС£
´´½¨Ò»¸ö¶¨Ê±ÇåÀíÈÕÖ¾Îļþ»òÍê³ÉÆäËûÌØÊ⹤×÷µÄ½Å±¾£¬ÕâÑùÖ»ÒªÌá½»Ò»´Î£¬¾Í¿ÉÒÔÿÌìÍíÉÏÔËÐУ¬¶øÇÒÎÞÐèÄã¸ÉÔ¤£¬Ö»Òª¿´¿´ÏàÓ¦µÄ½Å±¾ÈÕÖ¾¾Í¿ÉÒÔÁË¡£c r o nºÍÆäËû¹¤¾ß¿ÉÒÔʹϵͳ¹ÜÀíÈÎÎñ±äµÃ¸üÇáËÉ¡£


Ïà¹ØÎĵµ£º

Linux iptableÎĵµ

×ÜÀÀ
ÓÃiptables -ADC À´Ö¸¶¨Á´µÄ¹æ
Ôò
£¬-AÌí¼Ó -Dɾ³ý -C ÐÞ¸Ä
iptables - [RI] chain rule num rule-specification[option]
ÓÃiptables - RI ͨ¹ý¹æÔòµÄ˳ÐòÖ¸¶¨
iptables -D chain rule num[option]
ɾ³ýÖ¸¶¨¹æÔò
iptables -[LFZ] [chain][option]
ÓÃiptables -LFZ Á´Ãû [Ñ¡Ïî]
iptables -[NX] chain
ÓÃ -NX ......

LinuxÄÇЩʶùÖ®ÎÒÊÇSysfs(6)Îļþϵͳ

½ÓÏÂÀ´£¬ÎÒÃǽøÈësysfs²¿·Ö¡£¿´¿´
kobject_add()->create_dir()->sysfs_create_dir()
bus create file->sysfs create file()
. . .
ÕâЩsysfsº¯ÊýµÄÄÚÄ»¡£
˵°×ÁË£¬sysfs¾ÍÊÇÀûÓÃVFSµÄ½Ó¿ÚÈ¥¶ÁдkobjectµÄ²ã´Î½á¹¹£¬½¨Á¢ÆðÀ´µÄÎļþϵͳ¡£¹ØÓÚsysfsµÄÄÚÈݾÍÔÚfs/sysfs/Ï¡£&nbs ......

Ubuntu LinuxϵͳÏÂÐÞ¸ÄÎĵµ¼°Îļþ¼ÐȨÏ޵ķ½·¨

UbuntuµÄÐí¶à²Ù×÷ÊÇÔÚÖÕ¶ËÖнøÐеģ¬Í¨¹ýsudoÃüÁîÖÎÀíµÄÎļþÊÇÓÉroot
³ÖÓÐȨÏÞ£¨Ä¬ÈÏÓû§Ã»ÓÐȨÏÞÔËÐкÍÐ޸ģ©µÄ£¬Ò»°ãÓû§ÊÇÎÞ·¨¸Ä±äµÄ¡£ÔÚͼÐνçÃæÉÏ£¬ÎÒÃÇ¿ÉÒÔͨ¹ýÊôÐÔÖеÄȨÏÞÑ¡Ïî¼Ð½øÐвÙ×÷¡£µ«ÊÇÒ»µ©ÎļþµÄÊôÐÔÏÔʾµ±Ç°
Óû§Ã»ÓжÁдȨÁ¦Ê±£¬ÎÞ·¨ÔÚͼÐνçÃæÉÏÐÞ¸ÄȨÏÞ¡£
³£Ó÷½·¨ÈçÏ£º
£¨Æô¶¯Ò»¸öshell£¬¼üÈëÃü ......

linux Ŀ¼¼Ü¹¹

/
      ¸ùĿ¼ 
/bin
        ³£ÓõÄÃüÁî
  binary
  file   µÄĿ¼ 
/boot
      ´æ·ÅϵͳÆô¶¯Ê±±ØÐë¶ÁÈ¡µÄµµ°¸£¬°üÀ¨ºËÐÄ
  (kernel)
  ÔÚÄÚ 
/boot/grub/menu.lst
      GRUBÉèÖà
/boot/ ......

Linux/Unix»·¾³ÏµÄmakeºÍmakefileÏê½â


×÷ÕߣºCMK  ³ö´¦£ºUnix°®ºÃÕß¼ÒÔ°unix-cd.com  ¸üÐÂʱ¼ä£º 2006Äê05ÔÂ22ÈÕ 
ÎÞÂÛÊÇÔÚLinux»¹ÊÇÔÚUnix»·¾³ÖУ¬make¶¼ÊÇÒ»¸ö·Ç³£ÖØÒªµÄ±àÒëÃüÁî¡£²»¹ÜÊÇ×Ô¼º½øÐÐÏîÄ¿¿ª·¢»¹ÊÇ°²×°Ó¦ÓÃÈí¼þ£¬ÎÒÃǶ¼¾­³£ÒªÓõ½make»òmake install¡£ÀûÓÃmake¹¤¾ß£¬ÎÒÃÇ¿ÉÒÔ½«´óÐ͵Ŀª·¢ÏîÄ¿·Ö½â³ÉΪ¶à¸ö¸üÒ×ÓÚ¹ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ