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

DOS ºÍ Linux ³£ÓÃÃüÁîµÄ¶Ô±È

Ðí¶àÔÚ shell ÌáʾϼüÈëµÄ Linux ÃüÁÓëÄãÔÚ DOS ϼüÈëµÄÃüÁîÏàËÆ¡£ÊÂʵÉÏ£¬Ä³Ð©ÃüÁîÍêÈ«Ïàͬ¡£
±¾¸½Â¼ÌṩÁË Windows µÄ DOS Ìáʾϵij£ÓÃÃüÁîÒÔ¼°ÔÚ Linux ÖÐÓëËüÃǵÈͬµÄÃüÁî¡£¸½Â¼Öл¹ÌṩÁËÈçºÎÔÚ Linux shell ÌáʾÏÂʹÓÃÕâЩÃüÁîµÄ¼òµ¥ÊµÀý¡£Çë×¢Ò⣬ÕâЩÃüÁîͨ³£ÓÐÐí¶àÑ¡ÏҪ½øÒ»²½Ñ§Ï°Ã¿Ò»¸öÃüÁÇëÔĶÁÏà¹ØµÄ˵Ã÷Ê飨man£©Ò³£¨ÀýÈ磬ÔÚ shell ÌáʾϼüÈë man ls ¾Í¿ÉÒÔ¶Áµ½¹ØÓÚ ls ÃüÁîµÄÐÅÏ¢£©¡£
ÃüÁîµÄÄ¿µÄMS-DOSLinuxLinux µÄ¼òµ¥ÊµÀý
¸´ÖÆÎļþ
copy
cp
cp thisfile.txt /home/thisdirectory
תÒÆÎļþ
move
mv
mv thisfile.txt /home/thisdirectory
ÁоÙÎļþ
dir
ls
ls
Çå³ýÆÁÄ»
cls
clear
clear
¹Ø±Õ shell Ìáʾ
exit
exit
exit
ÏÔʾ»òÉèÖÃÈÕÆÚ
date
date
date
ɾ³ýÎļþ
del
rm
rm thisfile.txt
°ÑÊä³ö“»ØÏ씵½ÆÁÄ»ÉÏ
echo
echo
echo this message
Óüòµ¥Îı¾±à¼­Æ÷À´±à¼­Îļþ
edit
gedit([a])
gedit thisfile.txt
±È½ÏÎļþÄÚÈÝ
fc
diff
diff file1 file2
ÔÚÎļþÖÐÑ°ÕÒ×Ö´®
find
grep
grep ´Ê»ò´Ê×é thisfile.txt
¸ñʽ»¯ÈíÅÌ
format a:£¨Èç¹ûÈíÅÌÊÇÔÚ A: ÖеĻ°£©
mke2fs »ò mformat£¨[b]£©
/sbin/mke2fs /dev/fd0£¨/dev/fd0 ÊÇ Linux ÖÐÓë A: µÈͬµÄÇý¶¯Æ÷£©
ÏÔʾÃüÁî°ïÖú
ÃüÁî /?
man£¨[c]£©
man ÃüÁî
´´½¨Ä¿Â¼
mkdir
mkdir
mkdir Ŀ¼
²é¿´Îļþ
more
less£¨[d]£©
less thisfile.txt
ÖØÐÂÃüÃûÎļþ
ren
mv£¨[e]£©
mv thisfile.txt thatfile.txt
ÏÔʾÄãÔÚÎļþϵͳÖеÄλÖÃ
chdir
pwd
pwd
ÓÃÖ¸¶¨µÄ·¾¶£¨¾ø¶Ô·¾¶£¬absolute path£©À´¸Ä»»Ä¿Â¼
cd ·¾¶Ãû
cd ·¾¶Ãû
cd /directory/directory
ÓÃÒ»¸öÏà¶Ô·¾¶£¨relative path£©À´¸Ä»»Ä¿Â¼
cd ..
cd ..
cd ..
ÏÔʾʱ¼ä
time
date
date
ÏÔʾÒѱ»Ê¹ÓõÄÄÚ´æÊýÁ¿
mem
free
free
×¢:
a. Gedit ÊÇͼÐλ¯Îı¾±à¼­Æ÷£»Äã¿ÉÒÔʹÓÃÆäËüÎı¾±à¼­Æ÷À´´úÌæ Gedit£¬°üÀ¨ Emacs ºÍ vi¡£
b. Õâ¸öÃüÁîΪ DOS Îļþϵͳ¸ñʽ»¯ÈíÅÌ¡£
c. ijЩÃüÁîÄ㻹 ¿ÉÒÔʹÓà info¡£
d. more ·ÖÒ³Æ÷Ò²¿ÉÒÔÓÃÀ´Ò»¸öÆÁĻһ¸öÆÁÄ»µØÔÚÎļþÖÐÖðÒ³²é¿´¡£
e. mv ÃüÁî¿ÉÒÔתÒÆÎļþ»òÖØÐÂÃüÃûÔÚͬһĿ¼ÏµÄÎļþ¡£Èç¹ûÄãÏëÖØÐÂÃüÃûÎļþ£¬ÈçÀýÖÐËùʾ£¬°ÑÕâ¸öÎļþ“תÒÆ”µ½Í¬Ò»Ä¿Â¼ÖеÄÐÂÃû³Æ¡£


