Qee lub sij hawm tus neeg siv yuav tsum tau sau cov npe ntawm cov txheej txheem khiav hauv Linux operating system thiab nrhiav tau cov ncauj lus kom ntxaws tshaj plaws ntawm txhua tus ntawm lawv lossis txog qee qhov tshwj xeeb. Hauv OS, muaj cov cuab yeej built-in uas cia koj ua tiav txoj hauj lwm yam tsis muaj kev mob siab. Txhua yam cuab yeej xws li taw qhia nyob rau hauv nws cov neeg siv thiab qhib tau cov kev sib txawv rau nws. Nyob rau hauv tsab xov xwm no peb yuav mus rau ob qho kev xaiv uas yuav pab tau rau qee lub sijhawm, thiab koj tsuas yuav tau xaiv ib qho tsim nyog.
Saib cov npe ntawm cov txheej txheem hauv Linux
Nyob rau hauv yuav luag txhua distributions raws li lub Linux ntsiav, daim ntawv teev cov txheej txheem qhib thiab saib siv tib yam commands thiab cov cuab yeej. Yog li, peb yuav tsis tsom rau ib tug neeg ua, tab sis siv qhov tseeb version of Ubuntu ua piv txwv. Koj tsuas yog yuav tsum tau ua raws li cov lus qhia uas tau muab rau kom tag nrho cov txheej txheem ua tau zoo thiab tsis muaj teeb meem.
Txoj kev 1: Terminal
Undoubtedly, classic console operating systems ntawm Linux plays lub luag hauj lwm tseem ceeb heev nyob rau hauv kev sis raug zoo nrog cov kev pab, cov ntaub ntawv thiab lwm yam khoom. Tus neeg siv ua txhua yam yooj yim los ntawm daim ntawv thov no. Yog li ntawd, los ntawm qhov pib thaum kawg, kuv xav tham txog cov lus tso tawm los ntawm "Terminal". Tabsis peb tsuas pom ib pab xwb, tabsis, peb yuav xav txog cov lus tseem ceeb tshaj plaws thiab tseem ceeb.
- Txhawm rau pib, pib lub console los ntawm txhaj rau cov duab icon hauv cov ntawv qhia zaub mov los yog siv cov lus tseem ceeb Ctrl + Alt + T.
- Sau npe pab neeg
ps
, cia li tau ntseeg ntawm nws txoj haujlwm ua haujlwm thiab kom nkag siab nrog hom ntawm cov ntaub ntawv qhia tsis muaj kev sib cav. - Raws li koj tau pom, cov npe ntawm cov txheej txheem ua rau me me xwb, feem ntau nws tsis yog ntau tshaj peb cov qhab nia, yog li koj yuav tsum siv sij hawm mus rau cov nqe lus uas twb tau hais lawm.
- Mus tso saib tag nrho cov txheej txheem ib zaug, koj yuav tsum ntxiv -A. Hauv qhov no, pab neeg no zoo li
ps-a
(A yuav tsum nyob rau hauv rooj plaub loj). Tom qab nias tus yuam sij Sau koj yuav tam sim ntawd pom cov ntsiab lus ntawm cov kab. - Cov lus txib yav tas los tsis pom cov thawj coj pawg (cov txheej txheem tseem ceeb ntawm lub nras). Yog tias koj xav tau cov ntaub ntawv no, koj yuav tsum rau npe ntawm no.
ps -d
. - Koj tuaj yeem tau txais cov ntaub ntawv tseem ceeb ntxiv los ntawm kev sau yooj yooj yim
-f
. - Tom qab ntawd tag nrho cov npe ntawm cov txheej txheem nrog cov lus qhia ntxiv yuav raug hu los ntawm
ps -Af
. Nyob rau hauv lub rooj koj yuav pom UID - lub npe ntawm tus neeg siv uas pib ua haujlwm PID - cim naj npawb, PPID - tus naj npawb ntawm niam txiv txoj kev, C - qhov nyiaj ntawm cov CPU hauv feem pua thaum cov txheej txheem ua haujlwm, STIME - kev ua kom lub sijhawm, Tty - tus naj npawb ntawm lub console qhov twg lub community launch, SIJ HAWM - sijhawm ua haujlwm Cmd - pawg neeg uas tau pib ua haujlwm. - Txhua tus txheej txheem muaj nws tus kheej PID (Proccess Identifier). Yog tias koj xav pom ib qho ntsiab lus ntawm ib yam khoom tshwj xeeb, sau cia
ps -fp PID
qhov twg PID - txheej txheem tus txheej txheem. - Nyias, Kuv xav kov thiab cais. Piv txwv, hais kom ua
ps -FA - khawm pcpu
tso cai rau koj muab tag nrho cov kab hauv kev txiav txim siab ntawm cov khoom ntawm CPU, thiabps -fe - khawm rss
- nyob rau ntawm tus nqi ntawm RAM consumed.
Saum toj no, peb tau tham txog cov lus tseem ceeb ntawm pawg neeg.ps
Txawm li cas los, tseem muaj lwm yam tsis muaj, piv txwv li:
-H
- tso saib cov ntoo txheej txheem;-V
- cov zis tawm ntawm cov khoom;-N
- xaiv tag nrho cov txheej txheem tsuas tshwj cov teev tseg;-C
- Tsuas pom cov lus txib xwb.
Xav txog txoj kev saib cov txheej txheem los ntawm tus neeg tsa suab hauv lub tsev, peb tau xaiv qhov kev txibps
thiab tsissaum toj
vim hais tias qhov thib ob tsuas yog los ntawm lub qhov rais loj thiab cov ntaub ntawv uas tsis yog-fitting tsuas yog ignored, thaum uas seem uas tsis muaj kev txwv.
Txoj kev 2: Kev Saib Xyuas Qhov System
Ntawm chav kawm, txoj kev saib cov ntaub ntawv tsim nyog los ntawm console nyuaj rau qee cov neeg siv, tab sis nws tso cai rau koj kom koj paub cov lus qhia nrog txhua yam tseem ceeb thiab siv cov lim uas tsim nyog. Yog tias koj tsuas xav pom ib daim ntawv teev cov khoom siv hluav taws xob, daim ntawv sau npe, thiab kev ua haujlwm nrog lawv, cov txheej txheem kho kom zoo yuav nplua koj. "Saib Xyuas".
Koj tuaj yeem paub tias yuav ua li cas tso daim ntawv thov no hauv peb lwm tsab xov xwm los ntawm nias ntawm qhov txuas mus ntxiv no, thiab peb yuav ua tiav txoj haujlwm.
Nyeem ntxiv: Yuav ua li cas khiav System Saib hauv Linux
- Khiav mus "Saib Xyuas" txhua txoj hauv kev yooj yim, piv txwv li, los ntawm daim ntawv qhia zaub mov.
- Cov npe ntawm cov txheej txheem yuav tshwm sim tam sim ntawd. Koj yuav paub ntau npaum li cas nco thiab CPU cov khoom lawv haus, saib tus neeg siv uas pib qhov kev pab, thiab tseem pom lwm yam ntaub ntawv.
- Txoj cai-nias rau ntawm kab ntawm kev txaus siab mus rau nws cov khoom.
- Nws qhia txog txhua tus tib yam ntaub ntawv uas muaj los txais tau los ntawm "Terminal".
- Siv qhov kev tshawb fawb lossis txoj haujlwm ua kom paub qhov kev xav tau.
- Them rau lub vaj huam sib luag saum toj no - nws tso cai rau koj los xaiv qhov rooj los ntawm qhov tseem ceeb tsim nyog.
Qhov tiav, tsum los yog tshem tawm cov txheej txheem kuj tshwm sim los ntawm daim duab no los ntawm txhaj rau cov nyees khawm tsim nyog. Cov neeg siv xov xwm tshiab yuav pom txoj kev daws teeb meem no yooj yim dua ua haujlwm "Terminal"Txawm li cas los xij, kev qhuab qhia cov console yuav cia koj tau txais cov ntaub ntawv tseem ceeb tsis tau ceev dua, tab sis kuj muaj cov ntsiab lus ntxiv.