linuxϵͳ¹ÜÀí
ÕʺŹÜÀí
/etc/passwd ϵͳÕʺÅÐÅÏ¢
/etc/shadow ÕʺÅÃÜÂëÐÅÏ¢ ¾MD5 32λ¼ÓÃÜ
ÔÚÃÜÂëÀ¸Ç°Ãæ¼Ó¡º * ¡»¡º ! ¡»½ûֹʹÓÃijÕʺÅ
/etc/group ϵͳȺ×éÐÅÏ¢
/etc/gshadow
newgrp ¸Ä±äµÇ½×é
useradd & adduser ½¨Á¢ÐÂÓû§ ---------> useradd -m test ×Ô¶¯½¨Á¢Óû§µÄµÇÈëĿ¼
useradd -m -g pgroup test ---------> Ö¸¶¨ËùÊô¼¶
/etc/default/useradd Ïà¹ØÉ趨
/etc/login.defs UID/GID ÓÐ關µÄ設¶¨
passwd ¸ü¸ÄÃÜÂë -----------> passwd test
usermod ÐÞ¸ÄÓû§ÕʺÅ
userdel ɾ³ýÕʺŠ-----------> userdel -r test
chsh ¸ü»»µÇ½ϵͳʱʹÓõÄSHELL [-l]ÏÔʾ¿ÉÓõÄSHELL;[-s]ÐÞ¸Ä×Ô¼ºµÄSHELL
chfn ¸Ä±äfingerÖ¸ÁîÏÔʾµÄÐÅÏ¢
finger ²éÕÒ²¢ÏÔʾÓû§ÐÅÏ¢
id ÏÔʾÓû§µÄID -----------> id test
groupadd Ìí¼Ó×é
groupmod ÓëusermodÀàËÆ
groupdel ɾ³ý×é
su test ¸ü¸ÄÓû§ su - ½øÈëroot,ÇÒʹÓÃrootµÄ»·¾³±äÁ¿
sudo ÒÔÆäËûÉí·ÝÀ´Ö´ÐÐÖ¸Áî
visudo ±à¼/etc/sudoers ¼ÓÈëÒ»ÐСº
Ïà¹ØÎĵµ£º
±ÈÈçtopÕâ¸ö¹¤¾ß£¬Ëû»áÏÔʾ3ÖÖÊý¾Ý£¬×÷Õß·Ö±ð½âÊÍÈçÏ£º VIRT£ºvirtual memory usage¡£VirtualÕâ¸ö´Ê·Ç³£Éñ£¬Ò»°ã½âÊÍÊÇ£ºvirtual adj.ÐéµÄ, ʵÖʵÄ, [Îï]ÓÐЧµÄ, ÊÂʵÉϵġ£µ½µ×ÊÇÐéµÄ»¹ÊÇʵµÄ£¿ÈÃGoogle¸øDefineÖ®ºó£¬½«¾ÍÃ÷°×Ò»µã£¬¾ÍÊÇÕⶫÎ÷»¹ÊÇ·ÇÎïÖʵģ¬²»¹ýÓÐЧ¹ûµÄ£¬²»·¢ÉúÔÚÕæʵÊÀ½çµÄ£¬·¢ÉúÔÚÈí¼þÊÀ½çµÄµÈµÈ¡£Õâ ......
1.Linux“Ï߳̔
½ø³ÌÓëÏß³ÌÖ®¼äÊÇÓÐÇø±ðµÄ£¬²»¹ýLinuxÄÚºËÖ»ÌṩÁËÇáÁ¿½ø³ÌµÄÖ§³Ö£¬Î´ÊµÏÖÏß³ÌÄ£ÐÍ¡£LinuxÊÇÒ»ÖÖ“¶à½ø³Ìµ¥Ï߳̔µÄ²Ù×÷ϵͳ¡£Linux±¾ÉíÖ»Óнø³ÌµÄ¸ÅÄ¶øÆäËùνµÄ“Ï߳̔±¾ÖÊÉÏÔÚÄÚºËÀïÈÔÈ»Êǽø³Ì¡£
´ó¼Ò ......
ÔÚLinux²Ù×÷ϵͳÏÂÓÐ3ÀàÖ÷ÒªµÄÉ豸ÎļþÀàÐÍ£º¿éÉ豸¡¢×Ö·ûÉ豸ºÍÍøÂçÉ豸¡£ÕâÖÖ·ÖÀà·½·¨¿ÉÒÔ½«¿ØÖÆÊäÈë/Êä³öÉ豸µÄÇý¶¯³ÌÐòÓëÆäËû²Ù×÷ϵͳÈí¼þ·ÖÀ뿪À´¡£×Ö·ûÉ豸ÊÇÖ¸´æȡʱûÓлº´æµÄÉ豸¡£µäÐ͵Ä×Ö·ûÉ豸°üÀ¨Êó±ê¡¢¼üÅÌ¡¢´®Ðпڵȡ£
×Ö·ûÉ豸Óë¿éÉ豸µÄÖ÷ÒªÇø±ðÊÇ£ºÔÚ¶Ô×Ö·ûÉ豸·¢³ö¶Á/дÇëÇóʱ£¬Êµ¼ÊµÄÓ²¼þI/OÒ»°ã½ô½Ó× ......
ÒÔϾÙÀýÖУºÀ¶É«×ÖÌåΪÃüÁîÊäÈ룬ºìÉ«×ÖÌåΪÖÕ¶ËÊä³ö¡£
1.1 ²é¿´ÎļþºÍĿ¼(ls)
lsÃüÁîÊÇlinux×î³£ÓõÄÃüÁÓÃÀ´ÏÔʾÎļþ»òÕßĿ¼µÄÏà¹ØÐÅÏ¢¡£Ò»°ã»á´îÅäÒÔϲÎÊý³£Óãº
-a£ºÏÔʾȫ²¿Îļþ£¬ÓëÒþ²ØÎļþ(¿ªÍ·Îª.µÄÎļþ)Ò»ÆðÁгöÀ´¡£
-l£ºÁгö³¤Êý¾Ý´®£¬°üÀ¨ÎļþÊôÐÔ¡£
-t£º°´Ê±¼äÅÅÐò¡£
-h£º ......
bootmÃüÁîÊÇÓÃÀ´Òýµ¼¾¹ýu-bootµÄ¹¤¾ßmkimage´ò°üºóµÄkernel imageµÄ£¬Ê²Ã´½Ð×ö¾¹ýu-bootµÄ¹¤¾ßmkimage´ò°üºóµÄkernel image£¬Õâ¸ö¾ÍÒª¿´mkimageµÄ´úÂ룬¿´¿´Ëü×öÁËЩʲô£¬ËäÈ»ÎÒºÜÏ£Íû´ó¼Ò²»ÒªÍµÀÁ£¬ÈÏÕæµØÈ¥¿´¿´£¬µ«ÊÇÎÒÖªµÀ»¹ÊÇÓкܶàÈËÀÁµÃÈ¥×öÕâ¼þ£¬ÄÇôÎÒ¾Íj½«·ÖÎömkimage´úÂëºóµÃµ½µÄ×ܽá¸æËß´ó¼Ò£¬mkimage×öÁËÐ ......