Tshem cov phau ntawv qhia ntawm Linux

Pin
Send
Share
Send

Linux kernel operating systems feem ntau khaws cia ntau ntawm khoob thiab tsis siv khoob. Qee tus ntawm lawv coj mus rau qhov ncaj ncees qhov chaw ntawm qhov chaw tsav, thiab feem ntau kuj ua qhov tsis tsim nyog. Hauv qhov no, lawv txoj kev tshem tawm yuav yog qhov kev xaiv zoo. Muaj ntau txoj hauv kev los ntxuav, txhua txoj kev no muaj siv rau qee lub sijhawm. Cia peb saib txhua txoj kev muaj nyob rau hauv ntau dua, thiab koj yuav xaiv qhov haum tshaj plaws raws li koj cov kev xav tau.

Rho tawm cov npe hauv Linux

Hauv cov moj khaum ntawm tsab xov xwm no, peb yuav tham txog cov hlauv taws xob thiab cov cuab yeej ntxiv uas tau tsim los ntawm kev nkag los ntawm cov lus txib. Txawm li cas los xij, tsis txhob hnov ​​qab tias feem ntau hauv kev faib cov duab kab xev yog siv. Raws li, kom rho tawm cov ntawv qhia chaw, koj tsuas yog yuav tsum tau mus rau nws los ntawm cov ntaub ntawv tus thawj tswj, sab xis nyem rau ntawm lub cim thiab xaiv Rho tawmCov. Tom qab ntawd, tsis txhob hnov ​​qab txhuam lub pob tawb. Txawm li cas los xij, qhov kev xaiv no yuav tsis siv rau txhua tus neeg siv, yog li peb xav kom koj nyeem cov phau ntawv hauv qab no.

Ua ntej pib xav txog txoj kev, nws yog ib qho tseem ceeb kom nco ntsoov tias thaum koj nkag mus rau ib lo lus txib, feem ntau koj yuav qhia nws tus kheej qhia lub npe ntawm cov ntawv tais ceev tseg uas koj xav rho tawm. Thaum koj tsis nyob hauv nws qhov chaw, koj yuav tsum qhia kom meej tag nrho txoj kev. Yog tias muaj qhov zoo li no, peb xav kom koj pom cov niam txiv phau ntawv qhia ntawm cov khoom thiab mus rau nws los ntawm cov nplig. Qhov kev txiav txim no yuav siv sijhawm li ob peb feeb:

  1. Qhib cov ntaub ntawv tus thawj tswj thiab mus rau lub chaw khaws nplaub tshev.
  2. Txoj nyem rau nws thiab xaiv "Khoom".
  3. Hauv seem "Pib" Pom txoj kev tag nrho thiab nco nws.
  4. Tua tawm lub console los ntawm cov ntawv qhia zaub mov lossis siv cov txheej txheem hotkey Ctrl + kev + T.
  5. Siv cdyuav mus ua haujlwm rau qhov keeb kwm. Tom qab ntawv tawm tswv yim yuav siv daim ntawvcd / tsev / neeg siv / nplaub tshevthiab qhib kom ua haujlwm tom qab nias tus yuam sij Sau. Tus Neeg Siv nyob rau hauv cov ntaub ntawv no, lub username, thiab ntawv tais ceev tseg - lub npe niam txiv cov ntawv tais ceev tseg.

Yog tias koj tsis muaj lub peev xwm los txiav txim qhov chaw, thaum rho tawm koj yuav tsum nkag mus rau tag nrho txoj kev ntawm koj tus kheej, yog li koj yuav tsum paub nws.

Txoj Kev 1: Txuj “Chaw Nres Sij Hawm” Cov Lus Qhia

Lub plhaub yuam ntawm txhua qhov Linux xa tawm muaj cov teeb tsa ntawm cov khoom siv yooj yim thiab cov cuab yeej uas tso cai rau koj ua ntau yam kev ua nrog cov chaw teeb tsa thiab cov ntaub ntawv, suav nrog kev txiav cov khoom. Muaj ob peb qhov peev xwm thiab txhua qhov yuav pab tau zoo tshaj plaws hauv ib qho xwm txheej.

Pab neeg Rmdir

