A kowane tsarin aiki, ko Linux ko Windows, ƙila kuna buƙatar sake sunan fayil ɗin. Kuma idan masu amfani da Windows za su iya jure wannan aikin ba tare da matsaloli marasa amfani ba, to a kan Linux za su iya fuskantar matsaloli, saboda ƙarancin ilimin tsarin da ɗimbin hanyoyi da yawa. Wannan labarin zai lissafa duk bambance-bambancen da zai yiwu kan yadda zaku iya sake suna fayil a Linux.
Karanta kuma:
Yadda ake ƙirƙiri ko goge fayil a Linux
Yadda za a gano nau'in rarraba Linux
Hanyar 1: pyRenamer
Abin baƙin ciki software pyRenamer ba a kawota cikin daidaitaccen kayan aikin rarrabawa ba. Koyaya, kamar kowane abu akan Linux, ana iya saukar da shi da sanya shi daga wurin ajiyar kayan aikin. Umurnin zazzagewa da kafawa kamar haka:
sudo dace da shigar da pyrenamer
Bayan shigar dashi, saka kalmar shiga sannan danna Shigar. Na gaba, kuna buƙatar tabbatar da ayyukan da aka yi. Don yin wannan, shigar da harafin D kuma danna sake Shigar. Duk abin da ya rage shi ne jira don saukarwa da shigarwa (kada a rufe "Terminal" har sai an gama tsari).
Bayan shigarwa, ana iya ƙaddamar da shirin ta hanyar bincika tsarin da sunan ta.
Babban bambanci pyRenamer daga mai sarrafa fayil shine aikace-aikacen damar yin hulɗa tare da fayiloli da yawa yanzu yanzu. Ya zama cikakke a cikin lokuta inda kuna buƙatar canza sunan a cikin takardu da yawa lokaci daya, cire wani sashi ko maye gurbinsa da wani.
Bari mu kalli aikin sake fayiloli a cikin wani shirin:
- Bayan buɗe shirin, kuna buƙatar rufe hanyar zuwa shugabanci inda fayilolin da za'a sake suna za'a same su. An yi shi a ciki taga bar aiki (1). Bayan bayyana kundin adireshi a ciki taga dama na aiki (2) Duk fayilolin da ke ciki za a nuna su.
- Na gaba, je zuwa shafin "Abubuwan maye".
- A wannan shafin, ana buƙatar bincika akwatin kusa da "Sauya"domin filayen shigarwar suyi aiki.
- Yanzu zaku iya fara sunaye fayiloli a cikin littafin da aka zaɓa. Yi la'akari da misalin fayiloli huɗu "Takaddun da ba a san su ba" tare da na doka. Bari mu ce muna buƙatar maye gurbin kalmomin "Takaddun da ba a san su ba" kalma Fayiloli. Don yin wannan, shigar da ɓangaren maye gurbin sunan fayil a farkon filin, a wannan yanayin "Takaddun da ba a san su ba", kuma a jumla ta biyu, wacce zata maye gurbin - Fayiloli.
- Don ganin abin da zai zama sakamakon, zaku iya latsa maɓallin "Samfoti" (1). Duk canje-canje za a nuna su a cikin jadawali. "Sake sunan fayil" a hannun dama taga.
- Idan canje-canje ya dace da ku, zaku iya danna maɓallin "Sake suna"don amfani dasu zuwa fayilolin da aka zaɓa.
Bayan sake sunan, zaka iya rufe shirin lafiya kuma ka buɗe mai sarrafa fayil don bincika canje-canje.
A gaskiya ta amfani pyRenamer Kuna iya aiwatar da ayyuka da yawa tare da fayiloli. Ba wai kawai maye gurbin wani sashi na sunan tare da wani ba, amma ta amfani da shaci a cikin shafin "Hanyoyi", saita masu canji, kuma, sarrafa su, canza sunayen fayil kamar yadda kake so. Amma daki-daki, babu wani dalili don fenti umarnin, saboda lokacin da kuka hau kan filayen da ke aiki, za a nuna alama.
Hanyar 2: Terminal
Abin takaici, koyaushe ba zai yiwu a sake sunan fayil ba ta amfani da shirye-shirye na musamman tare da kerar mai hoto. Wani lokacin kuskure ko wani abu mai kama da hakan na iya faruwa wanda ya rikice zuwa aikin. Amma a cikin Linux akwai hanyoyi fiye da ɗaya don kammala aikin, saboda haka muna tafiya kai tsaye zuwa "Terminal".
Kungiyar Mv
.Ungiyar mv a Linux, yana da alhakin motsi fayiloli daga wannan jagorar zuwa wani. Amma a zuciyar ta, matsar da fayil yayi kama da sake yin suna. Don haka, ta amfani da wannan umarnin, idan kun matsar da fayil ɗin zuwa babban fayil ɗin da yake a ciki, yayin saita sabon suna, zaku sami damar sake suna.
Yanzu bari muyi aiki tare da ƙungiyar daki-daki mv.
Syntax da zaɓuɓɓuka saboda umarnin mv
Gaskiyar magana kamar haka:
mv zaɓi na asali_file_name file_name bayan sake suna
Don amfani da duk kayan aikin wannan ƙungiyar, kuna buƙatar nazarin zaɓuɓɓukansa:
- -i - nemi izini lokacin maye gurbin fayilolin data kasance;
- -f - sauya fayil da ya kasance ba tare da izini ba.
- -n - hana sauya fayil ɗin da ke gudana;
- -u - Ba da damar sauya fayil idan akwai canje-canje a ciki;
- -v - nuna duk fayilolin sarrafa (jeri).
Bayan mun fitar da dukkan siffofin kungiyar mv, zaka iya ci gaba kai tsaye zuwa tsarin sake sunan kanta.
Misalan yin amfani da umarnin mv
Yanzu za muyi la’akari da halin da ake ciki yayin babban fayil "Takaddun bayanai" akwai fayil tare da suna "Tsohon takardu", aikin mu shine sake sunan shi "Sabon takardar"ta amfani da umarnin mv a ciki "Terminal". Don yin wannan, muna buƙatar shigar da:
mv -v "Tsohon daftarin aiki" "Sabon daftarin aiki"
Lura: don aikin ya yi nasara, kuna buƙatar buɗe babban fayil ɗin da ake so a cikin "Terminal" kuma bayan hakan sai a aiwatar da dukkan magudin. Kuna iya buɗe babban fayil a cikin "Terminal" ta amfani da umarnin cd.
Misali:
Kamar yadda kake gani a hoto, fayil ɗin da muke buƙata ya sami sabon suna. Lura cewa an nuna zabin a cikin "Terminal" "-v", wanda akan layin da ke ƙasa ya nuna cikakken rahoto game da aikin da aka yi.
Hakanan ta amfani da umarnin mv, zaka iya sake sunan fayil ɗin kawai, amma kuma matsar dashi cikin babban fayil a hanya. Kamar yadda aka ambata a sama, wannan umarnin don wannan ne kuma ana buƙata. Don yin wannan, ban da tantance sunan fayil, dole ne a fayyace hanyar zuwa gare ta.
Bari mu ce kuna so daga babban fayil "Takaddun bayanai" matsar da fayil "Tsohon takardu" to babban fayil "Bidiyo" sake suna a cikin wucewa "Sabon takardar". Ga yadda umarnin zai yi kama da:
mv -v / gida / mai amfani / Takaddun shaida / "Tsohon Daftarin aiki" / gida / mai amfani / Bidiyo / "Sabon Takardar"
Muhimmi: idan sunan fayil ya ƙunshi kalmomi biyu ko fiye, dole ne a kulle shi cikin alamun magana.
Misali:
Lura: idan baku da ikon samun damar zuwa babban fayil ɗin da zaku tura fayil ɗin, sake sunan shi yayin, kuna buƙatar aiwatar da umarnin ta hannun superuser ta hanyar rubuta "super su" a farkon da shigar da kalmar wucewa.
Sake suna da umarnin
.Ungiyar mv mai kyau lokacin da kuke buƙatar sake suna ɗaya fayil. Kuma, hakika, ba za ta iya samun wanda zai maye gurbin ta ba - ta fi kyau. Koyaya, idan kuna buƙatar sake sunaye fayiloli da yawa ko maye gurbin wani ɓangaren sunan, to ƙungiyar ta zama mafi so sake suna.
Sake sunan umarnin ginin kalma da zaɓuɓɓuka
Kamar yadda tare da umurnin da ta gabata, za mu fara magance yanayin sake suna. Ya yi kama da wannan:
sake sunan zabin 's / old_file_name / sabon_file_name /' file_name
Kamar yadda kake gani, yanayin sanya magana yafi rikitarwa fiye da umarni mvKoyaya, yana ba ka damar yin ƙari tare da fayil ɗin.
Yanzu bari mu bincika zaɓuɓɓuka, suna kamar haka:
- -v - nuna fayilolin sarrafawa;
- -n - canje-canje samfoti;
- -f - Tilas a sake suna duk fayiloli.
Yanzu bari mu bincika misalai na wannan umarnin.
Misalan yin amfani da umarnin sake sunan
Bari mu ce a cikin directory "Takaddun bayanai" muna da fayiloli da yawa da ake kira "Tsohon lambobin daftarin aiki"ina lamba lambar serial. Ayyukanmu ta amfani da .ungiyar sake suna, a cikin duk waɗannan fayilolin canza kalmar "Tsoho" a kunne "Sabon". Don yin wannan, muna buƙatar gudanar da umarnin:
sake suna -v 's / Tsohon / Sabon /' *
ina "*" - duk fayiloli a cikin kundin da aka kayyade.
Bayani: idan kuna son yin canji a fayil ɗaya, to sai a rubuta sunanta maimakon "*". Kar ku manta, idan sunan ya kunshi kalmomi biyu ko sama da haka, to lallai ne ya fito.
Misali:
Lura: tare da wannan umarnin zaka iya sauya tsawan fayil ɗin ta hanyar tantance tsohuwar fadada da farko, rubuta shi, alal misali, a matsayin " .txt", sannan kuma sabo, misali, " .html".
Amfani da umarni sake suna Hakanan zaka iya canja shari'ar sunan rubutu. Misali, muna son fayiloli mai suna "SATI sabo (lamba)" sake suna zuwa "sabon fayil (lamba)". Don yin wannan, rubuta umarni mai zuwa:
sake suna -v 'y / A-Z / a-z /' *
Misali:
Lura: idan kuna buƙatar sauya shari'ar a cikin sunan fayil a Rashanci, to, ku yi amfani da umarnin "sake suna -v 'y / А-Я / а-я /' *".
Hanyar 3: Mai sarrafa fayil
Abin baƙin ciki a "Terminal" ba kowane mai amfani zai iya tantance shi ba, don haka yana da kyau a yi la’akari da yadda ake sake suna fayiloli ta amfani da keken mai hoto.
Yin hulɗa tare da fayiloli a Linux yana da kyau a yi tare da mai sarrafa fayil ɗin, ko Nautilus, Dabbar dolphin ko kowane (dangane da rarraba Linux). Yana ba ku damar hango fayiloli ba kawai ba, har ma da kundin adireshi, kazalika da kundin adireshi, suna gina madaidaicinsu ta hanyar da ta fi fahimtar mai amfani da ƙwarewa. A cikin irin waɗannan manajoji, har ma wani mafari wanda ya shigar da Linux nasa kawai zai iya samun hanyarsa sauƙi.
Sake suna fayil ta amfani da mai sarrafa fayil yana da sauƙi:
- Don farawa, kuna buƙatar buɗe mai sarrafa kanta kuma je zuwa shugabanci inda fayil ɗin da ke buƙatar sake suna mai suna yake.
- Yanzu kuna buƙatar hawa kan shi kuma danna maɓallin linzamin kwamfuta na hagu (LMB) don zaɓa. Sannan mabuɗin F2 ko maɓallin linzamin kwamfuta na dama ka zaɓi "Sake suna".
- Wani tsari don cikewa yana bayyana a ƙarƙashin fayil ɗin, sunan fayil ɗin da kansa zai zama mai mahimmanci. Dole ne kawai ka shigar da sunan da kake so kuma danna maɓallin Shigar don tabbatar da canje-canje.
Don haka sauƙi da sauri zaka iya sake suna fayil a cikin Linux. Umarnan da aka gabatar yana aiki a cikin duk masu sarrafa fayil na rarrabawa, duk da haka, za a iya samun bambance-bambance da sunan wasu abubuwan masarufi ko kuma a cikin nunirsu, amma ma'anar ayyukan gaba daya daidai suke.
Kammalawa
Sakamakon haka, zamu iya cewa akwai hanyoyi da yawa don sake sunaye fayiloli a cikin Linux. Dukkansu sun bambanta da juna kuma suna da mahimmanci a cikin yanayi daban-daban. Misali, idan kana bukatar sake suna guda fayiloli, zai fi kyau amfani da mai sarrafa fayil na tsarin ko umarni mv. Kuma game da sakin fuska ko maimaita sunan, shirin cikakke ne pyRenamer ko kungiya sake suna. Abin da ya rage kawai shine abu guda - don yanke shawarar hanyar amfani.