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

UBUNTUÒ»¾ä»°¼¼ÇÉ LinuxÈëÃÅ£¨¸øÐÂÊÖ£©

²é¿´Èí¼þxxx°²×°ÄÚÈÝ
dpkg -L xxx
 
 
²éÕÒÈí¼þ
apt-cache search ÕýÔò±í´ïʽ
 
 
²éÕÒÎļþÊôÓÚÄĸö°ü
dpkg -S filename           apt-file search filename
 
 
²éѯÈí¼þxxxÒÀÀµÄÄЩ°ü
apt-cache depends xxx
 
²éѯÈí¼þxxx±»ÄÄЩ°üÒÀÀµ
apt-cache rdepends xxx
 
 
Ôö¼ÓÒ»¸ö¹âÅÌÔ´
sudo apt-cdrom add
 
ϵͳÉý¼¶
sudo apt-get update       sudo apt-get upgrade       sudo apt-get dist-upgrade
 
 
--------------------------------------------------------------------------------
±àÒëʱȱÉÙhÎļþµÄ×Ô¶¯´¦Àí
sudo auto-apt run ./configure
 
 
²é¿´°²×°Èí¼þʱÏÂÔØ°üµÄÁÙʱ´æ·ÅĿ¼
ls /var/cache/apt/archives
 
±¸·Ýµ±Ç°ÏµÍ³°²×°µÄËùÓаüµÄÁбí
dpkg --get-selections | grep -v  deinstall > ~/somefile
 
´ÓÉÏÃ汸·ÝµÄ°²×°°üµÄÁбíÎļþ»Ö¸´ËùÓаü
dpkg --set-selections < ~/somefilesudo dselect
ÇåÀí¾É°æ±¾µÄÈí¼þ»º´æ
sudo apt-get autoclean
 
ÇåÀíËùÓÐÈí¼þ»º´æ
sudo apt-get clean
ɾ³ýϵͳ²»ÔÙʹÓõĹÂÁ¢Èí¼þ
sudo apt-get autoremove
----------------------------------------------------------------------
²é¿´ÄÚºË
uname -a
 
²é¿´ubuntu°æ±¾
cat /etc/issue
 
²é¿´Äں˼ÓÔصÄÄ£¿é
lsmod
 
²é¿´PCIÉ豸
lspci
 
²é¿´Íø¿¨×´Ì¬
sudo ethtool eth0
 
²é¿´USB É豸
lausb
 
²é¿´cpuÐÅÏ¢
vat /proc/cpuinfo
 
²é¿´µ±Ç°Ó²¼þÐÅÏ¢
Lshw
 
--------------------------------------------------------------------------------
 
²é¿´Ó²Å̵ķÖÇø
sudo fdisk -l
 
²é¿´IDEÓ²ÅÌÐÅÏ¢
sudo hdparm -i /dev/hda
 
²é¿´sataÓ²ÅÌÐÅÏ¢
sudo hdparm -I /dev/sda
»ò sudo apt-get install blktool        sudo blktool dev/sda id
 
²é¿´Ó²ÅÌʤÓÚ¿Õ¼ä
df -hdf -H
 
²é¿´Ä¿Â¼Õ¼Óÿռä
du -hs  Ŀ¼Ãû
 
UÅÌÎÞ·¨Ð¶ÔØ
syncfuser -km /media/usbdisk
 
²é¿´µ±Ç°ÄÚ´æʹÓÃÇé¿ö
free -l
 
----


Ïà¹ØÎĵµ£º

Linuxϵͳѧϰ·½·¨ÂÛ

