LinuxÃüÁîÐÐÏÂͳ¼Æµ±Ç°Îļþ¼ÐϵÄÎļþ¸öÊý
ͳ¼ÆÄ³Îļþ¼ÐÏÂÎļþµÄ¸öÊý
ls -l |grep "^-"|wc -l
ͳ¼ÆÄ³Îļþ¼ÐÏÂĿ¼µÄ¸öÊý
ls -l |grep "^£ä"|wc -l
ͳ¼ÆÎļþ¼ÐÏÂÎļþµÄ¸öÊý£¬°üÀ¨×ÓÎļþ¼ÐÀïµÄ¡£
ls -lR|grep "^-"|wc -l
ͳ¼ÆÎļþ¼ÐÏÂĿ¼µÄ¸öÊý£¬°üÀ¨×ÓÎļþ¼ÐÀïµÄ¡£
ls -lR|grep "^d"|wc -l
˵Ã÷£º
ls -l
³¤ÁбíÊä³ö¸ÃĿ¼ÏÂÎļþÐÅÏ¢(×¢ÒâÕâÀïµÄÎļþ£¬²»Í¬ÓÚÒ»°ãµÄÎļþ£¬¿ÉÄÜÊÇĿ¼¡¢Á´½Ó¡¢É豸ÎļþµÈ)
grep "^-"
ÕâÀォ³¤ÁбíÊä³öÐÅÏ¢¹ýÂËÒ»²¿·Ö£¬Ö»±£ÁôÒ»°ãÎļþ£¬Èç¹ûÖ»±£ÁôĿ¼¾ÍÊÇ ^d
wc -l
ͳ¼ÆÊä³öÐÅÏ¢µÄÐÐÊý£¬ÒòΪÒѾ¹ýÂ˵Ãֻʣһ°ãÎļþÁË£¬ËùÒÔͳ¼Æ½á¹û¾ÍÊÇÒ»°ãÎļþÐÅÏ¢µÄÐÐÊý£¬ÓÖÓÉ ÓÚÒ»ÐÐÐÅÏ¢¶ÔÓ¦Ò»¸öÎļþ£¬ËùÒÔÒ²¾ÍÊÇÎļþµÄ¸öÊý¡£
Ïà¹ØÎĵµ£º
vi adduser.sh È»ºó°ÑÈçÏ´úÂëÌùÈë¡£±£´æµ½CVSROOTĿ¼Ï¡£
#!/bin/bash
#add cvs users
while [ -n "$(echo $1|grep '^_')"];
do
case $1 in
-u) param=$2
echo -e "$param:\c" >>passwd
shift ;;
-p) param=$2
echo -e `./passwdgen.pl $param`":cvsroot" >> passwd;;
*)
exit 1
esac
shift
......
Linux ÏÂSVNµÄʹÓÃ
Ò»¡¢install
sudo aptitude install subversion
¶þ¡¢checkout
sudo svn --username fpzeng co https://********/
***
It's necessary to replace my username fpzeng with yours.
Èý¡¢update
sudo svn update
¾ßÌåÓõ½±ðµÄÔÙ˵£¬½ñÌì¸Õ×°ÉÏ ......
ÔÚLinuxÏÂJdkµÄ°²×°ºÍJava»·¾³±äÁ¿µÄÉèÖÃ
ÔÚLinuxÏÂJdkµÄ°²×°ºÍJava»·¾³±äÁ¿µÄÉèÖÃ
1¡¢µ½www.sun.comÏÂÔØ×îа汾µÄj2sdk for linux
2¡¢°²×°jdk1.4.2 for linux,ÒÔÏÂÊÇÔÚRedhat Linux 9ÏÂΪÀý£º
ÒÔrootÉí·ÝµÇ¼
(1)´ò¿ªÒ»¸öÖÕ¶Ë
(2)ÊäÈëÃüÁîls -l ²é¿´°²×°ÎļþµÄȨÏÞ
......
umask()º¯Êý£º´Ëº¯ÊýµÄÖ÷Òª×÷ÓÃÊÇÔÚ´´½¨ÎļþʱÉèÖûòÕ߯Á±ÎµôÎļþµÄһЩȨÏÞ¡£Ò»°ãÓëopen()º¯ÊýÅäºÏʹÓá£openº¯ÊýÔÐÍ£º
#include<sys/types.h>
#include<sys/stat.h>
#include<fcntl.h>
int open( const char * pathname, int flags);
int open( const char ......
Ëæ×ÅLinuxÓ¦ÓõÄÀ©Õ¹Ðí¶àÅóÓÑ¿ªÊ¼½Ó´¥Linux£¬¸ù¾ÝѧϰWindwosµÄ¾ÑéÍùÍùÓÐһЩãȻµÄ¸Ð¾õ£º²»Öª´ÓºÎ´¦¿ªÊ¼Ñ§Æð¡£ÕâÀï½éÉÜѧϰLinuxµÄһЩ½¨Òé¡£
Ò»¡¢´Ó»ù´¡¿ªÊ¼£º ³£³£ÓÐЩÅóÓÑÔÚLinuxÂÛ̳ÎÊһЩÎÊÌ⣬²»¹ý£¬ÆäÖдó¶àÊýµÄÎÊÌâ¶¼ÊǺܻù´¡µÄ¡£ÀýÈ磺ΪʲôÎÒʹÓÃÒ»¸öÃüÁîµÄʱºò£¬ÏµÍ³¸æËßÎÒÕÒ²»µ½¸ÃĿ¼£¬ÎÒÒªÈçºÎÏÞÖÆÊ¹Ó ......