Rau txhua qhov kev khiav hauj lwm, nws yuav Linux los yog Windows, koj yuav tsum tau hloov dua tshiab cov ntaub ntawv. Thiab yog tias cov neeg siv cov neeg siv tiv thaiv nrog cov haujlwm no tsis muaj teeb meem dabtsi, tom qab ntawd Linux yuav muaj kev cov nyom, vim tsis paub txog qhov system thiab kev nplua nuj ntawm ntau txoj kev. Tsab ntawv xov xwm no yuav teev txhua yam ua tau li cas rau qhov koj tuaj yeem kho cov ntaub ntawv hauv Linux.
Saib kuj:
Yuav ua li cas los tsim lossis rho tawm cov ntaub ntawv hauv Linux
Yuav ua li cas paub qhov version ntawm Linux faib
Method 1: PyRenamer
Hmoov tsis, software pyRenamer Nws tsis tuaj yeem nkag hauv cov txheej txheem kev faib khoom faib tawm. Txawm li cas los xij, zoo li txhua yam hauv Linux, nws tuaj yeem raug downloaded thiab ntsia los ntawm tus nom repository. Lo lus txib mus download thiab nruab yog raws li nram no:
sudo apt nruab pyrenamer
Tom qab nkag mus, sau tus password thiab nias Sau. Tom ntej no, koj yuav tsum paub meej tias qhov kev nqis tes ua. Ua li no, sau tsab ntawv "D" thiab nias dua Sau. Nws tshua tsuas tos kom lub download thiab installation (tsis txhob kaw lub "Terminal" kom txog thaum tus txheej txheem tiav).
Tom qab kev teeb tsa, qhov kev zov me nyuam yuav khiav, tom qab ua ib qho kev tshawb fawb ntawm lub cev nrog nws lub npe.
Lub ntsiab qhov txawv pyRenamer los ntawm tus neeg saib xyuas cov ntaub ntawv yog tias daim ntawv thov tuaj yeem siv ua ke nrog ntau cov ntaub ntawv ib txhij. Nws zoo tag nrho thaum koj xav hloov lub npe ntawm ntau cov ntaub ntawv ib zaug, tshem qee qhov los yog hloov nrog lwm tus.
Cia peb saib txoj hauj lwm ntawm kev hloov cov ntaub ntawv hauv qhov program:
- Thaum koj tau qhib qhov kev pab, koj yuav tsum ua raws li txoj hauv kev rau cov npe uas cov ntaub ntawv yuav tsum tau muab hloov dua tshiab. Qhov no yog ua nyob rau hauv laug ua hauj lwm qhov rais (1). Tom qab txiav txim siab cov npe hauv txoj cai ua haujlwm qhov rai (2) tag nrho cov ntaub ntawv nyob rau hauv nws yuav tsum qhia.
- Tom ntej no, koj yuav tsum mus rau lub tab "Hloov Chaw".
- Hauv no tab koj yuav tsum muab tus zuam tom ntej "Hloov"yog li ntawd cov tswv yim sib txawv ua ke.
- Tam sim no koj tuaj yeem ua raws li cov ntaub ntawv teev npe tseg hauv cov ntawv xaiv tsa. Xav txog qhov piv txwv ntawm plaub cov ntaub ntawv. "Nameless Cov Ntaub Ntawv" nrog rau tus xov tooj. Cia peb hais tias peb yuav tsum hloov cov lus "Nameless Cov Ntaub Ntawv" ntawm lo lus "Cov Ntaub Ntawv". Ua li no, hauv thawj daim teb nkag mus rau qhov chaw hloov ntawm cov ntaub ntawv lub npe, hauv qhov no "Nameless Cov Ntaub Ntawv", thiab nyob rau hauv ob kab lus, uas yuav hloov - "Cov Ntaub Ntawv".
- Saib dab tsi tshwm sim thaum kawg, koj tuaj yeem nias "Saib Ua Ntej" (1). Tag nrho cov kev hloov yuav tshwm nyob hauv daim duab "Renamed file name" nyob rau hauv txoj cai ua haujlwm qhov rai.
- Yog hloov pauv koj, koj tuaj yeem nias "Rename"mus thov lawv xaiv cov ntaub ntawv.
Tom qab hloov dua tshiab, koj tuaj yeem ruaj ntseg kaw qhov program thiab qhib tus neeg saib xyuas cov ntaub ntawv los xyuas cov kev hloov.
Yeej siv pyRenamer Koj tuaj yeem ua haujlwm ntau heev. Tsis tas yuav hloov ib qho ntawm lub npe nrog lwm tus, tab sis kuj siv cov templates hauv lub tab "Cov Qauv", teeb qhob, thiab tswj lawv, hloov cov npe cov npe raws li koj nyiam. Tab sis tsis muaj ib qho taw qhia hauv kev piav qhia cov lus qhia kom meej, txij li thaum thaum koj hla tus cursor nyob hauv thaj tsam ntawm kev ua ub no, ib qho tshwm sim yuav tshwm sim.
Txoj kev 2: Terminal
Hmoov tsis, nws tsis yog ib txwm ua tau los hloov cov ntaub ntawv uas siv cov kev pab tshwj xeeb nrog cov graphical interface. Qee zaum ib qho yuam kev los yog ib yam dab tsi uas yuav cuam tshuam nrog kev ua tiav ntawm txoj hauj lwm no. Tab sis nyob hauv Linux muaj ntau ntau tshaj li ib txoj kev ua kom tiav txoj hauj lwm, yog li ntawd mus ncaj nraim "Terminal".
Mv hais kom ua
Pab Neeg mv hauv Linux, nws yog lub luag haujlwm rau kev hloov cov ntaub ntawv los ntawm ib tus directory mus rau lwm qhov. Tab sis yog hauv essence, tsiv ib cov ntaub ntawv zoo li kev hloov npe dua. Yog li, siv qhov kev hais kom ua no, yog tias koj tsiv cov ntaub ntawv mus rau tib daim nplaub tshev uas nws nyob rau, thaum lub npe tshiab, koj yuav tau hloov dua tshiab.
Tam sim no cia tus saib xyuas zoo dua. mv.
Syntax thiab kev xaiv rau qhov hais kom ua mv
Lub syntax yog raws li nram no:
mv xaiv thawj_file_name filename after_name rename
Siv tag nrho cov yam ntxwv ntawm kev hais kom ua no, koj yuav tsum tau tshawb txog nws cov kev xaiv:
- -i - thov tso cai thaum hloov cov ntaub ntawv uas twb muaj lawm;
- -f - hloov cov ntaub ntawv uas tsis muaj ntawv tso cai;
- -n - txwv tsis pub hloov cov ntaub ntawv uas twb muaj lawm;
- -u - cia cov ntaub ntawv hloov yog tias muaj kev hloov hauv nws;
- -v - qhia tag nrho cov ntaub ntawv uas ua tiav (sau).
Tom qab peb tau saib xyuas tag nrho cov qauv ntawm pab pawg mv, koj tuaj yeem ncaj qha mus rau kev hloov txheej txheem nws tus kheej.
Mv txib pab piv txwv
Tam sim no peb yuav xav txog qhov teeb meem no thaum nyob rau hauv daim nplaub tshev "Cov ntaub ntawv" muaj ib daim ntawv teev npe "Qub Cov Ntaub Ntawv"peb txoj hauj lwm yog los hloov npe dua "Daim Ntawv Tshiab"siv qhov lus txib mv hauv "Terminal". Rau qhov peb xav tau:
mv -v "Qub Cov Ntaub Ntawv" "Daim Ntawv Xwm Tshiab"
Nco ntsoov: kev khiav hauj lwm kom muaj kev vam meej, koj yuav tsum qhib qhov nplaub tshev hauv "Terminal" thiab tsuas yog tom qab uas ua tag nrho cov kev tswj hwm. Koj tuaj yeem qhib lub nplaub tshev nyob hauv "Terminal" siv qhov kev txiav txim cd.
Piv txwv:
Raws li koj pom hauv daim duab, cov ntaub ntawv peb xav tau muab lub npe tshiab. Thov nco ntsoov tias nyob hauv "Terminal" xaiv "-v", cov kab hauv qab no tau qhia txog cov ncauj lus kom ntxaws txog kev ua haujlwm.
Tsis tas li ntawd, siv lo lus txib mvKoj tsis tuaj yeem hloov tau cov ntaub ntawv, tab sis ib txav mus rau lwm phau ntawv. Raws li tau hais los saum toj no, qhov kev hais no yog raws nraim li cas rau qhov no. Ua li no, koj yuav tsum tau, ntxiv rau qhov qhia meej lub npe cov npe, teem caij rau nws.
Cia hais tias koj xav tau los ntawm ib phau ntawv "Cov ntaub ntawv" txav cov ntaub ntawv "Qub Cov Ntaub Ntawv" mus nplaub tshev "Yees duab" ib txhij renaming nws mus "Daim Ntawv Tshiab". Qhov no yog qhov hais kom ua zoo li:
mv -v / tsev / neeg / Cov ntaub ntawv / "Cov ntaub ntawv qub" / tsev / neeg / duab / "Daim ntawv tshiab"
Tseem ceeb: Yog tias cov ntaub ntawv lub npe muaj ob los yog ntau cov lus, nws yuav tsum muab xa nrog cov quotes.
Piv txwv:
Ceebtoom: Yog tias daim ntawv uas koj npaj siab yuav tsiv mus rau cov ntaub ntawv, koj tsis muaj cai rau koj, koj yuav tsum tau ua raws li txoj cai ntawm tus superuser sau ntawv "super su" thaum pib thiab nkag rau lo lus zais.
Kev hloov npe tshiab
Pab Neeg mv zoo thaum koj xav tau ib qho tshiab. Thiab, ntawm chav kawm, tsis muaj hloov rau nws nyob rau hauv no - nws yog qhov zoo tshaj plaws. Txawm li cas los xij, yog tias koj xav tau cov ntaub ntawv ntau dua los sis hloov ib qho ntawm lub npe, ces qhov kev txiav txim yuav yog qhov kev nyiam rename.
Syntax thiab kev xaiv ntawm qhov kev hais kom ua tshiab
Raws li nrog cov lus txib kawg, peb pib nrog cov syntax rename. Nws zoo li no:
rename kev xaiv 's / old_name_file / new_name_file /' name_of_file_name
Raws li koj tau pom, lub syntax yog ntau yam nyuab tshaj qhov hais kom ua. mvtxawm li cas los xij, nws tso cai rau koj ua ntau yam ntawm cov ntaub ntawv.
Tam sim no cia saib cov kev xaiv, lawv muaj raws li nram no:
- -v - qhia cov ntaub ntawv tiav;
- -n - saib ua ntej hloov;
- -f - rho tawm tag nrho cov ntaub ntawv.
Tam sim no cia saib cov qauv piv txwv ntawm cov lus txib no.
Piv txwv ntawm kev siv cov lus hais kom hloov
Cia li xav hauv qhov directory "Cov ntaub ntawv" peb muaj ntau cov ntaub ntawv hu ua "Cov ntaub ntawv qub"qhov twg num - Qhov no yog ib qib zauv. Peb txoj hauj lwm yog siv txoj lus txib rename, hauv tag nrho cov ntaub ntawv no hloov lo lus "Qub" on "Tshiab". Ua li no, peb yuav tsum khiav cov lus txib nram qab no:
rename -v lub / laus / tshiab / '*
qhov twg "*" - tag nrho cov ntaub ntawv nyob rau hauv lub npe teev.
Lus Cim: Yog tias koj xav hloov ib qho ntaub ntawv, ces txhob siv "*" sau nws lub npe. Tsis txhob hnov qab, yog lub npe muaj ob los yog ntau dua cov lus, ces nws yuav tsum tau hais.
Piv txwv:
Lus Cim: siv qhov kev hais kom ua no, koj tuaj yeem hloov pauv cov ntaub ntawv txuas ntxiv los ntawm kev txheeb xyuas qhov qub ntxiv, sau nws, piv txwv li, hauv daim ntawv " .txt", thiab tom qab ntawd ces tus tshiab, piv txwv li, ".html ".
Siv cov lus txib rename Koj tuaj yeem hloov cov ntaub ntawv ntawm lub npe ntawv. Piv txwv li, peb xav tau cov ntaub ntawv hu ua "TSHIAB NTAUB NTAWV (num)" rename rau "tshiab ntawv (num)". Rau qhov koj yuav tsum sau npe rau nram qab no:
rename -v 'y / A-Z / a-z /' *
Piv txwv:
Lus Cim: Yog tias koj xav tau hloov cov ntaub ntawv hauv cov npe ntawm cov ntaub ntawv hauv Lavxias, ces siv qhov lus txib "rename -v" y / AZ / a-i / * * ".
Method 3: Tus Thawj Tswj Ntaub Ntawv
Hmoov tsis, hauv "Terminal" Tsis yog txhua tus neeg siv yuav xam nws tawm, vim li ntawd nws yuav paub qab hau los xav txog kev hloov cov ntaub ntawv siv cov graphical interface.
Interacting nrog cov ntaub ntawv hauv Linux zoo ua nrog rau cov ntaub ntawv tus thawj tswj, yuav nws Nautilus, Ntses taub ntswg ntev los yog lwm yam (nyob ntawm lub Linux faib). Nws tso cai rau koj pom tau tias tsis yog cov ntaub ntawv xwb, tab sis kuj muaj kev txhim kho, nrog rau cov kev qhia, tsim lawv cov hierarchy hauv ib daim ntawv uas nkag siab dua rau tus neeg tsis paub siv. Txawm tias ib tug novice uas tau cia li ntsia Linux rau nws tus kheej tau yooj yim nyob rau hauv xws li cov tswj.
Renaming ib cov ntaub ntawv uas siv tus thawj tswj xyuas cov ntaub ntawv yog yooj yim:
- Ua ntej koj yuav tau qhib tus neeg saib xyuas nws tus kheej thiab mus rau hauv cov ntaub ntawv uas cov ntaub ntawv yuav tsum tau muab hloov dua tshiab.
- Tam sim no koj yuav tsum hover dua nws thiab nias ntawm sab laug nas khawm (LMB) los xaiv. Ua raws li los ntawm ib qhov tseem ceeb F2 los yog txoj cai nas khawm thiab xaiv yam khoom "Rename".
- Ib daim ntawv yuav tshwm rau hauv qab ntawm cov ntaub ntawv, thiab cov ntaub ntawv npe nws tus kheej yuav ua rau. Koj tsuas yog yuav tsum tau sau lub npe thiab nias lub ntsiab Sau kom paub meej tias cov kev hloov.
Yog li ntawd tsuas thiab ceev nrooj koj tuaj yeem rename cov ntaub ntawv hauv Linux. Cov kev qhia ntawv ua haujlwm hauv txhua tus neeg tswj cov ntawv sib txawv, tiam sis tej zaum yuav muaj qhov txawv ntawm cov npe ntawm cov ntsiab lus hauv interface los yog hauv lawv cov duab, tab sis lub ntsiab lus ntawm cov yeeb yam tseem tshuav ib yam.
Xaus
Yog li ntawd, peb tuaj yeem hais tias muaj ntau txoj kev los hloov cov ntaub ntawv hauv Linux. Tag nrho cov ntawm lawv yog txawv ntawm ib leeg thiab yog qhov tseem ceeb nyob rau hauv ntau lub sijhawm. Piv txwv li, yog tias koj xav rho tawm cov ntaub ntawv ib zaug xwb, nws zoo dua rau siv tus neeg saib xyuas cov ntaub ntawv los yog qhov kev hais kom ua mv. Thiab nyob rau hauv cov ntaub ntawv ntawm ib feem los sis ntau dua renaming, qhov kev zov me nyuam zoo tag nrho. pyRenamer lossis pab neeg rename. Koj tsuas muaj ib yam khoom sab laug ua - los txiav txim seb yuav siv li cas.