дµÃÂùºÃµÄlinuxѧϰ±Ê¼Ç
дµÃÂùºÃµÄlinuxѧϰ±Ê¼Ç
linuxĿ¼¼Ü¹¹
/ ¸ùĿ¼
/bin ³£ÓõÄÃüÁî binary file µÄÄ¿錄
/boot ´æ·ÅϵͳÆô¶¯Ê±±ØÐë¶ÁÈ¡µÄµµ°¸£¬°üÀ¨ºËÐÄ (kernel) ÔÚÄÚ
/boot/grub/menu.lst GRUBÉèÖÃ
/boot/vmlinuz ÄÚºË
/boot/initrd ºËÐĽâ壓縮ËùÐè RAM Disk
/dev ϵͳÖܱßÉ豸
/etc ϵͳÏà¹ØÉ趨Îļþ
/etc/DIR_COLORS É趨ÑÕÉ«
/etc/HOSTNAME É趨Óû§µÄ½ÚµãÃû
/etc/NETWORKING Ö»ÓÐYES±êÃ÷ÍøÂç´æÔÚ
/etc/host.conf Îļþ˵Ã÷Óû§µÄϵͳÈçºÎ²éѯ½ÚµãÃû
/etc/hosts É趨Óû§×ÔÒѵÄIPÓëÃû×ֵĶÔÓ¦±í
/etc/hosts.allow ÉèÖÃÔÊÐíʹÓÃinetdµÄ»úÆ÷ʹÓÃ
/etc/hosts.deny ÉèÖò»ÔÊÐíʹÓÃinetdµÄ»úÆ÷ʹÓÃ
/etc/hosts.equiv ÉèÖÃÔ¶¶Ë»ú²»ÓÃÃÜÂë
/etc/inetd.conf É趨ϵͳÍøÂçÊØ»¤½ø³ÌinetdµÄÅäÖÃ
/etc/gateways É趨·ÓÉÆ÷
/etc/protocols É趨ϵͳ֧³ÖµÄÐÒé
/etc/named.boot É趨±¾»úΪÃû×Ö·þÎñÆ÷µÄÅäÖÃÎļþ
/etc/sysconfig/network-scripts/ifcfg-eth0 ÉèÖÃIP
/etc/resolv.conf ÉèÖÃDNS
/etc/X11 X WindowµÄÅäÖÃÎļþ,xorg.conf »ò XF86Config 這兩個 X Server µÄ設¶¨檔
/etc/fstab ¼Ç¼¿ª»úÒªmountµÄÎļþϵͳ
/etc/inittab É趨ϵͳÆô¶¯Ê±init½ø³Ì½«°ÑϵͳÉèÖóÉʲôÑùµÄrunlevel
/etc/issue ¼Ç¼Óû§µÇ¼ǰÏÔʾµÄÐÅÏ¢
/etc/group É趨Óû§µÄ×éÃûÓëÏà¹ØÐÅÏ¢
/etc/passwd ÕʺÅÐÅÏ¢
&nbs
Ïà¹ØÎĵµ£º
1. useradd ̞
useraddÃüÁÔðÌí¼ÓÓû§µ½Linuxϵͳ£¨Ö»ÓйÜÀíÔ±¿ÉÒÔʹÓÃÕâ¸öÃüÁ¡£
Àý£º
useradd tom
2.userdel ̞
userdelÃüÁîɾ³ýÒ»¸öÓû§ÕË»§£¨Ö»ÓйÜÀíÔ±¿ÉÒÔʹÓÃÕâ¸öÃüÁ¡£
Àý£º
userdel tom
3.passwd ̞
µ±´´½¨Ò»¸öÓû§Ö®ºóÐèҪΪÓû§ÉèÖÃÃÜÂ룬passwd ¿ÉÒÔÍê³É´Ë¹¦ÄÜ¡£µ±passwdºóÃæûÓвΠ......
//»ñÈ¡×ÓÍøÑÚÂëµÄº¯ÊýQString GetLocalNetMask()
{
int sock_netmask;
char netmask_addr[50];
struct ifreq ifr_mask;
struct sockaddr_in *net_mask;
sock_netmask = socket( AF_INET, SOCK_STREAM, 0 );
if( sock_netmask == -1)
{
perror("create socket failture...GetLocalNetMask\n");
......
Linux±ØѧµÄ60¸öÃüÁî
LinuxÌṩÁË´óÁ¿µÄÃüÁÀûÓÃËü¿ÉÒÔÓÐЧµØÍê³É´óÁ¿µÄ¹¤×÷£¬Èç´ÅÅ̲Ù×÷¡¢Îļþ´æÈ¡¡¢Ä¿Â¼²Ù×÷¡¢½ø³Ì¹ÜÀí¡¢ÎļþȨÏÞÉ趨µÈ¡£ËùÒÔ£¬ÔÚLinuxϵͳÉϹ¤×÷Àë²»¿ªÊ¹ÓÃϵͳÌṩµÄÃüÁî¡£ÒªÏëÕæÕýÀí½âLinuxϵͳ£¬¾Í±ØÐë´ÓLinuxÃüÁîѧÆð£¬Í¨¹ý»ù´¡µÄÃüÁîѧϰ¿ÉÒÔ½øÒ»²½Àí½âLinuxϵͳ¡£²»Í¬Linux·¢ÐаæµÄÃüÁîÊýÁ¿²»Ò ......