Ê×ÏÈ,ÎÒÏëÒýÓÃһϱðÈË˵¹ýµÄÒ»¾ä»°:³ý·ÇÔÚ¹ýÈ¥µÄÊ®ÄêÄãÒ»Ö±Éú»îÔÚɽ¶´Àï,·ñÔòÄãÒ»¶¨Ìý˵¹ýlinux.
ÊǵÄ,ÏÖÔÚÌý˵¹ýlinux,
»áÒ»µãlinux»ù±¾²Ù×÷µÄÈ˶àÈçţë,È»¶øÕæÕýÄÜÓÃlinux×öÒ»µãÊÂÇéµÄÈ·ÉÙÖ®ÓÖÉÙ,Õâ¾ÍÔì³ÉÁËÏÖÔÚµÄ×´¿ö:¸÷´ó
linuxÂÛ̳ʮ·ÖÈÈÄÖ,µ«ÎÒ¹úlinuxÈ˲ÄÈ´»¹Ê®·Ö½ôȱ.µ½µ×ÊÇʲôԭÒòÔì³ÉÁËÕâÑùµÄ×´¿ö? ¾ÀÆäÔ ......

Linux ʹÓÃBINDÅäÖÃDNS·½·¨

Ê×Ïȼì²ébindÊÇ·ñÕý³£°²×°£¨ÒÔÏÂÃüÁî½öÏÞÓÚrpm°üµÄ¼ì²é£©
rpm -qa|grep bind
Èç¹û³öÏÖÏàÓ¦µÄ°²×°°üÐÅÏ¢£¬Ôò¿ÉÒÔ½øÈëÏÂÒ»²½
½ÓÏÂÀ´ÊÇʹÓÃbindÅäÖÃDNSËùÐèÒªµÄϵͳÒÔ¼°¶ÔÓ¦Îļþ£¬´óÖÂÈçÏ£º
/etc/hosts --Ö÷»úipÓëÓòÃûÖ®¼äµÄÒ»¸ö¶ÔÓ¦Îļþ£¨ÏµÍ³×Ô´ø£©£¬¿ÉÒÔʵÏÖ¿ìËÙ½âÎöµÄ¹¦ÄÜ 
¸ÃÎļþµÄÅäÖÃÄÚÈÝ´óÖÂÈçÏ£º
# Do n ......

´ÓÒ»µÀÃæÊÔÌâ̸LinuxÏÂforkµÄÔËÐлúÖÆ

ijÍâÆóÃæÊÔlinux¿ª·¢Ö°Î»ÃæÊÔÌ⣺
¸ø³öÈçÏÂC³ÌÐò£¬ÔÚlinuxÏÂʹÓÃgcc±àÒ룺
#include "stdio.h"
#include "sys/types.h"
#include "unistd.h"
int main(void)
{
pid_t pid1;
pid_t pid2;
pid1 = fork();
pid2 = fork();
printf("pid1:%d, pid2:%d\n", pid1, pid2);
}

    ......

Linux ·ÖÇø


¶ÔÓ²Å̽øÐзÖÇøÇ°£¬Ó¦¸ÃÏÈŪÇå³þ¼ÆËã»úµ£¸ºµÄ¹¤×÷¼°Ó²Å̵ÄÈÝÁ¿Óжà´ó£¬»¹Òª¿¼ÂÇÒÔϼ¸¸öÎÊÌâ¡£
        
        
µÚÒ»µãÒ²ÊÇ×îÖØÒªµÄÒ»µã£¬ÒªÖªµÀµ±Ç°°²×°
Lilo
µÄ°æ±¾£¬£¨
Linux
Òýµ¼Îļþ£º
Lilo
ºÍ
Grub
£©ÒòΪ
Li ......

LinuxÏÂÃæµÄÈí¼þRAID6²âÊÔ

linuxϵÄÈí¼þRAIDÖ§³ÖRAID¼¶±ð0,1,4,5,6£¬½ñÌìÌرð²âÊÔÒ»ÏÂRAID6¡£
²½ÖèÒ»£º×¼±¸·ÖÇø
·ÖÇøÇé¿öÈçÏ£¬¾ßÌåÈçºÎ·ÖÇø¾Í²»½éÉÜÁË¡£
/dev/hdb5            5240        5252      1043 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