Tsim lossis rho tawm cov ntaub ntawv hauv Linux - dab tsi yuav yooj yim dua? Txawm li cas los xij, nyob rau qee lub sijhawm, koj txoj kev ntseeg thiab qhov tseeb yuav tsis ua haujlwm. Hauv qhov no, nws yuav tsim nyog los nrhiav kev daws qhov teeb meem, tab sis yog tias tsis muaj sij hawm rau qhov no, koj siv tau lwm txoj kev los tsim lossis rho tawm cov ntaub ntawv hauv Linux. Hauv tsab xov xwm no, cov neeg nyiam tshaj plaws ntawm lawv yuav tsum tau soj ntsuam.
Txoj kev 1: Terminal
Ua hauj lwm nrog cov ntaub ntawv nyob hauv "Terminal" yog txawv ntawm kev ua hauj lwm hauv tus thawj coj ua ntaub ntawv. Tsawg kawg, tsis muaj qhov muag pom hauv nws - koj yuav nkag mus thiab tau txais tag nrho cov ntaub ntawv nyob rau hauv lub qhov rais uas zoo nkaus li cov kab kev cai ntawm Windows. Txawm li cas los xij, nws yog los ntawm lub caij no ntawm lub cev uas nws yuav ua tau los mus taug qab txhua yam uas tsis tshwm sim uas tshwm sim thaum lub sijhawm ua tiav ntawm kev lag luam.
Npaj cov haujlwm
Siv lub "Terminal" los tsim lossis rho tawm cov ntaub ntawv hauv lub system, koj yuav tsum xub qhia rau hauv nws cov directory uas tag nrho cov kev ua haujlwm tom ntej yuav tau ua tiav. Txwv tsis pub, txhua cov ntaub ntawv tsim muaj nyob hauv cov hauv paus hauv paus ("/").
Koj tuaj yeem hais qhia cov npe hauv "Terminal" hauv ob txoj hauv kev: siv tus neeg tswj xyuas cov ntaub ntawv thiab siv qhov kev hais kom ua cd. Peb tsom xam txhua yam.
Cov thawj tswj ntaub ntawv
Yog li cia wb hais tias koj xav tsim los, hloov dua siab tshiab, rho tawm cov ntaub ntawv tawm ntawm ib phau ntawv "Cov ntaub ntawv"dab tsi yog raws txoj kev:
/ tsev / UserName / Cov ntaub ntawv
Qhib cov npe hauv lub "Terminal", koj yuav tsum tau qhib rau hauv tus thawj tswj fwm, thiab tom qab ntawd, siv txoj cai-nias, xaiv qhov khoom "Qhib hauv davhlau ya nyob twg".
Raws li cov txiaj ntsim tau, "Terminal" yuav qhib, uas cov npe xaiv yuav raug qhia.
Cd hais kom ua
Yog tias koj tsis xav siv txoj kev dhau los lossis tsis muaj kev nkag tau mus rau tus neeg saib xyuas cov ntaub ntawv, koj tuaj yeem hais qhia cov npe uas tsis tas tawm hauv Terminal. Ua li no, siv qhov kev hais kom ua cd. Txhua yam koj yuav tsum tau ua yog sau cov lus txib, tom qab ntawd qhia meej txog txoj kev mus rau qhov directory. Wb txheeb nws tawm los ntawm tus piv txwv ntawm ib phau ntawv. "Cov ntaub ntawv". Sau cov lus txib:
cd / tsev / UserName / Cov ntaub ntawv
Ntawm no yog ib qho piv txwv ntawm lub lag luam raug ua tiav:
Raws li koj tau pom, koj yuav tsum tau xub nkag mus directory kab (1), thiab tom qab koj nias qhov tseem ceeb Sau nyob rau hauv "Terminal" yuav tsum tau tso tawm kom pom xaiv cov npe (2).
Tom qab koj tau kawm seb yuav xaiv cov directory uas ua hauj lwm nrog cov ntaub ntawv yuav ua li cas, koj tuaj yeem mus ncaj nraim mus rau tus txheej txheem tsim thiab tshem cov ntaub ntawv.
Tsim cov ntaub ntawv los ntawm "Terminal"
Yuav pib, qhib lub Terminal nws tus kheej los ntawm kev nias qhov tseem ceeb ua ke CTRL + ALT + T. Tam sim no koj tuaj yeem pib tsim cov ntaub ntawv. Ua li no, nws yog siv tau rau txoj kev sib txawv, uas yuav muab tso rau hauv qab no.
Kua hluav taws xob
Pab Pawg Neeg Lub Hom Phiaj kov hauv Linux, kev hloov timestamp (sijhawm hloov thiab sijhawm siv). Tab sis yog lub chaw tso dej tsis pom cov ntaub ntawv teev npe, nws yuav cia li tsim ib qho tshiab.
Yog li, los tsim ib cov ntaub ntawv, koj yuav tsum tau hais kom meej rau hauv qhov hais kom ua kab:
kov "FileName"
(yuav tsum tau muaj quotes).
Ntawm no yog ib qho piv txwv ntawm xws li ib lo lus txib:
Txheej txheem kev ua haujlwm tshiab
Qhov no yuav pom tau tias qhov nyuaj tshaj plaws. Txhawm rau tsim cov ntaub ntawv nrog nws, koj tsuas yog yuav tsum qhia kom meej meej rau ntawm kev kos npe thiab sau lub npe ntawm cov ntaub ntawv raug tsim:
> "FileName"
(yuav tsum muaj cov quotes)
Piv txwv:
Echo commands thiab txheej txheem kev ua haujlwm
Qhov no yog suab tsis muaj qhov txawv ntawm ib qho dhau los, tsuas yog nyob rau hauv cov ntaub ntawv no nws yog ib qhov tsim nyog yuav tau nkag mus rau qhov kev txiav txim siab ncho ua ntej rau kev kos npe:
echo> "FileName"
(yuav tsum muaj cov quotes)
Piv txwv:
Cp qhov hluav taws xob
Raws li yog cov ntaub ntawv nrog lub chaw tso dej kov, lub hom phiaj tseem ceeb ntawm pab pawg cp yog tsis tsim cov ntaub ntawv tshiab. Nws yog tsim nyog rau luam. Txawm li cas los xij, teeb qhov txawv "tsis muaj"Koj yuav tsim ib tsab ntawv tshiab:
cp / dev / thov "FileName"
(yuav tsum tsis muaj quotes)
Piv txwv:
Cat hais kom ua thiab txheej txheem kev khiav haujlwm
miv - Qhov no yog ib qho kev hais kom ua haujlwm rau nras thiab saib cov ntaub ntawv thiab cov ntawv, tab sis nws tsim nyog siv nws ua ke nrog redirecting tus txheej txheem, raws li nws yuav tsim ib cov ntaub ntawv tshiab:
miv / dev / thov> "FileName"
(yuav tsum muaj cov quotes)
Piv txwv:
Vim ntawv editor
Nws yog los ntawm lub chaw tso dej vim Lub hom phiaj tseem ceeb yog ua hauj lwm nrog cov ntaub ntawv. Txawm li cas los xij, nws tsis muaj ib lub interface - txhua yam ua tau los ntawm "Terminal".
Hmoov tsis vim tsis preinstalled rau txhua distributions, piv txwv li, hauv Ubuntu 16.04.2 LTS nws tsis yog. Tab sis nws tsis muaj teeb meem, koj tuaj yeem yooj yim muab nws los ntawm lub chaw tso khoom thiab nruab rau hauv koj lub computer tsis tawm hauv Terminal.
Ceeb toom: yog cov ntawv nyeem console editor vim koj twb tau nruab lawm, ces hle qhov kauj ruam no thiab mus ncaj nraim mus tsim ib daim ntawv nrog nws
Rau nruab, sau qhov kev hais kom ua:
sudo apt nruab vim
Tom qab txhaj Sau yuav tsum sau ib lo lus zais. Nkag mus thiab tos rau lub download thiab installation. Hauv cov txheej txheem, koj yuav raug nug kom paub meej tias qhov kev ua tiav ntawm qhov kev hais kom ua - nkag rau tsab ntawv "D" thiab nias Sau.
Qhov tiav ntawm qhov kev pab cuam installation yuav txiav txim los ntawm tus ID nkag mus thiab lub npe lub npe.
Tom qab nruab ib phau ntawv nyeem vim Koj tuaj yeem pib tsim cov ntaub ntawv hauv lub system. Ua li no, siv qhov kev hais kom ua:
vim -c wq "FileName"
(yuav tsum muaj cov quotes)
Piv txwv:
Saum toj no yog 6 txoj kev los tsim cov ntaub ntawv hauv Linux faib. Tau kawg, qhov no tsis yog tag nrho tej zaum, tab sis tsuas yog ib feem, tab sis nrog lawv cov kev pab koj yuav twv yuav raug hu ua haujlwm tiav.
Muab cov ntaub ntawv los ntawm "Terminal"
Sau cov ntaub ntawv hauv Terminal yog yuav luag tib yam li tsim lawv. Qhov tseem ceeb tshaj plaws yog kom paub tag nrho cov lus txib tsim nyog.
Tseem ceeb: kev rho tawm cov ntaub ntawv los ntawm lub system "Terminal", koj rho tawm lawv, uas yog, hauv "Pob Ntxwv" los nrhiav lawv tom qab yuav tsis ua haujlwm.
Rm hais kom ua
Raws nraim pab neeg RM pab raws li hauv linux rho tawm cov ntaub ntawv. Koj tsuas yog yuav tsum qhia lub npe, sau qhov kev hais kom ua thiab sau lub npe ntawm cov ntaub ntawv koj xav rho tawm:
rm "FileName"
(yuav tsum muaj cov quotes)
Piv txwv:
Raws li koj tau pom, tom qab ua tiav qhov kev hais kom ua no, cov ntaub ntawv hauv tus neeg tswj xyuas cov ntaub ntawv yog qhov uas ploj lawm. "Daim Ntawv Tshiab".
Yog tias koj xav lwv tag nrho cov npe ntawm cov ntaub ntawv tsis tseem ceeb, nws yuav siv sij hawm ntev heev los nkag lawv lub npe ntau dua. Nws yooj yim mus siv ib tug tshwj xeeb hais kom ua uas instantly zwm deletes tag nrho cov ntaub ntawv:
rm *
Piv txwv:
Vim tua tau cov lus qhia no, koj tuaj yeem pom tias tag nrho cov ntaub ntawv yav dhau los tau muab tshem tawm hauv cov thawj tswj xyuas cov ntaub ntawv.
Method 2: Tus Thawj Tswj Ntaub Ntawv
Tus neeg saib xyuas cov ntaub ntawv ntawm txhua lub operating system (OS) yog qhov zoo vim nws muab koj lub sijhawm los visually saib tag nrho cov kev sib txuas ntawm kev lag luam, hauv qhov txawv ntawm Terminal nrog nws cov kab hais kom ua. Txawm li cas los xij, muaj cov downsides. Ib tug ntawm lawv: tsis muaj kev tshwm sim rau kev taug hauv kev nthuav dav cov txheej txheem uas tau ua thaum muaj kev khiav hauj lwm.
Nyob rau hauv txhua rooj plaub, cov neeg siv uas nyuam qhuav tau nruab Linux faib rau lawv lub computer, nws zoo meej, raws li qhov zoo sib xws nrog lub qhov rais, raws li lawv hais, yog tshwm tag.
Lus Cim: Tsab ntawv xov xwm yuav siv tus Nautilus tus neeg saib xyuas ua tus piv txwv, uas yog tus qauv rau feem coob ntawm Linux faib. Txawm li cas los xij, cov lus qhia rau lwm tus thawj coj zoo sib xws, tsuas yog cov npe ntawm cov khoom thiab qhov chaw ntawm cov ntsiab lus sib txawv yuav txawv.
Tsim cov ntaub ntawv hauv tus thawj coj ua ntaub ntawv
Ua cov hauv qab no los tsim cov ntaub ntawv:
- Qhib tus neeg saib xyuas cov ntaub ntawv (nyob rau hauv rooj plaub no, Nautilus) los txhaj rau nws lub icon ntawm lub taskbar lossis kev tshawb fawb ntawm lub system.
- Mus rau qhov chaw directory.
- Txoj Cai-Nias (RMB) ntawm qhov chaw npliag.
- Hauv cov ntawv qhia zaub mov, txav tus cursor rau yam khoom "Tsim Ntaub Ntawv" thiab xaiv hom koj xav tau (qhov no qhov hom ntawv yog ib qho - "Daim Ntawv Sau Dawb").
Tom qab ntawd, cov ntaub ntawv npliag yuav tshwm nyob rau hauv cov npe, uas tsuas xav muab lub npe xwb.
Rhais cov ntaub ntawv hauv tus neeg saib xyuas cov ntaub ntawv
Kev tshem tawm txheej txheem hauv Linux tswj yog yooj yim dua thiab sai dua. Yuav kom tshem tawm cov ntaub ntawv, rau nws koj yuav tsum xub ua ntej RMB, thiab mam li xaiv cov khoom hauv cov ntawv qhia zaub mov "Rho tawm".
Koj tuaj yeem ua raws li txoj kev no los ntawm xaiv cov ntaub ntawv thiab xav nias RHO TAWM ntawm cov keyboard.
Tom qab ntawd, nws yuav txav mus rau "Pob Ntxwv". Los ntawm txoj kev, nws tuaj yeem raug txum tim rov qab los. Hais goodbye rau cov ntaub ntawv mus tas li, txoj cai-nias ntawm lub thawv pov tseg thiab xaiv "Khw laub".
Xaus
Raws li koj tau pom, muaj ntau txoj kev los tsim thiab rho tawm cov ntaub ntawv hauv Linux. Koj tuaj yeem siv tus paub zoo dua, uas yog siv lub peev xwm ntawm tus neeg saib xyuas cov ntaub ntawv ntawm lub system, thiab koj siv tau cov pov thawj thiab txhim khu kev ntseeg, siv "Terminal" thiab cov lus txib tsim nyog. Nyob rau hauv txhua rooj plaub, yog tias ib qho ntawm txoj kev tsis, koj tuaj yeem siv cov seem uas seem.