Command Prompt: Nws Yog Dab Tsi thiab Yuav Siv Li Cas

Cov txheej txheem:

Command Prompt: Nws Yog Dab Tsi thiab Yuav Siv Li Cas
Command Prompt: Nws Yog Dab Tsi thiab Yuav Siv Li Cas
Anonim

Yuav Paub

  • Command Prompt tuaj yeem pom hauv Start ntawv qhia lossis Apps npo.
  • Xwb, siv cov lus txib khiav cmd, lossis qhib los ntawm nws qhov chaw qub: C:\Windows\system32\cmd.exe
  • Kev siv, nkag mus rau cov lus txib kom raug.

Command Prompt yog ib daim ntawv thov tus neeg txhais lus hais muaj nyob rau hauv feem ntau Windows operating systems. Nws yog siv los ua cov lus txib nkag. Feem ntau ntawm cov lus txib automate cov hauj lwm ntawm cov ntawv sau thiab cov ntaub ntawv batch, ua cov haujlwm tswj hwm qib siab, thiab daws teeb meem lossis daws qee yam teeb meem ntawm Windows.

Command Prompt yog lub npe hu ua Windows Command Processor, tab sis qee zaum nws kuj tseem hu ua lub plhaub hais kom ua lossis cmd prompt, lossis txawm los ntawm nws cov npe, cmd.exe.

Image
Image

Command Prompt qee zaum tsis raug hu ua "DOS prompt" lossis raws li MS-DOS. Command Prompt yog Windows program uas ua raws li ntau yam ntawm cov kab hais kom ua muaj peev xwm muaj nyob hauv MS-DOS, tab sis nws tsis yog MS-DOS.

Cmd tseem yog cov ntawv luv rau ntau lwm cov ntsiab lus siv thev naus laus zis xws li kev xa xov hauv nruab nrab, cov tshuaj saib xim, thiab kev tswj hwm cov ntaub ntawv, tab sis tsis muaj leej twg muaj dab tsi ua nrog Command Prompt.

Yuav ua li cas thiaj nkag mus rau Command Prompt

Muaj ntau txoj hauv kev los qhib Command Prompt, tab sis txoj kev "ib txwm" yog los ntawm Command Prompt shortcut nyob hauv Start menu lossis ntawm Apps screen, nyob ntawm koj. version ntawm Windows.

Image
Image

Txoj kev luv yog sai dua rau cov neeg feem coob, tab sis lwm txoj hauv kev nkag mus rau Command Prompt yog ntawm cmd Khiav cov lus txib. Koj tuaj yeem qhib cmd.exe los ntawm nws qhov chaw qub:


C:\Windows\system32\cmd.exe

Tau lwm txoj hauv kev rau qhib Command Prompt hauv qee qhov versions ntawm Windows yog los ntawm Power User Menu. Txawm li cas los xij, tej zaum koj yuav pom PowerShell nyob ntawd tsis yog Command Prompt nyob ntawm seb koj lub computer teeb tsa li cas. Koj tuaj yeem hloov ntawm Command Prompt thiab PowerShell los ntawm Win + X menu.

Ntau cov lus txib tsuas yog ua tau yog tias koj tab tom khiav Command Prompt ua tus thawj coj.

Yuav siv cov lus txib li cas

Siv Command Prompt, koj nkag mus rau Command Prompt hais kom siv tau nrog rau txhua qhov kev xaiv tsis tau. Command Prompt ces ua tiav cov lus txib raws li nkag mus thiab ua haujlwm lossis ua haujlwm nws tau tsim los ua hauv Windows.

Piv txwv li, ua raws li cov lus txib hauv qab no hauv koj daim nplaub tshev Downloads yuav tshem tawm tag nrho MP3s ntawm lub nplaub tshev:


del.mp3

