Peb tab tom nrhiav cov ntaub ntawv hauv Linux

Pin
Send
Share
Send

Thaum ua haujlwm hauv txhua qhov kev ua haujlwm, qee zaum yuav tsum tau siv cov cuab yeej kom pom cov ntaub ntawv tshwj xeeb. Qhov no kuj cuam tshuam rau Linux, yog li hauv qab no peb yuav xav txog txhua txoj hauv kev los tshawb cov ntaub ntawv hauv OS no. Ob qho tag nrho cov cuab yeej tswj xyuas cov ntaub ntawv thiab cov lus txib siv hauv "Chaw Nres Tsheb".

Nyeem kuj:
Hloov cov ntaub ntawv hauv Linux
Tsim thiab rho tawm cov ntaub ntawv ntawm Linux

Dav Dav Hlau

Yog tias koj xav tau tsim ntau txoj kev tshawb nrhiav kom pom cov ntaub ntawv xav tau, tom qab ntawd cov lus txib nrhiav tau yam tsis paub. Ua ntej xav txog txhua yam ntawm nws cov kev hloov pauv, koj yuav tsum mus dhau ntawm cov ntawv cim thiab cov kev xaiv. Cov syntax uas nws muaj yog li hauv qab no:

nrhiav txoj hauv kev

qhov twg txoj kev - Nov yog cov npe ntawm kab ntawv uas qhov kev tshawb pom yuav tshwm sim. Muaj peb txoj kev xaiv tseem ceeb rau txoj kev taug:

  • / - Tshawb hauv cov hauv paus thiab cov chaw nyob ze;
  • ~ - tshawb hauv phau ntawv qhia vaj tsev;
  • ./ - Tshawb hauv cov npe uas tus neeg siv tam sim no nyob.

Koj tseem tuaj yeem teev txoj hauv kev ncaj qha rau cov ntawv taw qhia hauv cov ntawv uas qhov chaw ntawd yuav tsum yog.

Xaiv ntawm nrhiav tau ntau heev, thiab nws yog ua tsaug rau lawv uas koj tuaj yeem nqa tawm yooj yim tshawb xyuas los ntawm teeb tsa qhov tsim nyog hloov tau:

  • -Ua laib - coj los tshawb fawb, coj ua lub npe ua qhov tseem ceeb xav tau;
  • -user - tshawb cov ntaub ntawv ntsig txog tus neeg siv tshwj xeeb;
  • -cov pab pawg - tshawb rau pawg tshwj xeeb ntawm cov neeg siv;
  • -txiag - qhia cov ntaub ntawv nrog hom nkag mus;
  • -size n - tshawb nrhiav raws qhov loj me ntawm qhov khoom;
  • -ibhawm + n -n - nrhiav cov ntaub ntawv uas tau hloov ntau dua (+ n) lossis tsawg dua (-n) hnub dhau los;
  • -ibpe - tshawb cov ntaub ntawv ntawm qee hom.

Muaj ntau ntau ntawm cov ntsiab lus uas xav tau. Ntawm no yog cov npe ntawm lawv:

  • b - thaiv;
  • f - dog dig;
  • p - npe hu ua yeeb nkab
  • d - phau ntawv teev npe;
  • l - kev txuas;
  • s - qhov rooj;
  • c - ua lub cim.

Tom qab kev txheeb xyuas cov ncauj lus kom ntxaws ntawm cov lus thiab cov kev xaiv ntawm cov lus txib nrhiav tau Koj tuaj yeem mus ncaj qha rau hauv piv txwv. Vim muaj ntau txoj kev xaiv rau kev siv qhov hais kom ua, cov qauv yuav tsis muab rau txhua tus hloov, tab sis tsuas yog rau qhov feem ntau siv.

Saib ntxiv: Cov Lus Cim Linux Terminal Commands

Txoj Kev 1: Tshawb tawm los ntawm lub npe (xaiv-lub npe)

Feem ntau, cov neeg siv siv qhov kev xaiv los tshawb qhov system. -Ua laib, yog li ntawd yog qhov twg peb pib. Cia peb saib ob peb qhov piv txwv.

Tshawb los ntawm kev nthuav dav

