ãlinuxå½ä»¤æ¯å¯¹Linuxç³»ç»è¿è¡ç®¡ççå½ä»¤ã对äºLinuxç³»ç»æ¥è¯´ï¼æ 论æ¯ä¸å¤®å¤çå¨ãå
åãç£ç驱å¨å¨ãé®çãé¼ æ ï¼è¿æ¯ç¨æ·çé½æ¯æ件ï¼Linuxç³»ç»ç®¡ççå½ä»¤æ¯å®æ£å¸¸è¿è¡çæ ¸å¿ï¼ä¸ä¹åçDOSå½ä»¤ç±»ä¼¼ãlinuxå½ä»¤å¨ç³»ç»ä¸æ两ç§ç±»åï¼å
ç½®Shellå½ä»¤åLinuxå½ä»¤ã以ä¸æ¯win10ä¸ä½¿ç¨linuxå½ä»¤çæ¹æ³ï¼ãã1é¦å
ï¼ç¹å»å±å¹å·¦ä¸è§çWinå¾æ ï¼ç¶åå¨å¼¹åºçèåä¸éæ©âææåºç¨âã
ãã2å¨ææåºç¨ä¸æ¾å°å¹¶å±å¼ Windows PowerShell æ件夹ï¼å¯å¨å
¶ä¸ç Windows PowerShellã
ãã3è¿æ¶ï¼å°ä¼æå¼ä¸ä¸ªå½ä»¤è¡çªå£ãç¶åï¼è¯·ç¨å¾®çå¾
ä¸ä¼ï¼ç´å°åºç° PowerShell å½ä»¤æ示符为æ¢ã
ãã4è¿æ¶ï¼ä¾¿å¯ä»¥è¾å
¥ Linux å½ä»¤äºãä¾å¦ï¼è¾å
¥ä¸ä¸ª Linux æ件æ¥çå½ä»¤ lsï¼å车ï¼ä¾¿å¯ä»¥ååºå½åç®å½ä¸çæ件åæ件夹å表ã
ãã注æäºé¡¹
ããWindows PowerShell æ¯æç»å¤§é¨å Linux å
ç½®å½ä»¤ï¼ä½æäºå½ä»¤ä¾å¤ãå
·ä½æ¥è¯´æï¼
ãã1ï¼å½ä»¤ç®åï¼æ称å½ä»¤å«åï¼
ããä¾å¦ï¼ä¸æ¯æ Linux ä¸çæ件æ¥çå½ä»¤ ll ã该å½ä»¤ä½ç¨ä¸ºä»¥è¯¦ç»ä¿¡æ¯æ¹å¼æ¥çå½åç®å½ä¸æ件ï¼å®å®è´¨æ¯ ls -l å½ä»¤çç®åã
ãã2ï¼éè¦è°ç¨ linux ç³»ç»ä¸çç¨åºæè½æ§è¡çå½ä»¤ï¼å¦ vim
ããç±äº Windows ç³»ç»ä¸å¹¶æ²¡æå
ç½® vim ç¨åºï¼æ
èä¸ vim æå
³çå½ä»¤æ æ³å¯ç¨ã
ãã3ï¼å¸®å©å½ä»¤
ããå¨ Linux ç³»ç»ä¸ï¼å¦æè¦ç¥éææ¡å½ä»¤çç¨æ³ï¼å¯ä»¥ä½¿ç¨å¸®å©å½ä»¤äºãä½å¨ Windows ä¸ï¼é»è®¤æ¯æ²¡æå®è£
Linuxä¸ç帮å©å½ä»¤çãå¦ææ³ä½¿ç¨è¯¥å½ä»¤ï¼å¯ä»¥èç½å®è£
æå¨çº¿æ¥çã
ãã模å¼åæ¢
ãã1ã ç±å¾å½¢å°å符#logoutæinit 3
ãã2ãç±å符å°å¾å½¢çé¢init 5
ãã3ãéåºconsolelogoutæexitæctrl+d
ãã4ã 注éCtrl + Alt + Backspace
ãã5ã å
³æº#poweroffæinit 0æshutdown -h nowæ halt -p
ãã6ã éå¯#rebootæinit 6æshutdown -r now
追é®ä¸è¦å¤å¶ç²è´´å¥½å§ï¼è¿ä¸ªå·²ç»çè¿äºï¼é®çæ¯å¨åªä¸ªæ件夹ä¸é¢