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

linuxÓû§(user)ºÍÓû§×é(group)

add user£º
[root@localhost ~]# useradd test
[root@localhost ~]# passwd test
add user to a group:
e.g. add nexus to admin
useradd -g admin nexus
default role£º
[root@localhost ~]# useradd -D
GROUP=100
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel
CREATE_MAIL_SPOOL=no
delete user£º
[root@localhost ~]# userdel test
[root@localhost ~]# userdel -r test
¹ÜÀíÓû§£¨user£©µÄ¹¤¾ß»òÃüÁ
useradd    ×¢£ºÌí¼ÓÓû§
adduser    ×¢£ºÌí¼ÓÓû§
passwd     ×¢£ºÎªÓû§ÉèÖÃÃÜÂë
usermod  ×¢£ºÐÞ¸ÄÓû§ÃüÁ¿ÉÒÔͨ¹ýusermod À´Ð޸ĵǼÃû¡¢Óû§µÄ¼ÒĿ¼µÈµÈ£»
pwcov       ×¢£ºÍ¬²½Óû§´Ó/etc/passwd µ½/etc/shadow
pwck         ×¢£ºpwckÊÇУÑéÓû§ÅäÖÃÎļþ/etc/passwd ºÍ/etc/shadow ÎļþÄÚÈÝÊÇ·ñºÏ·¨»òÍêÕû£»
pwunconv  ×¢£ºÊÇpwcov µÄÁ¢ÄæÏò²Ù×÷£¬ÊÇ´Ó/etc/shadowºÍ /etc/passwd ´´½¨/etc/passwd £¬È»ºó»áɾ³ý /etc/shadow Îļþ£»
finger        ×¢£º²é¿´Óû§ÐÅÏ¢¹¤¾ß
id              ×¢£º²é¿´Óû§µÄUID¡¢GID¼°Ëù¹éÊôµÄÓû§×é
chfn          ×¢£º¸ü¸ÄÓû§ÐÅÏ¢¹¤¾ß
su             ×¢£ºÓû§Çл»¹¤¾ß
sudo         ×¢£ºsudo ÊÇͨ¹ýÁíÒ»¸öÓû§À´Ö´ÐÐÃüÁexecute a command as another user£©£¬su ÊÇÓÃÀ´Çл»Óû§£¬È»ºóͨ¹ýÇл»µ½µÄÓû§À´Íê³ÉÏàÓ¦µÄÈÎÎñ£¬µ«sudo ÄܺóÃæÖ±½ÓÖ´ÐÐÃüÁ±ÈÈçsudo ²»ÐèÒªroot ÃÜÂë¾Í¿ÉÒÔÖ´ÐÐroot ¸³ÓëµÄÖ´ÐÐÖ»ÓÐroot²ÅÄÜÖ´ÐÐÏàÓ¦µÄÃüÁµ«µÃͨ¹ývisudo À´±à¼­/etc/sudoersÀ´ÊµÏÖ£»
visudo      ×¢£ºvisodo ÊDZ༭ /etc/sudoers µÄÃüÁҲ¿ÉÒÔ²»ÓÃÕâ¸öÃüÁֱ½ÓÓÃvi À´±à¼­ /etc/sudoers µÄЧ¹ûÊÇÒ»ÑùµÄ£»
sudoedit  ×¢£ººÍsudo ¹¦Äܲ¶à£»
2£©¹ÜÀíÓû§×飨group£©µÄ¹¤¾ß»òÃüÁ
groupadd  ×¢£ºÌí¼ÓÓû§×飻
groupdel         ×¢£ºÉ¾³ýÓû§×飻
groupmod&


Ïà¹ØÎĵµ£º

ʹÓà /sys Îļþϵͳ·ÃÎÊ Linux ÄÚºË