Cia hais tias koj yuav tsum nrhiav ib daim ntawv nrog txuas ntxiv ".xlsx"nyob hauv phau ntawv teev npe DropboxCov. Txhawm rau ua qhov no, siv cov lus txib nram qab no:

pom / tsev / siv / Dropbox-npe "* .xlsx" -nrau

Los ntawm nws cov lus syntax, peb tuaj yeem hais tias qhov kev tshawb nrhiav yog nqa tawm hauv cov npe Dropbox ("/ tsev / neeg siv / Dropbox"), thiab yam khoom xav tau yuav tsum muaj nrog txuas ntxiv ".xlsx"Cov. Tus neeg kos lub cim qhia tias tshawb yuav ua tiav ntawm txhua cov ntaub ntawv ntawm qhov txuas ntxiv no, tsis txhob coj mus rau lawv lub npe. "-print" taw qhia tias qhov tshawb nrhiav yuav tshwm.

Ib qho piv txwv:

Tshawb tawm los ntawm cov ntaub ntawv npe

Piv txwv li, koj xav mus nrhiav hauv phau ntawv teev npe "/ Tsev" ua ntaub ntawv thov npe "pob tsuas", tab sis nws txuas ntxiv tsis paub. Hauv qhov no, ua cov hauv qab no:

pom ~-lub npe “lumpics *” -print

Raws li koj tuaj yeem pom, cov cim cim tau siv ntawm no "~", uas txhais tau tias kev tshawb nrhiav yuav tshwm sim hauv cov npe tsev. Tom qab kev xaiv "-name" lub npe ntawm cov ntaub ntawv koj tab tom nrhiav rau ("lumpics *") Lub cim xaus rau thaum kawg txhais tau tias kev tshawb nrhiav tsuas yog ua raws npe, tsis suav nrog txuas ntxiv.

Ib qho piv txwv:

Tshawb nrhiav los ntawm thawj tsab ntawv ntawm lub npe

Yog tias koj nco qab tsuas yog thawj tus tsiaj ntawv uas lub file file pib, ces muaj qhov syntax tshwj xeeb uas yuav pab koj pom. Piv txwv li, koj xav nrhiav daim ntawv uas pib nrog tsab ntawv los ntawm g ua ntej "l", thiab koj tsis paub tias nws nyob qhov twg. Tom qab ntawd koj yuav tsum khiav cov lus txib nram qab no:

pom / -pauv "[g-l] *" -print

Kev txiav txim los ntawm "/" cim, uas los txog tam sim ntawd tom qab cov lus qhia tseem ceeb, kev tshawb yuav nqa tawm pib los ntawm cov hauv paus, uas yog, hauv tag nrho cov kab ke. Ntu tom ntej "[g-l] *" txhais tau tias lo lus tshawb nrhiav yuav pib nrog tsab ntawv tshwj xeeb. Hauv peb li, ntawm g ua ntej "l".

Los ntawm txoj kev, yog tias koj paub cov ntawv txuas ntxiv, tom qab ntawd tom qab cim "*" koj tuaj yeem hais qhia nws. Piv txwv li, koj yuav tsum nrhiav kom tau tib daim ntawv, tab sis koj paub tias nws muaj qhov txuas ntxiv ".odt"Cov. Tom qab ntawd koj tuaj yeem siv cov lus txib nram qab no:

pom / -pauv "[g-l] *. odt" -nrau

Ib qho piv txwv:

Txoj Kev 2: Tshawb los ntawm hom nkag mus (hom - xaiv)

Qee lub sij hawm nws yog qhov yuav tsum tau nrhiav qhov khoom uas nws lub npe koj tsis paub, tab sis paub dab tsi nkag mus uas nws muaj. Tom qab ntawd koj yuav tsum tau thov xaiv kev xaiv "-thiab".

Siv nws yog qhov yooj yim heev, koj tsuas yog yuav tsum qhia tseeb qhov chaw nrhiav thiab hom nkag mus. Ntawm no yog ib qho piv txwv ntawm cov lus txib no:

pom ~ -tuav 775 -pawg

Ntawd yog, kev tshawb nrhiav yog nqa tawm hauv tsev hauv tsev, thiab cov khoom xav tau yuav muaj kev nkag tau 775Cov. Koj tuaj yeem sau "-" tus cwj pwm ua ntej tus lej no, tom qab ntawd cov khoom pom yuav muaj cov khoom tso cai los ntawm xoom mus rau tus nqi teev tseg.

