linux »ù±¾ÃüÁî
ʹÓÃTAB¼ü
ÓÃÊó±ê¿½±´ºÍÕ³ÌùÌá¸ß²Ù×÷ËÙ¶È ×ó¼üÍ϶¯---¿½±´ Öмüµã»÷---Õ³Ìù
1¡¢mkdir ½¨Á¢ÐÂĿ¼Ãû ¼Ó“." ÔÚĿ¼ÃûǰΪÒþ²ØĿ¼£¨ls -a¿É²é¿´£©
rm -rf Ŀ¼Ãû ɾ³ýĿ¼¼°×ÓĿ¼ rm -- -eeɾ³ý-eeÎļþ »òÕß rm "ÎļþÃû"
2¡¢mv ÀÏÎļþÃû ÐÂÎļþÃû ¸Ä±äÎļþ/Ŀ¼Ãû×Ö
cp ÀÏÎļþÃû ÐÂÎļþÃû ¸´ÖÆĿ¼ -R£¨¸´ÖÆĿ¼£©
3¡¢halt ¹Ø»ú reboot ÖØÆð
4¡¢mount (-t iso9660) /dev/cdrom /mnt/cdrom À¨ºÅÀïΪָ¶¨ÎļþÀàÐÍ£¬Ò»°ã¿É²»Óã¬linuxÒ»°ã»á×Ô¶¯Ê¶±ðÎļþÀàÐÍ
umount /mnt/cdrom »ò umount /dev/cdrom ÔÚÈ¡³ö¹âÅÌ»òÈíÅÌʱ£¬±ØÐëÏÈÔËÐÐÕâÌõÖ¸Áî
5¡¢¹ÜµÀÃüÁ
“|” ls /dev | more /devĿ¼µÄÎļþÒ»Ò³²»ÄÜÏÔʾÍ꣬more¿ÉÒÔ¶àÒ³ÏÔʾÍê
ÓÃÎļþ¼Ç¼ls /dev µÄËùÓнá¹û
ls /dev >file.txt Ŀ¼ÀïûÓÐfile.txt Ôò»á´´½¨Ò»¸öfile.txtÎļþ£¬Ä¿Â¼ÀïÓеĻ°Ôò»á¸²¸Çfile.txt
ls /dev >>file.txt ÎÞÔò´´½¨ ÓÐÔòÔÚÎļþºóÃæ×·¼ÓÄÚÈÝ
cat >>friends <<"EOF" °Ñ½ÓÏÂÀ´ÊäÈëµÄÄÚÈݱ£´æµ½friendsÎļþÀïÃæ¡£ ÊäÈë“EOF”ʱ½áÊø
<< ¾ÍÊÇÏòÇ°ÃæµÄÃüÁî´«ËÍÒ»¸öÊý¾Ý
6 ¡¢cd ..¿É½øÈëÉÏÒ»²ãĿ¼
¡¡¡¡cd -¿É½øÈëÉÏÒ»¸ö½øÈëµÄĿ¼
¡¡¡¡cd ~¿É½øÈëÓû§µÄhomeĿ¼
7¡¢echo env grep
export ±äÁ¿=Öµ
8¡¢ ½ø³ÌÏà¹Ø£º
ps -A |grep comm ÏÔʾËùÓÐÔËÐеĽø³Ì ¼ìË÷ÊÇ·ñÓÐÎÒÃÇÖ¸¶¨µÄcommÔËÐÐ
top:ÏÔʾϵͳµÄ×î¸ß½ø³Ì¡£ »¹ÓÐ cpuµÄʹÓÃÇé¿ö¡¢Õ¼ÓÃÄÚ´æµÄ´óС¡¢ÔËÐÐʱ¼äµÈ
kill
9¡¢ lynx www.google.com ×Ö·û½çÃæµÄÍøÂçä¯ÀÀÆ÷
chmod -R +wrx ÎļþÃû/Ŀ¼Ãû ¸øÖ¸¶¨Îļþ/Ŀ¼¼ÓȨÏÞ
uname ²é¿´Äں˰汾
df ¼ì²é´ÅÅÌÊ£Óà¿Õ¼ä
du -m/-k ²é¿´Îļþ´óС
10¡¢id:ÏÔʾÓû§µÄϵͳ±êÖ¾¡¢±¨¸æÓû§Ãû¡¢Óû§ºÅ£¨ID£©¡¢×éÃû¡¢×éºÅ£¨GID)
11¡¢ln [²ÎÊý] Ô´Îļþ Ä¿±êÎļþ -d Ó²Á¬½Ó -s Ó÷ûºÅÁ´½Ó´úÌæÓ²Á´½Ó£¨ÈíÁ´½Ó£
Ïà¹ØÎĵµ£º
version: 1.0
date:20090721
Author£ºcrifan
Mail:green-waste(At)163.com
ÉϽӣº¡¾¼ò½é¡¿ÈçºÎ±àдlinuxÏÂnand flashÇý¶¯-1
http://green-waste.blog.163.com/blog/static/3267767820096221127554/
¡¾¶Á£¨read£©²Ù×÷¹ý³ÌÏê½â¡¿
ÒÔ×î¼òµ¥µÄread²Ù×÷ΪÀý£¬½âÊÍÈçºÎÀí½âʱÐòͼ£¬ÒÔ¼°½«Ê±Ðòͼ
ÖеÄÒªÇó£¬×ª»¯ ......
×î½üÒ»¶Îʱ¼äÔÚlinuxÏÂÓÃC×öһЩѧϰºÍ¿ª·¢£¬µ«ÊÇÓÉÓÚ¾Ñé²»×㣬ÎÊÌâ¶à¶à¡£¶ø¶Î´íÎó¾ÍÊÇÈÃÎҷdz£Í·Í´µÄÒ»¸öÎÊÌâ¡£²»¹ý£¬Ä¿Ç°Ð´Ò»¸öһǧÐÐ×óÓҵĴúÂ룬ҲºÜÉÙ³öÏֶδíÎ󣬻òÕßÊǼ´Ê¹³öÏÖÁË£¬Ò²ºÜÈÝÒ×ÕÒ³öÀ´£¬²¢ÇÒ´¦Àíµô¡£
ÄÇʲôÊǶδíÎ󣿶δíÎóΪʲôÊǸöÂ鷳ʣ¿ÒÔ¼°Ôõô·¢ÏÖ³ÌÐòÖеĶΠ......
1¡¢
½«Îļþcheckoutµ½±¾µØĿ¼
svn
checkout
path£¨pathÊÇ·þÎñÆ÷ÉϵÄĿ¼£©
ÀýÈ磺svn
checkout svn
://192.168
.1.1
/pro/domain
¼òд£ºsvn
co
2¡¢
Íù°æ±¾¿âÖÐÌí¼ÓеÄÎļþ
svn
add
file
ÀýÈ磺svn
add test.php(Ìí¼Ótest.php)
svn
add *.php(Ìí¼Óµ±Ç°Ä¿Â¼ÏÂËùÓеÄphpÎļþ)
3¡¢
½«¸Ä¶¯ ......
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
......
ÕÅ Õé
˶ʿÑо¿Éú
ÄϾ©ÐÅÏ¢¹¤³Ì´óѧ601ÐÅÏä,ÄϾ©210044
0 ÒýÑÔ
Ëæ
×Å¿ª·ÅÔ´´úÂëÔ˶¯µÄ·ÉËÙ·¢Õ¹£¬Linux²Ù×÷ϵͳԽÀ´Ô½Êܵ½ÈËÃǵÄÖØÊÓ¡£ÆäÁ¼ºÃµÄ¿É²Ã¼õÐÔÓë¿ÉÒÆÖ²ÐÔ£¬×¿Ô½µÄЧÂʺÍÎȶ¨ÐÔ£¬ÒÔ¼°Ö§³Ö¶àÖÖ´¦ÀíÆ÷Ìåϵ¼Ü¹¹µÄ
Ìص㣬ʹµÃLinuxÔ½À´Ô½¹ã·ºµÄÓ¦ÓÃÓÚǶÈëʽÁìÓò¡£Í¬Ê±£¬ARM9´¦ÀíÆ÷¸ßÖ÷ƵµÄ´¦ÀíËٶȡ¢´óÈÝÁ¿µÄÉÁ´ ......