Ua ntej tshaj plaws, Kuv xav xav kov rau rmdir. Nws yog npaj los ntxuav qhov system tsuas yog los ntawm cov ntawv qhia khoob. Txiav tawm lawv mus tas li, thiab qhov zoo ntawm qhov cuab yeej no yog qhov yooj yim ntawm nws cov lus thiab qhov tsis muaj qhov yuam kev. Nws txaus kom mus rau npe hauv cov consolermdir ntawv tais ceev tsegqhov twg ntawv tais ceev tseg - Lub npe ntawm daim nplaub tshev hauv qhov chaw tam sim no. Qhib lub cuab tam los ntawm nias tus yuam sij Sau.

Tsis muaj dab tsi thaiv koj ntawm kev taw qhia tag nrho txoj hauv kev yog tias koj tsis tuaj yeem mus rau qhov chaw xav tau lossis yog tias koj tsis xav tau. Tom qab ntawd txoj kab ntawv yuav siv, piv txwv li daim ntawv hauv qab no:rmdir / home / user / sis / nplaub tshev1qhov twg neeg siv - Lub npe username ntawv tais ceev tseg yog niam txiv kev qhia npe, thiab nplaub tshev1 - sis rho tawm. Thov nco ntsoov tias txoj kab sib chaws yuav tsum tau muab tso ua ntej hauv tsev, thiab nws yuav tsum tau qhaj ntawv thaum kawg ntawm txoj kev.

Rm pab neeg

Cov cuab yeej yav dhau los yog ib qho ntawm cov khoom siv ntawm rm hluav taws xob. Thaum xub thawj, nws yog tsim los rho tawm cov ntaub ntawv, tab sis yog tias koj muab nws qhov kev sib cav tsim nyog, nws tseem yuav rho tawm cov nplaub tshev. Qhov kev xaiv no twb tau haum rau cov tsis muaj khoob chaw nyob, qhov no koj yuav tsum nkag mus rau hauv lub consolerm -R ntawv tais ceev tseg(los sis daim ntawv qhia tag nrho txoj kev rau npe). Nco ntsoov cov lus sib cav -R - nws pib recursive deletion, uas yog, nws txhawj txog tag nrho cov ntsiab lus ntawm cov ntawv tais ceev tseg thiab nws tus kheej. Cov lus nkag ntawm rooj plaub-yuav tsum yog vim tias vim tias -r - yog qhov kev xaiv sib txawv kiag li.

Yog tias koj xav muab cov npe ntawm txhua cov ntaub ntawv tshem tawm thiab cov nplaub tshev thaum siv rm, tom qab ntawd koj yuav tsum kho me ntsis kab. Ntaus hauv "Chaw Nres Tsheb"rm -Rfv ntawv tais ceev tseg, thiab tom qab ntawd qhib kev txiav txim.

Tom qab qhov kev tshem tawm tiav, cov ntaub ntawv hais txog txhua phau ntawv sau npe thiab cov khoom ntiag tug yav tas los nyob ntawm qhov chaw sau tseg yuav pom.

Nrhiav tau hais kom ua

Tam sim no muaj cov khoom siv rau ntawm peb lub xaib nrog piv txwv ntawm kev siv nrhiav hauv kev ua haujlwm tsim nyob rau ntawm pob Linux. Tau kawg, muaj nthuav tawm tsuas yog cov lus qhia yooj yim thiab siv tau ntau yam. Koj tuaj yeem paub koj tus kheej nrog nws los ntawm txhaj rau qhov txuas hauv qab no, thiab tam sim no peb qhia kom paub seb cov cuab yeej no ua haujlwm li cas thaum nws tsim nyog rho tawm cov ntawv sau npe.

