Linux»ù±¾²Ù×÷ÃüÁî
Linux»ù±¾²Ù×÷ÃüÁî
Ê×ÏȽéÉÜÒ»¸öÃû´Ê“¿ØÖÆ̨£¨console£©”£¬Ëü¾ÍÊÇÎÒÃÇͨ³£¼ûµ½µÄʹÓÃ×Ö·û²Ù×÷½çÃæµÄÈË»ú½Ó¿Ú£¬ÀýÈçdos¡£ÎÒÃÇ˵¿ØÖÆ̨ÃüÁ¾ÍÊÇָͨ¹ý×Ö·û½çÃæÊäÈëµÄ¿ÉÒÔ²Ù×÷ϵͳµÄÃüÁÀýÈçdosÃüÁî¾ÍÊÇ¿ØÖÆ̨ÃüÁî¡£ÎÒÃÇÏÖÔÚÒªÁ˽âµÄÊÇ»ùÓÚLinux²Ù×÷ϵͳµÄ»ù±¾¿ØÖÆ̨ÃüÁî¡£ÓÐÒ»µãÒ»¶¨Òª×¢Ò⣬ºÍdosÃüÁͬµÄÊÇ£¬LinuxµÄÃüÁҲ°üÀ¨ÎļþÃûµÈµÈ£©¶Ô´óСдÊÇÃô¸ÐµÄ£¬Ò²¾ÍÊÇ˵£¬Èç¹ûÄãÊäÈëµÄÃüÁî´óСд²»¶ÔµÄ»°£¬ÏµÍ³ÊDz»»á×ö³öÄãÆÚÍûµÄÏìÓ¦µÄ¡£
ls
Õâ¸öÃüÁî¾ÍÏ൱ÓÚdosϵÄdirÃüÁîÒ»Ñù£¬¿Ï¶¨ÊÇÎÒµÚÒ»¸ö¾ÍÒª½éÉܵģ¬ÕâÒ²ÊÇLinux¿ØÖÆ̨ÃüÁîÖÐ×îΪÖØÒª¼¸¸öÃüÁîÖ®Ò»¡£ls×î³£ÓõIJÎÊýÓÐÈý¸ö£º -a -l -F¡£
ls -a
LinuxÉϵÄÎļþÒÔ.¿ªÍ·µÄÎļþ±»ÏµÍ³ÊÓΪÒþ²ØÎļþ£¬½öÓÃlsÃüÁîÊÇ¿´²»µ½ËûÃǵģ¬¶øÓÃls -a³ýÁËÏÔʾ Ò»°ãÎļþÃûÍ⣬Á¬Òþ²ØÎļþÒ²»áÏÔʾ³öÀ´¡£
ls -l£¨Õâ¸ö²ÎÊýÊÇ×ÖĸLµÄСд£¬²»ÊÇÊý×Ö1£©
Õâ¸öÃüÁî¿ÉÒÔʹÓó¤¸ñʽÏÔʾÎļþÄÚÈÝ£¬Èç¹ûÐèÒª²ì¿´¸üÏêϸµÄÎļþ×ÊÁÏ£¬¾ÍÒªÓõ½ls -lÕâ¸öÖ¸Áî¡£ÀýÈçÎÒÔÚij¸öĿ¼Ï¼üÈëls -l¿ÉÄÜ»áÏÔʾÈçÏÂÐÅÏ¢£¨×îÉÏÃæÁ½ÐÐÊÇÎÒ×Ô¼º¼ÓµÄ£©£º
λÖÃ1 2 3 4 5 6 7
ÎļþÊôÐÔ ÎļþÊý ÓµÓÐÕß ËùÊôµÄgroup Îļþ´óС ½¨µµÈÕÆÚ ÎļþÃû
drwx------ 2 Guest users 1024 Nov 21 21:05 Mail
-rwx--x--x 1 root root 89080 Nov 7 22:41 tar*
-rwxr-xr-x 1 root bin 5013 Aug 15 9:32 uname*
lrwxrwxrwx 1 root root 4 Nov 24 19:30 zcat->gzip
-rwxr-xr-x 1 root bin 308364 Nov 29 7:43 zsh*
-rwsr-x--- 1 root bin 9853 Aug 15 5:46 su*
ÏÂÃ棬ÎÒΪ´ó¼Ò½âÊÍÒ»ÏÂÕâЩÏÔʾÄÚÈݵÄÒâÒå¡£
µÚÒ»¸öÀ¸Î»£¬±íʾÎļþµÄÊôÐÔ¡£LinuxµÄÎļþ»ù±¾ÉÏ·ÖΪÈý¸öÊôÐÔ£º¿É¶Á£¨r£©£¬¿Éд£¨w£©£¬¿ÉÖ´ÐУ¨x£©¡£µ«ÊÇÕâÀïÓÐÊ®¸ö¸ñ×Ó¿ÉÒÔÌí£¨¾ßÌå³ÌÐòʵÏÖʱ£¬Êµ¼ÊÉÏÊÇÊ®¸öbit룩¡£µÚÒ»¸öС¸ñÊÇÌØÊâ±íʾ¸ñ£¬±íʾĿ¼»òÁ¬½áÎļþµÈµÈ£¬d±íʾĿ¼£¬ÀýÈçdrwx------;l±íʾÁ¬½áÎļþ£¬Èçlrwxrwxrwx;Èç¹ûÊÇÒÔÒ»ºá“-”±íʾ£¬Ôò±íʾÕâÊÇÎļþ¡£ÆäÓàʣϵĸñ×Ó¾ÍÒÔÿ3¸ñΪһ¸öµ¥Î»¡£ÒòΪLinuxÊǶàÓû§¶àÈÎÎñϵͳ£¬ËùÒÔÒ»¸öÎļþ¿ÉÄÜͬʱ±»Ðí¶àÈËʹÓã¬ËùÒÔÎÒÃÇÒ»¶¨ÒªÉèºÃÿ¸öÎļþµÄȨÏÞ£¬ÆäÎļþµÄȨÏÞλÖÃÅÅÁÐ˳ÐòÊÇ£¨ÒÔ-rwxr-xr-xΪÀý£©£º
rwx(Owner)r-x(Group)r-x(Other)
Õâ¸öÀý×Ó±íʾµÄȨÏÞÊÇ£ºÊ¹ÓÃÕß×Ô¼º¿É¶Á£¬¿Éд£¬¿ÉÖ´ÐУ»Í¬Ò»×éµÄÓû§¿É¶Á£¬²»¿Éд£¬¿ÉÖ´ÐУ»ÆäËüÓû§¿É¶Á£¬²»¿Éд£¬¿ÉÖ´ÐС£ÁíÍ⣬ÓÐһЩ³ÌÐòÊôÐÔµÄÖ´Ðв¿·Ö²»Ê
Ïà¹ØÎĵµ£º
1¡¢vi /etc/resolv.conf
Ôö¼ÓÒÔÏÂÄÚÈÝ£º
nameserver DNSserver_ip_address1
nameserver
DNSserver_ip_address2
ÈçÏ£º
[root@REDHATAS5 /]# cat /etc/resolv.conf
nameserver 192.168.88.1
2¡¢²âÊÔDNSÊÇ·ñÉúЧ
[root@Develop-Server ~]# nslookup www.baidu.com
Server: &nb ......
LinuxÄں˵÷ÊÔ
1 printk
[1] ʹÓ÷¶Î§
³ýÔÚϵͳÆô¶¯¹ý³ÌÖÐ,ÖÕ¶Ëδ³õʼ»¯Ö®Ç°, ÆäËûÈκÎʱºò,Èκεط½¶¼¿ÉÒÔµ÷ÓÃËü.
[2] ¼Ç¼µÈ¼¶
KERN_EMERG, KERN_ALERT, KERN_CRIT, KERN_ERR, KERN_WARNING, KERN_NOTICE, KERN_INFO, KERN_DEBUG.
Èô²»Ö¸¶¨¼Ç¼µÈ¼¶,º¯Êý»áÑ ......
¼ÌÐø¡£¡£¡£
ÓôÃƵÄÊÂÇé¼ÌÐø³öÏÖ£¬³öÏÖÉÏÃæµÄ´í£¬»¹²»ÖªµÀËùÒÔÈ»ÄØ£¬½øÈëÒ»¸öbusyboxµÄÖն˵ȴýÊäÈë״̬£¬¸Ï½ôgoogle£¬¿ÉÄÜÓоȡ£
Ï´β»¸ÒÂÒɾÄÚºË×é¼þÁË£¬·¢ÏÖ¶Ô×Ô¼ºÒªµÄÐèÇó²»Ã÷È·£¬½á¹û²úÉú»ìÂҵľÖÃæÁË¡£
¼ÌÐøÂÒŪ£¬helpÏ£¬³öÏÖÁËÐí¶à¿ÉÒÔ±»½âÎöµÄÃüÁ²»ÊÇÉÙĿ¼Âð£¬ÎÒmksirÏ£¬½á¹û²»ÐУ¬ºÃÏñÕâ¸ö״̬ÊÇÒ»¸ö/bin ......
ÏëÖªµÀµ½Linux·ÖÇø·½°¸µÄÕæÏàô£¬ÏëÖªµÀLinux·ÖÇø·½°¸ÖвØÓеÄÄÚÔÚ°ÂÒåô£¬Ö»ÓÐÎÒÀ´¸ø´ó¼ÒÈ«Ãæ½²½â½éÉÜLinux·ÖÇø·½°¸
×îÐÂLinux·ÖÇø·½°¸
ÎҵķþÎñÆ÷ÊÇ500G¡£×îÖØÒªµÄÊÇ/var·ÖÇøÒ»¶¨Òª´ó(²»ÂÛpostfixÓʼþ£¬»¹ÊÇLAMPµÄWEB ·þÎñÆ÷µÈ£©¡£×îºÃÊÇ400GÒÔÉÏ¡£¾ßÌåµÄ/boot Ö»Òª100M¾Í×ã¹»ÁË¡£ÏÂÃæÊÇÎҵķÖÇø·½°¸£ºÓ²ÅÌ500G
·þ ......