Ïà¹ØÎĵµ£º

LinuxϵͳÈÕÖ¾½éÉÜ(syslogd)

¡¡¡¡1¡¢½éÉÜ£º
¡¡¡¡ ´ó²¿·ÖµÄ Linux ϵͳÖж¼ÒªÊ¹Óà syslog ¹¤¾ß£¬ËüÊÇÏ൱Áé»îµÄ£¬ÄÜʹϵͳ¸ù¾Ý²»Í¬ÈÕÖ¾ÊäÈëÏî²ÉÈ¡²»Í¬µÄ»î¶¯¡£syslog ¹¤¾ßÓÉÒ»¸öÊØ»¤³ÌÐò×é³É¡£ËüÄܽÓÊÜ·ÃÎÊϵͳµÄÈÕÖ¾ÐÅÏ¢²¢ÇÒ¸ù¾Ý /etc/syslog.conf ÅäÖÃÎļþÖеÄÖ¸Áî´¦ÀíÕâЩÐÅÏ¢¡£³ÌÐò£¬ÊØ»¤½ø³ÌºÍÄÚºËÌṩÁË·ÃÎÊϵͳµÄÈÕÖ¾ÐÅÏ¢¡£Òò´Ë£¬ÈκÎÏ£ÍûÉú³ÉÈÕ ......

linuxÄں˵ÄһЩԤ¶¨Òå

 Ô­ÎÄ:http://article.phpfans.net/?do=Show&id=Mjc3NTkx
 ×÷Õß: crazytyt  Ê±¼ä: 2009-08-27 13:29:00
ËùÓеÄÄں˴úÂ룬»ù±¾¶¼°üº¬ÁËlinux\compile.hÕâ¸öÎļþ£¬ËùÒÔËüÊÇ»ù´¡£¬´òËãÏÈ·ÖÎöÕâ¸öÎļþÀïµÄ´úÂë¿´¿´£¬ÓпÕÔÙ·ÖÎö·ÖÎöÆäËüµÄ´úÂë¡£
Ê×ÏÈÓ¡ÈëÑÛÁ±µÄÊǶÔ__ASSEMBLY__Õâ¸öºêµÄÅжϣ¬Õâ¸ö±äÁ¿Êµ¼ ......

linux´®¿ÚÉèÖù¤¾ßsetserial±¨´í·ÖÎö¼°½â¾ö·½·¨


 
 
 
Cannot set serial info: Invalid argument
ÉÏÃæµÄ±¨´í£¬¾­¹ý·ÖÎösetserialÔ´ÂëÓëkernel 8250 driver£¬·¢ÏÖsetserialͨ¹ýioctl£¨TIOCSSERIAL£©½«new_serial½á¹¹Ì壨³ÐÔØÁË
serial info£©´«ÈëÄںˣ¬ÄÚºË8250Çý¶¯³ÌÐò½Óµ½serial infoºóÏÈget¾ÉµÄserial info£¬ÔÙsetд«ÈëµÄserial info¡£
Òò´ËÁª ......

LinuxÉèÖû·¾³±äÁ¿Ð¡½á

 
1¡¢×ܽᱳ¾°
ÔÚlinuxϵͳÏ£¬Èç¹ûÄãÏÂÔز¢°²×°ÁËÓ¦ÓóÌÐò£¬ºÜÓпÉÄÜÔÚ¼üÈëËüµÄÃû³Æʱ³öÏÖ“command not found”µÄÌáʾÄÚÈÝ¡£Èç¹ûÿ´Î¶¼µ½°²×°Ä¿±êÎļþ¼ÐÄÚ£¬ÕÒµ½¿ÉÖ´ÐÐÎļþÀ´½øÐвÙ×÷¾ÍÌ«·±ËöÁË¡£ÕâÉæ¼°µ½»·¾³±äÁ¿PATHµÄÉèÖÃÎÊÌ⣬¶øPATHµÄÉèÖÃÒ²ÊÇÔÚlinux϶¨ÖÆ»·¾³±äÁ¿µÄÒ»¸ö×é³É²¿·Ö¡£±¾°¸Àý»ùÓÚRedH ......

linuxÏÂʹÓÃP4£¨ÃüÁîÐУ©

 »·¾³±äÁ¿:
export P4PASSWD=abcdefg
export P4CLIENT=dyoldfish.com    //Õâ¸ö¿ÉÒÔ²»Éè
export P4USER=dyoldfish
export P4PORT=192.168.1.198:1666
ÃüÁ
1¡¢p4 client  #ÅäÖñ¾µØÐÅÏ¢£¬ÎļþÏÂÔØÔÚÄÄÀïÔÚÕâÀïÃæÅäÖã¬RootÏî
2¡¢p4 sync   #´Óperforce ÏÂÔØÎļþ
3¡¢p4 login& ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