Ntxiv: Linux nrhiav cov qauv hais kom ua

  1. Raws li koj paub nrhiav tau pabcuam rau tshawb rau cov khoom hauv lub system. Los ntawm kev siv cov kev xaiv ntxiv, koj tuaj yeem nrhiav cov ntawv sau npe nrog lub npe tshwj xeeb thiab rho tawm lawv tam sim ntawd. Ua li no, hauv console, nkagnrhiav tau. -type d -name "nplaub tshev" -exec rm -rf {} ;, qhov twg nplaub tshev- lub npe ntawm cov npe. Nco ntsoov sau ob kab ntawv cim.
  2. Ntawm kab ib kab, cov ntaub ntawv qee zaum qhia tias tsis muaj cov ntawv lossis phau ntawv teev npe, tab sis qhov no tsis txhais tau tias nws tsis pom. Xwb nrhiav tau Nws ua haujlwm dua tom qab tshem cov ntawv qhia npe tawm ntawm lub kaw lus.
  3. pom ~ / -empty -type d -deletetso cai rau koj rho tawm txhua qhov khoob khoob hauv qhov system. Qee qhov ntawm lawv tsuas yog muaj rau tus superuser, yog li ua ntej nrhiav tau yuav tsum ntxivsudo.
  4. Cov ntaub ntawv ntawm txhua cov khoom pom thiab qhov ua tiav ntawm kev khiav hauj lwm yuav tshwm sim ntawm lub screen.
  5. Koj tseem tuaj yeem hais kom meej cov npe teev npe tshwj xeeb uas qhov cuab yeej yuav tshawb thiab ntxuav. Tom qab ntawd kab yuav zoo li, piv txwv li, zoo li no:pom / tsev / siv / Folder / -empty -type d -delete.

Qhov no ua tiav kev sib txuam nrog cov qauv siv hauv console hauv Linux. Raws li koj tuaj yeem pom, muaj coob leej ntawm lawv thiab txhua tus muaj feem xyuam hauv qee lub sijhawm. Yog tias koj xav ua kom paub txog lwm pawg neeg nyiam, nyeem peb cov khoom siv cais ntawm qhov txuas hauv qab no.

Saib ntxiv: Cov Lus Qhia Uas Siv Ntau Dhau Hauv Linux Terminal

Txoj Kev 2: so chaw tso dej

Yog tias cov cuab yeej dhau los tau tsim rau hauv lub plhaub qhov hais kom ua, tom qab ntawd cov nqi hluav taws xob so yuav xav tau los nruab lawv lub chaw khaws ntaub ntawv ntawm lawv tus kheej. Nws qhov kom zoo dua yog tias nws tso cai rau koj tshem tawm cov ntawv qhia mus tas li yam tsis muaj qhov rov qab kho nws los ntawm cov software tshwj xeeb.

  1. Qhib "Chaw Nres Tsheb" thiab sau muajsudo Apt nruab so.
  2. Ntaus tus password los tshawb kom paub tseeb tias koj tus lej nyiaj.
  3. Tos rau qhov ua tiav ntawm kev ntxiv cov pob tshiab rau cov ntawv qiv.
  4. Nws tshua tsuas yog mus rau qhov chaw xav tau lossis sau npe ib qho lus txib nrog txoj kev tag nrho rau daim nplaub tshev. Nws zoo li qhov no:so -rfi / tsev / neeg siv / nplaub tshevlossis xwbso -rfi ntawv tais ceev tsegraws li kev tua ua ntejcd + txoj.

Yog nrog ua hauj lwm hauv lub cuab yeej so yuav tsum tau ntsej muag thawj zaug sau, sau hauv lub consoleso-pabkom tau txais cov ntaub ntawv ntawm kev siv cov nqi hluav taws xob no los ntawm kev tsim tawm. Cov lus piav qhia ntawm txhua qhov kev sib cav thiab xaiv yuav tshwm rau ntawd.

Tam sim no koj tau paub nrog cov davhlau ya nyob hauv cov lus txib uas tso cai rau koj kom tshem tawm cov ntawv qhia khoob lossis cov chaw sau npe uas tsis nyob hauv OS tsim ntawm Linux. Raws li koj tuaj yeem pom, txhua lub cuab tam nthuav tawm ua haujlwm sib txawv, thiab yog li ntawd yuav pom zoo nyob rau ntau lub sijhawm. Ua ntej pib cov cuab yeej, peb xav kom koj xyuas qhov tseeb ntawm cov kab kev thiab cov nplaub tshev npe kom tsis muaj qhov yuam kev lossis tsis raug tshem tawm.

Pin
Send
Share
Send