sysfs ÊÇ Linux ÄÚºËÖÐÉè¼Æ½ÏеÄÒ»ÖÖÐéÄâµÄ»ùÓÚÄÚ´æµÄÎļþϵͳ£¬ËüµÄ×÷ÓÃÓë proc ÓÐЩÀàËÆ£¬µ«³ýÁËÓë
proc ÏàͬµÄ¾ßÓв鿴ºÍÉ趨Äں˲ÎÊý¹¦ÄÜÖ®Í⣬»¹ÓÐΪ Linux ͳһÉ豸ģÐÍ×÷Ϊ¹ÜÀíÖ®Óá£Ïà±ÈÓÚ proc Îļþϵͳ£¬Ê¹Óà sysfs
µ¼³öÄÚºËÊý¾ÝµÄ·½Ê½¸üΪͳһ£¬²¢ÇÒ×éÖ¯µÄ·½Ê½¸üºÃ£¬ËüµÄÉè¼Æ´Ó proc ÖÐÎüÈ¡Á˺ܶà½Ìѵ¡£±¾Îľ ......

LinuxÏÂJavaÈçºÎÁ¬SAP

±¾Îĵµ²âÊÔ»·¾³£º
1£©Linux²Ù×÷ϵͳ°æ±¾£º
       Red Hat Enterprise Linux Server release 5
       2.6.18-8.el5
2£©jdk°æ±¾
       1.5.0_16
 
LinuxÏÂÁ¬JavaÁ¬sap²½Öè
1£©ÏÂÔØsapjco.jar
    ......

linux ubuntuÏÂftp·þÎñÆ÷°²×°¡¢ÅäÖÃÓëʹÓÃ

http://hi.baidu.com/vsgp/blog/item/0daae64589a3852fcffca3e7.html
1¡¢°²×°vsftpd
ÖÕ¶ËÊäÈ룺sudo apt-get install vsftpd
°²×°ÁËÖ®ºó»áÔÚ/home/Ͻ¨Á¢Ò»¸öftpĿ¼¡£ÕâʱºòÄã¿ÉÒÔÊÔ×Å·ÃÎÊÏÂftp://IPµØÖ·¡£Ó¦¸Ã¿ÉÒÔ¿´µ½Ò»¸ö¿Õ°×ÄÚÈݵÄftp¿Õ¼ä¡£
ÆôÓãºsudo /etc/init.d/vsftpd start
Í£Óãºsudo /etc/init.d/ ......

linux½ø³Ìºǫ́ÔËÐеļ¸ÖÖ·½·¨


ÎÒÃǾ­³£»áÅöµ½ÕâÑùµÄÎÊÌ⣬Óà telnet/ssh µÇ¼ÁËÔ¶³ÌµÄ Linux ·þÎñÆ÷£¬ÔËÐÐÁËһЩºÄʱ½Ï³¤µÄÈÎÎñ£¬ ½á¹ûÈ´ÓÉÓÚÍøÂçµÄ²»Îȶ¨µ¼ÖÂÈÎÎñÖÐ;ʧ°Ü¡£ÈçºÎÈÃÃüÁîÌá½»ºó²»Êܱ¾µØ¹Ø±ÕÖն˴°¿Ú/ÍøÂç¶Ï¿ªÁ¬½ÓµÄ¸ÉÈÅÄØ£¿ÏÂÃæ¾ÙÁËһЩÀý×Ó£¬ Äú¿ÉÒÔÕë¶Ô²»Í¬µÄ³¡¾°Ñ¡Ôñ²»Í¬µÄ·½Ê½À´´¦ÀíÕâ¸öÎÊÌâ¡£
nohup/setsid/&
³¡¾°£º
Èç¹ûÖ» ......

LinuxÖÐfindÃüÁî

 
ÔÚWindowsÖпÉÒÔÔÚijЩ·¾¶ÖвéÕÒÎļþ£¬Ò²¿ÉÒÔÉ趨²»ÔÚijЩ·¾¶ÖвéÕÒÎļþ£¬ÏÂÃæÓÃLinuxÖеÄfindµÄÃüÁî½áºÏÆä-path -prune²ÎÊýÀ´¿´¿´ÔÚLinuxÖÐÔõôʵÏִ˹¦ÄÜ¡£
¼ÙÈçÔÚµ±Ç°Ä¿Â¼Ï²éÕÒÎļþ£¬ÇÒµ±Ç°Ä¿Â¼ÏÂÓкܶàÎļþ¼°Ä¿Â¼£¨¶à²ãĿ¼£©£¬°üÀ¨dir0¡¢dir1ºÍdir2 ...µÈĿ¼¼°dir00¡¢dir01...dir10¡¢dir11...µÈ×ÓĿ¼¡£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