Linuxѧϰ±Ê¼Ç
Ô¶³ÌµÇÈ룺ssh che@192.168.1.111
1.Ìí¼ÓÓû§£ºuseradd cheyanbing
2.ÐÞ¸ÄÃÜÂ룺passwd cheyanbing
3.mkdir /cd /cd .. /cd -/
4.»Øµ½Óû§Ö÷Ŀ¼£ºcd / cd ~
5.cd /home/he
6.mkdir -p www/pro
Ô¶³Ì¿½±´
scp che@192.168.1.111:/home/che/test
che@192.168.1.133:/home/che/
½«testÎļþ¿¼µ½/home/che/ÏÂ
ȨÏÞ
r¶Á 4
wд 2
xÖ´ÐÐ(¼´¿ÉÒÔ´ò¿ª) 1
£Ã»È¨ÏÞ(Ö»ÄÜ¿´)
£»òd£üÓµÓÐÕß(ȨÏÞ)£üͬ×é(ȨÏÞ)£üÆäËû(ȨÏÞ)
chmod rwxr-xw-x test.txt
chmod o+r test.txt
chmod u+w test.txt
chmod g+r test.txt
chmod 755 test.txt
chmod -R 755 test //½«testĿ¼ÏÂËùÓÐÎļþȨÏÞ¸ÄΪ755
chown steven:steven test.txt //¸Ä±äÓµÓÐÕߺÍ×é
chgrp //µ¥´¿¸Ä×é
Îļþ²Ù×÷
¸´ÖÆÎļþ cp
cp t1 t2
cp t1 fv/
cp -R fv1 fv2
¼ôÌùÎļþ
mv t1 t2 //Ï൱ÓÚ¸ÄÃû
mv t1 fv/
mv fv1 fv2/
ɾ³ýÎļþ
rm t1
rm -r fv
rm -rf fv1
´´½¨Îļþ
touch t1
vi t1
ftpÃüÁî
ftp ipµØÖ·
lftp ipµØÖ· (ÓÃÀ´ÄäÃûµÇ¼)
½âѹËõ
³£¼ûµÄÓÐgzip(.tar.gz)/bzip(.tar.bz2)
a.ÓÃgzip¸ñʽѹËõ tar cvzf [ѹËõºóÎļþÃû] £Û±»Ñ¹ËõµÄÎļþÁбí£Ý
b.ÓÃgzipºÏÊʽâѹËõ tar xvzf [ѹËõµÄÎļþÃû]
c.ÓÃbzip¸ñʽѹËõ tar cvjf [ѹËõºóÎļþÃû] £Û±»Ñ¹ËõµÄÎļþÁбí£Ý
d.ÓÃbzipºÏÊʽâѹËõ tar xvjf [ѹËõµÄÎļþÃû]
1.Èí¼þ°²×°·½·¨(Ò»°ãÕë¶Ôredhat ºÍcentos)
1.1»ùÓÚrpmµÄÈí¼þ°²×°·½·¨(redhat package manager)
Ö»ÄÜrootÓû§°²×°
rpm -ivh
gftp-2.0.18.3.2.2.i386.rpm //°²×°
rpm -qa
//²éѯ°²×°ËùÓÐrpmÈí¼þ°ü
rpm -qa | grep gftp
//Ó¦ÓùܵÀ²éÕÒº¬ÓÐgftpµÄ×Ö·û´®,µÃµ½µÄ¾ÍÊÇrpmÈí¼þµÄÈí¼þÃû
rpm -e
gftp-2.0.18-3.2.2//Ð¶ÔØÈí¼þ°ü£¨gftp-2.0.18-3.2.2 ´ú±íÈí¼þÃû£©
1.2»ùÓÚÔ´ÂëµÄ°²×°·½·¨
ÏȽâѹѹËõ°ü
1.configure
./configure
--enable-gui
--prefix=/opt/mplay1.0(configureÒ»¶¨ÊÇ¿ÉÖ´ÐÐÎļþ,ºóÃæÊǰ²×°Â·¾¶£¬¿ÉÓÃls -l²é¿´)
ÖÐ;¿ÉÄÜÐèÒª°²×°ºÜ¶àÆäËûµÄ°²×°°ü
2.make
3.make install
1.3ÂÌÉ«Èí¼þ
.binÊÇ¿ÉÖ´ÐÐÎļþ£¬µ«ÓÐʱûÓÐxȨÏÞ£
Ïà¹ØÎĵµ£º
Red Hat Enterprise linux 5ÅäÖÃVPN·þÎñÆ÷¶ËÐÂÊÖÉÏ·
1.×¼±¸¶¯×÷,ʹÓÃÏÂÃæµÄÃüÁîÏÂÔØÐèÒªµÄ°²×°Îļþ¡£(ĬÈϵĴæ·ÅλÖÃÓ¦¸ÃÊÇ/home
/admin)
wget http://poptop.sourceforge.net/yum/stable/packages/dkms-2.0.17.5-1.noarch.rpm
wget
http://poptop.sourceforge.net/yum/stable/packages/kernel_ppp_mppe-1.0.2-3dk ......
Èí¼þ°²×°ÃüÁî
1. tar
tar ÃüÁîµÄ»ù±¾Ó÷¨Îª£º
tar [Ñ¡Ïî] ÎļþÃû
³£ÓõÄÑ¡Ïî°üÀ¨
-c ´´½¨Ò»¸öеĵµ°¸Îļþ
-t ²é¿´µµ°¸ÎļþµÄÄÚÈÝ
-x ·Ö½âµµ°¸ÎļþµÄÄÚÈÝ
-f Ö¸¶¨µµ°¸ÎļþµÄÃû³Æ
-v ÏÔʾ¹ý³ÌÐÅÏ¢
-z ²ÉÓÃѹËõ·½Ê½
¾ÙÀý
1 tar -czf oracle.tar.gz /u01/app/oracle /etc/oratab /home/oracl ......
ÉùÃ÷£º´Ëµ÷²é½á¹ûÈçÓдíÎ󣬾´ÇëÖ¸Õý¡£Ð»Ð»^_^
LinuxÏÂÎļþ¶ÔÓ¦µÄÊôÐÔ
struct stat {
mode_t st_mode; //Îļþ¶ÔÓ¦µÄģʽ£¬Îļþ¡¢Ä¿Â¼µÈ
ino_t ......
×òÌìÔÚ±àдһ¸ö³ÌÐòµÄʱºò·¢ÏÖÐèÒªÁ´½ÓµÄ¾²Ì¬¿â¶¼È·¶¨´æÔÚ£¬Ö¸¶¨µÄ·¾¶Ò²Ã»ÓÐÎÊÌ⣬µ«ÊDZàÒë×ÜÊdzöÏÖÁ´½ÓÎÊÌ⣬ÕÒ²»µ½ÊµÏÖ£¬²Å·¢ÏÖÔÀ´Èç¹ûͬʱÁ´½Ó¶à¸ö¾²Ì¬¿â£¬²¢ÇÒÈç¹ûÕâЩ¾²Ì¬¿âÖ®¼ä´æÔÚÏ໥ÒÀÀµ¹ØÏµµÄ»°£¬ÐèÒª°´Ò»¶¨µÄ˳Ðò½øÐÐÁ´½Ó£¬ÀýÈ磺Èç¹ûlibb.aÒÀÀµliba.a£¬ÄÇô±àÒë²ÎÊýÓ¦¸Ãд³ÉÕâÑù£º -lb -la ......
1£¬Çý¶¯³ÌÐòÈë¿ÚºÍ³ö¿Úµã
module_init£ºÇý¶¯³ÌÐò³õʼ»¯Èë¿Úµã£¬º¯ÊýÔÐÍ£ºmodule_init ( x)£¬xΪÆô¶¯Ê±»ò²åÈëÄ£¿éʱҪÔËÐеĺ¯Êý¡£Èç¹ûÔÚÆô¶¯Ê±¾ÍÈ·ÈϰÑÕâ¸öÇý¶¯³ÌÐò ²åÈëÄں˻òÒÔ¾²Ì¬ÐγÉÁ´½Ó£¬Ôòmodule_init ½«Æä³õʼ»¯Àý³Ì¼ÓÈëµ½"__initcall.int"´úÂë¶Î£¬·ñÔò½«ÓÃinit_module·â×°Æä³õʼ»¯Àý³Ì£¬ÒÔ±ã¸ÃÇý¶¯³ÌÐò×÷Ϊģ¿éÀ ......