¡¾×ª¡¿LinuxʹÓðïÖú˵Ã÷
Viʹ Óà ˵ Ã÷
Linux×÷Ϊһ¸ö¶àÓû§,¶àÈÎÎñµÄ²Ù×÷ϵͳ,ÓÐ×ÅÇ¿´óµÄ¹¦ÄÜ.±¾ÆªÎÒÃǶÔÕÕDOS½²½âһЩÓëDOS¹¦ÄÜÏàËƵÄLinuxÖ÷ÒªÃüÁî,Ï£ÍûÎÒÃÇ˳ÀûµÄ½øÈëµ½LinuxÊÀ½ç.¸üÏêϸµÄÃüÁîÔÚÒÔºóµÄƪ·ùÀïÒÔTurboLinuxΪÀý½øÐзÖƪ½éÉÜ
Ò»,Æô¶¯
LinuxµÄÆô¶¯²Ù×÷¹ý³ÌºÍDOSÏàËÆ(¾¡¹ÜÈç´Ë,µ«×÷Ϊ²Ù×÷ϵͳ±¾Éí,LinuxÔÚÆô¶¯ºÍÍ˳öʱËù×÷µÄ¹¤×÷Òª±ÈDOS¶àµÃ¶à),Ò²¿ÉÒÔͨ¹ý°´ÏÂCtrl+Alt+DelÈý¼ü½øÐÐÈÈÆô¶¯.²»Í¬µÄÊÇLinuxÆô¶¯µ½×îºóʱ,ÐèÒª½øÐеǼ.ÏÂÃæÊÇÒ»¸öµäÐ͵ĵǼ¹ý³Ì:
……
RedHat Linux release 5.1
Kernel 2.0.32 on an i686
login:
Äã¼üÈë:rootºó,¼ÆËã»úÏÔʾÊä¿ÚÁî(password:),ÊäÈëÄãµÄ¿ÚÁî(Èç¹ûÊǵÚÒ»´ÎÆô¶¯,ÔòÊÇÄãÔÚ°²×°Ê±ËùÊäÈëµÄ¿ÚÁî)¼´¿É.µ±¼ÆËã»ú³öÏÖÒ»¸ö"#"Ìáʾ ·ûʱ,±íÃ÷ÄãµÇ¼³É¹¦!
[root@localhost root]#_ LinuxÌáʾ·û
C:\>_ DOSÌáʾ·û
¶þ,³£ÓõÄһЩÃüÁî:
1.ÏÔʾÎļþĿ¼ÃüÁîls(DOSÏÂΪDIR)
ÔÚLinuxÖÐÓÃlsÃüÁîÏÔʾÎļþ¼°Ä¿Â¼(µ±È»,ÄãÈÔȻҲ¿ÉÓÃDIRÃüÁî,Ö»²»¹ýÔÚÕâÀïµÄ²ÎÊý²»Í¬).ÀýÈç:#ls
root mnt boot dev bin usr xiong tmp etc games
¿´ÆðÀ´Ëƺõ¼òµ¥(¾ÍÏ൱ÓÚDOSÖеÄ"DIR/W"),µ«Äã»á·¢ÏÖÄã¿´µ½µÄÓÐЩÄѶ®,Á¬ÄÄЩÊÇĿ¼ÄÄЩÊÇÎļþ¶¼²»Çå³þ,ÄÄЩÓÖÊÇ¿ÉÖ´ÐÐÎļþÄØ ²»Òª½ô,ÇëÊäÈë:#ls -F+root/ mnt/ boot/ dev/ bin/ usr/ xiong* tmp/ etc/ games / readme
¿´Çå³þÁË°É,´ø*Ϊ¿ÉÖ´ÐÐÎļþ(Ï൱ÓÚDOSÖеÄEXEºÍCOMÎļþ),´ø/Ϊ×ÓĿ¼,ÆäËüµÄΪͨÓÃÎļþ.ÁíÍâ,ÎÒÃÇ¿ÉÓÃls -lÏÔʾÎļþĿ¼µÄÏêϸÇé¿ö(Ï൱ÓÚDOSÖеÄDIRÃüÁî).ǧÍò×¢ÒâÇø·Ö´óСд!!ÈçLS -f;LsµÈ¶¼ÊÇ´íÎóµÄ.ÁíÍâ,lsÃüÁÓÐÐí¶à²ÎÊý,Äã¿ÉÒÔÓÃman ls»òls--helpÈ¥½øÒ»²½Á˽â.
2.¸Ä±äµ±Ç°Ä¿Â¼ÃüÁîcd(DOSÏÂΪCD)
ÔÚDOSÖÐ,ÎÒÃÇ¿ÉÒÔÓÃC:\>CD\MNT\cdrom»òcd\mnt\cdrom
C:\mnt\cdrom>cd ..»òcd..»òCD..
C:\mnt>cd\»òC:\mnt>cd \
¶øÔÚLinuxÖÐΪcd /mnt/cdrom,Ŀ¼ÃûµÄ´óСд±ØÐëÓëʵ¼ÊÏàͬ,cdºó±ØÐëÓпոñ.
pwd ÏÔʾµ±Ç°Ä¿Â¼
cd .. ±ØÐëΪСд,±ØÐëÓпոñ
cd / ×ÜĿ¼Ϊ/,cdÓë/±ØÐëÓпոñ
3.½¨Á¢×ÓĿ¼mkdir(DOSÏÂΪMD»òMKDIR)
ÔÚLinuxÖÐÖ»ÄÜÓÃmkdir,¿ÉÓÃÏà¶Ô·¾¶ºÍ¾ø¶Ô·¾¶,Çë±È½Ï:
C:\>md xiong»òmd \xiong»òmd\xiong
DOSϵͳ
[root@localhost /]#mkdir xiong»òmkdir /xiong
Linuxϵͳ
4.ɾ³ý×ÓĿ¼ÃüÁîrmdir(DOSÏÂΪRD)
ÔÚLinuxÖÐÓÃrmdirÃüÁîɾ³ý×ÓĿ¼,ÀýÈç:
rmdir /mnt/cdrom Ï൱ÓÚrd \mnt\cdrom
×¢Ò
Ïà¹ØÎĵµ£º
1. ѧ»áд¼òµ¥µÄmakefile
2. ±àһЩӦÓÃ
³ÌÐò
£¬¿ÉÒÔÓÃmakefileÅÜÆðÀ´
3. ѧ»áдÇý¶¯
µÄmakefile
4. дһ¼òµ¥charÇý¶¯£¬makefile±àÒëͨ¹ý£¬¿ÉÒÔinsmod£¬ lsmod£¬ rmmod. ÔÚÇý¶¯µÄinitº¯ÊýÀï´òÓ¡hello world£¬insmodºóÓ¦¸ÃÄܹ»Í¨¹ýdmesg¿´µ½Êä³ö
¡£
5. дһÍêÕûÇý¶¯£¬ ¼ÓÉÏread£¬ write£¬ ioctl£¬ pollingµÈ¸ ......
WindowsºÍLinux¼äÓкܶàÎļþ¹²ÏíµÄ·½Ê½£¬ÕâÀï×ܽáÁËһϡ£¼ÙÉèÄãµÄHost¼ÆËã»úÊÇWindows,GuestÊÇLinux¡£
1.ÓÃvmware tools¹¤¾ß
SharedFoldersÊÇVmware4 µÄÒ»¸öй¦ÄÜ£¬¸ü¼Ó·½±ãÁËÔÚHost£¬Guest²Ù×÷ϵͳ¼ä¹²ÏíÎļþ¡£µ«ÊÇʹÓÃÇ°
Òª°²×°vmware tools.
µã»÷setting->vmware tools install
mount /dev/cdrom /mnt/cdr ......
linuxµÄechoÃüÁî, ÔÚshell±à³ÌÖм«Îª³£ÓÃ, ÔÚÖÕ¶ËÏ´òÓ¡±äÁ¿valueµÄʱºòÒ²Êdz£³£Óõ½µÄ, Òò´ËÓбØÒªÁ˽âÏÂechoµÄÓ÷¨
echoÃüÁîµÄ¹¦ÄÜÊÇÔÚÏÔʾÆ÷ÉÏÏÔʾһ¶ÎÎÄ×Ö£¬Ò»°ãÆðµ½Ò»¸öÌáʾµÄ×÷Óá£
¸ÃÃüÁîµÄÒ»°ã¸ñʽΪ£º echo [ -n ] ×Ö·û´®
ÆäÖÐÑ¡Ïîn±íʾÊä³öÎÄ×Öºó²»»»ÐУ»×Ö·û´®ÄܼÓÒýºÅ£¬Ò²Äܲ»¼ÓÒýºÅ¡£ÓÃechoÃüÁîÊä³ö¼ ......
һ.ΪʲôҪѧlinux?
µ±È»×îÖØÒªÊÇ°®ºÃºÍÐËȤ£¡Èç¹ûÄãÕâÖÖ±ØҪѧ£¬»òÕ߸ù±¾²»Ï²»¶£¬Çë²»ÒªÀË·Ñʱ¼ä£¬ÄãѧҲѧ²»ºÃ£¡
¶þ.Æð²½
ÄãÓ¦¸ÃΪ×Ô¼º´´ÔìÒ»¸öѧϰlinuxµÄ»·¾³--ÔÚµçÄÔÉÏ×°Ò»¸ölinux»òunix
ÎÊÌâ1£º°æ±¾µÄÑ¡Ôñ
±±ÃÀÓÃredhat,Å·ÖÞÓÃSuSE,×ÀÃæmandrake½Ï¶à£¬¶ødebianÊǼ¼Êõ×îÏȽøµÄlinux
¿ª·¢ÈËÔ±ÖÐÓà ......
ÈçºÎÔÚlinux¿ª»úʱ×Ô¶¯Æô¶¯smb¹²Ïí·þÎñ£¿
·½·¨1£ºntsysv£¬ÓнçÃ棬ѡÖÐsamba·þÎñ¼´¿É
·½·¨2. chkconfig --add smb
[root@test ~]# chkconfig --add smb
[root@test ~]# chkconfig --list smb
smb ......