Txoj Kev 3: Tshawb nrhiav los ntawm cov neeg siv lossis pab pawg ((tus xaiv thiab-pab pawg xaiv)

Muaj cov neeg siv thiab cov pab pawg hauv txhua qhov kev ua haujlwm. Yog tias koj xav nrhiav qhov khoom uas yog ib qho ntawm cov pawg no, koj tuaj yeem siv cov kev xaiv "-user" lossis "-cov pab pawg", raws li.

Nrhiav rau cov ntaub ntawv los ntawm nws lub npe username

Piv txwv, koj yuav tsum nrhiav hauv phau ntawv teev npe Dropbox ntawv "Teeb", tab sis koj tsis paub nws hu li cas, tab sis koj tsuas yog paub tias nws yog tus neeg siv "neeg siv"Cov. Tom qab ntawd koj yuav tsum tau ua rau cov lus txib hauv qab no:

pom / tsev / tus neeg siv / Dropbox-tus neeg siv-kos

Nyob rau cov lus txib no koj tau teev cov ntawv tsim nyog (/ tsev / neeg siv / Dropbox), qhia tias nws yog ib qho tsim nyog yuav tau tshawb cov ntaub ntawv uas yog rau tus neeg siv (-user), thiab qhia rau tus neeg siv cov ntaub ntawv no uas yog rau (neeg siv).

Ib qho piv txwv:

Nyeem kuj:
Yuav ua li cas thiaj saib cov npe ntawm cov neeg siv ntawm Linux
Yuav ua li cas ntxiv tus neeg siv rau ib pab pawg ntawm Linux

Tshawb nrhiav cov ntawv ntawm nws pawg npe

Nrhiav cov ntaub ntawv uas zwm rau ib pawg tshwj xeeb tsuas yog yooj yim - koj tsuas yog yuav tsum tau hloov cov kev xaiv "-user" ntawm kev xaiv "-cov pab pawg" thiab qhia lub npe ntawm pab pawg no:

pom / -kev pab qhua -print

Ntawd yog, koj qhia tias koj xav mus nrhiav hauv cov kab ke ua ntaub ntawv ntsig txog cov pab pawg "qhua"Cov. Tshawb yuav tshwm sim thoob plaws hauv cov kab ke, raws li cov cim qhia "/".

Txoj Kev 4: Nrhiav rau ib daim ntawv los ntawm nws lub hom (-khawm xaiv)

Pom lub caij hauv Linux ntawm qee yam hom yog qhov yooj yim heev, koj tsuas yog yuav tsum qhia cov kev xaiv tsim nyog (-ibpe) thiab taw qhia yam. Thaum pib ntawm tsab xov xwm, txhua hom kev ceeb toom uas tuaj yeem siv rau kev tshawb fawb tau teev npe.

Piv txwv li, koj xav kom nrhiav tag nrho cov ntawv block nyob rau hauv koj cov ntawv qhia hauv tsev. Hauv qhov no, koj cov lus txib yuav zoo li no:

pom ~ -tuav b-luam

Raws li, koj tau qhia tias koj tau tshawb los ntawm hom ntaub ntawv, raws li tau qhia los ntawm txoj kev xaiv "-type", thiab tom qab ntawd tau txiav txim siab nws hom los ntawm muab cov ntawv block block cim - "b"..

Ib qho piv txwv:

Tib txoj kev, koj tuaj yeem tso tawm txhua phau ntawv teev npe hauv qhov xav tau los ntawm kev nkag mus rau lub cim hauv cov lus txib "d":

pom / tsev / tus neeg siv -type d -dej

Txoj Kev 5: Tshawb tawm ntaub ntawv los ntawm qhov loj me (-xaiv qhov kev xaiv)

Yog tias los ntawm tag nrho cov ntaub ntawv hais txog cov ntaub ntawv koj paub tsuas yog nws qhov loj me, tom qab ntawd txawm tias qhov no yuav txaus nrhiav nws. Piv txwv, yog tias koj xav pom 120 MB cov ntaub ntawv hauv cov ntawv teev npe tshwj xeeb, ua cov hauv qab no:

pom / tsev / neeg siv / Dropbox -size 120M-cim

Ib qho piv txwv:

Saib ntxiv: Yuav ua li cas thiaj pom qhov loj me ntawm daim nplaub tshev hauv Linux

Raws li koj tuaj yeem pom, cov ntaub ntawv peb xav tau tau pom. Tab sis yog tias koj tsis paub dab tsi hauv nws cov ntawv, koj tuaj yeem tshawb xyuas tag nrho cov txheej txheem los ntawm kev txheeb xyuas qhov chaw qhia lub hauv paus thaum pib ntawm cov lus txib:

pom / -size 120M -dua

Ib qho piv txwv:

Yog tias koj paub txog cov ntawv loj li ntawm, ces muaj cov lus txib tshwj xeeb rau rooj plaub no. Koj yuav tsum rau npe nyob hauv "Chaw Nres Tsheb" zoo li qub, tsuas yog ua ntej cov ntaub ntawv loj "-" (Yog tias koj xav nrhiav cov ntaub ntawv me dua qhov teev loj me) lossis "+" (yog tias qhov loj ntawm cov ntawv tshawb yuav loj dua li cov teev uas tau hais tseg). Ntawm no yog ib qho piv txwv ntawm cov lus txib no:

pom / tsev / neeg siv / Dropbox + 100M -print

Ib qho piv txwv:

Txoj Kev 6: Tshawb nrhiav cov ntawv los ntawm hnub hloov kho (-muaj sijhawm xaiv)

Muaj qee lub sijhawm thaum nws yooj yim tshaj plaws los tshawb fawb ib daim ntawv los ntawm hnub nws raug hloov pauv. Hauv Linux, kev xaiv tau siv rau qhov no. "-thov Sijhawm"Cov. Siv nws yog qhov yooj yim heev, xav txog txhua yam nrog kev ua piv txwv.

Cia peb hais hauv daim nplaub tshev "Dluab" peb yuav tsum nrhiav cov khoom uas tau tshwm sim hloov 15 hnub tas los. Nov yog yam koj xav tso npe nkag "Chaw Nres Tsheb":

nrhiav / tsev / neeg siv / Duab -tsij-sijhawm-15 -nqaij

Ib qho piv txwv:

Raws li koj tuaj yeem pom, qhov kev xaiv no qhia tsis tau tsuas yog cov ntaub ntawv uas tau hloov pauv hauv lub sijhawm tau teev tseg, tabsis tseem muaj cov folders. Nws ua haujlwm nyob rau hauv rov qab - koj tuaj yeem nrhiav cov khoom uas tau hloov tom qab lub sijhawm tau teev tseg. Txhawm rau ua qhov no, nkag mus rau hauv kev nkag mus hauv pem hauv ntej ntawm tus nqi digital "+":

pom / tsev / tus neeg siv / Duab -muaj +10 -nawb

GUI

Lub graphical interface ua rau lub neej yooj yim dua rau cov pib tshiab uas nyuam qhuav tau nruab Linux faib rau. Qhov kev tshawb nrhiav no zoo ib yam li qhov tau siv rau hauv Windows, txawm tias nws yuav tsis muab txhua qhov zoo uas nws muaj "Chaw Nres Tsheb"Cov. Tab sis thawj qhov ua ntej. Yog li, cia saib seb yuav tshawb nrhiav cov ntawv li cas hauv Linux siv cov graphical interface ntawm lub system.

Txoj Kev 1: Tshawb tawm los ntawm cov ntawv qhia kab ke

Tam sim no peb yuav xav txog txoj hauv kev los tshawb cov ntaub ntawv dhau cov Linux system menu. Cov yeeb yam yuav ua nyob rau hauv kev faib tawm Ubuntu 16.04 LTS, txawm li cas los xij, kev qhia muaj ntau rau txhua tus.

Saib ntxiv mus: Yuav ua li cas thiaj nrhiav pom Linux cov khoos phis tawm ntawm Linux

Cia hais tias koj yuav tsum nrhiav cov ntaub ntawv hauv qhov system hauv qab lub npe Nrhiav kuv, kuj tseem muaj ob qho ntawm cov ntaub ntawv hauv lub system: ib qho hauv hom ".txt"thiab ob ".odt"Cov. Yuav kom pom lawv, koj yuav tsum nias thawj zaug tshuab raj icon (1), thiab hauv qhov tshwj xeeb lub thawv nkag (2) sau qhia cov lus nug tshawb nrhiav Nrhiav kuv.

Tshawb tawm tshwm sim qhov twg cov xav tau cov ntaub ntawv tawm.

Tab sis yog tias yuav muaj ntau cov ntaub ntawv zoo li hauv cov kab ke thiab tag nrho lawv tau txuas ntxiv, tom qab kev tshawb nrhiav yuav dhau los ua cov teeb meem ntau ntxiv. Txhawm rau tshem tawm cov ntaub ntawv tsis tsim nyog, piv txwv, cov haujlwm, hauv qhov txiaj ntsig, nws yog qhov zoo tshaj plaws los siv lim.

Nws nyob ntawm sab xis ntawm cov ntawv qhia zaub mov. Koj tuaj yeem lim los ntawm ob qho qauv: "Pawg" thiab "Qhov chaw"Cov. Nthuav ob daim ntawv no los ntawm kev nyem ntawm lub cim ntawm ib sab thiab tshem tawm cov khoom xaiv los ntawm cov khoom tsis tsim nyog hauv cov ntawv qhia zaub mov. Hauv qhov no, nws yuav zoo dua tawm mus tsuas yog nrhiav haujlwm los ntawm Ntaub ntawv thiab ntawv tais ceev tseg, Txij li thaum peb tab tom nrhiav kom tau raws nraim cov ntaub ntawv.

Koj tuaj yeem pom tam sim no qhov tsis zoo ntawm hom no - koj tsis tuaj yeem kho lub lim rau hauv kev nthuav dav, ib yam li hauv "Chaw Nres Tsheb"Cov. Yog li, yog tias koj tab tom nrhiav ib daim ntawv sau nrog qee lub npe, koj tuaj yeem pom cov duab, cov ntawv tais ceev tseg, cov chaw khaws ntaub ntawv, thiab lwm yam hauv cov lus tshawb pom. "nrhiav".

Txoj Kev 2: Tshawb tawm los ntawm tus tuav ntaub ntawv

Qhov thib ob hom muaj qhov txiaj ntsig tseem ceeb. Siv cov cuab yeej saib xyuas cov ntaub ntawv, koj tuaj yeem tshawb hauv cov npe teev.

Ua cov haujlwm no yooj yim. Koj xav tau nyob hauv tus tuav ntaub ntawv, hauv peb kis Nautilus, kom nkag mus rau lub nplaub tshev uas cov ntawv uas koj tab tom nrhiav rau yog nyob thiab nyem "Tshawb nrhiav"nyob rau hauv kaum sab xis saum toj ntawm lub qhov rais.

Hauv lub thawv nkag uas tshwm sim, koj yuav tsum sau lub npe kwv yees npe lub npe. Tsis tas li ntawd tsis txhob hnov ​​qab tias qhov kev tshawb fawb tuaj yeem nqa tawm tsis yog tag nrho cov ntaub ntawv npe, tab sis tsuas yog los ntawm nws feem, raws li qhia hauv qhov piv txwv hauv qab no.

Raws li nyob rau hauv txoj kev dhau los, hauv no raws nraim tib txoj kev koj tuaj yeem siv lim. Txhawm rau qhib nws, nyem rau ntawm lub pob nrog daim paib "+"nyob rau sab xis ntawm cov lus nug tshawb fawb teb. Ib lub submenu yuav qhib rau qhov uas koj tuaj yeem xaiv cov hom ntaub ntawv los ntawm daim ntawv nco-down.

Xaus

Los ntawm cov txheej txheem dhau los, peb tuaj yeem xaus tias rau kev tshawb nrawm ntawm lub system, txoj kev thib ob, raws li kev siv lub graphical interface, zoo meej. Yog tias koj xav tau teeb tsa ntau qhov kev tshawb fawb, tom qab ntawd cov lus txib yuav yog yam tsis tseem ceeb nrhiav tau hauv "Chaw Nres Tsheb".

Pin
Send
Share
Send