Commands yuav tsum nkag mus rau hauv Command Prompt raws nraim. Cov syntax tsis ncaj ncees lawm lossis kev sau tsis raug tuaj yeem ua rau cov lus txib ua tsis tiav lossis phem dua; nws tuaj yeem ua tiav qhov kev hais kom tsis raug lossis kev hais kom raug hauv txoj kev tsis ncaj ncees. Ib qib kev nplij siab nrog kev nyeem cov lus txib tau pom zoo.

Piv txwv li, ua tiav dir cov lus txib yuav qhia cov npe ntawm cov ntaub ntawv thiab cov folders uas muaj nyob ntawm ib qho chaw tshwj xeeb hauv lub computer, tab sis nws tsis ua dab tsi. Txawm li cas los xij, hloov ob peb tsab ntawv xwb thiab nws hloov mus rau delhais kom ua, uas yog qhov koj rho tawm cov ntaub ntawv los ntawm Command Prompt!

Syntax tseem ceeb heev uas nrog qee cov lus txib, tshwj xeeb tshaj yog cov lus txib tshem tawm, ntxiv txawm tias ib qho chaw tuaj yeem txhais tau tias tshem tawm cov ntaub ntawv sib txawv kiag li.

Ntawm no yog ib qho piv txwv uas qhov chaw nyob hauv qhov kev hais kom ua txhaum kab rau hauv ob ntu, qhov tseem ceeb tsim ob qho lus txib uas cov ntaub ntawv hauv lub hauv paus nplaub tshev (cov ntaub ntawv) raug tshem tawm tsis yog cov ntaub ntawv hauv subfolder (suab paj nruag):


del C:\files\music

Txoj hauv kev kom ua raws li cov lus txib kom tshem tawm cov ntaub ntawv ntawm lub suab paj nruag hloov pauv yog tshem tawm qhov chaw kom tag nrho cov lus txib tau sib dhos ua ke kom raug.

Tsis txhob cia qhov no ua rau koj ntshai ntawm kev siv Command Prompt cov lus txib, tab sis yeej cia nws ua rau koj ceev faj.

Command Prompt Commands

Ntau cov lus txib muaj nyob hauv Command Prompt, tab sis cov lus txib muaj nyob hauv Microsoft Operating Systems.

Command Prompts for Windows Operating Systems:

  • Windows 8 Commands
  • Windows 7 Commands
  • Windows XP Commands
  • All Windows Command Prompt Commands

Muaj ntau ntau thiab ntau cov lus txib koj tuaj yeem siv hauv Command Prompt, tab sis tsis yog txhua tus siv ntau npaum li lwm tus.

Ntawm no yog qee qhov kev siv ntau dua Command Prompt cov lus txib uas tau siv ntau yam xwm txheej: chkdsk, luam, ftp, del, hom, ping, attrib, net, dir, pab, thiab kaw.

Command Prompt Availability

Command Prompt muaj nyob rau txhua qhov Windows NT-based operating system uas suav nrog Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, thiab Windows 2000, nrog rau Windows Server 2012, 2008, thiab 2003.

Windows PowerShell, tus neeg txhais lus hais kom siab tshaj plaws muaj nyob rau hauv Windows tsis ntev los no, ntxiv cov lus txib ua kom muaj peev xwm muaj nyob hauv Command Prompt. Windows PowerShell thaum kawg tuaj yeem hloov qhov Command Prompt hauv lub neej tom ntej ntawm Windows.

Windows Terminal yog lwm txoj hauv kev uas Microsoft tau pom zoo siv Command Prompt thiab PowerShell hauv tib lub cuab yeej.

FAQ

    Kuv yuav siv cov lus txib ntawm macOS li cas?

    Lub Terminal app zoo ib yam li Command Prompt hauv Windows. Txhawm rau qhib, mus rau Applications > Utilities > Terminal.

    Kuv yuav hloov cov npe hauv Command Prompt li cas?

    Yuav hloov cov npe, nkag mus cd ua raws li qhov chaw. Tom qab ntawd luag lub nplaub tshev los yog ntaus lub npe ntawm cov ntawv tais ceev tseg rau hauv qhov hais kom ua.

Pom zoo: