/ Ungahambisa kanjani noma ukopishe amafayela noma amafolda ku-Linux?

Linux

Abaningi bethu uma kungeyona ingxenye enkulu kunazo zonkesijwayele ukusebenzisa isikhombimsebenzisi sokuqhafaza noma imvelo yedeskithophu ukusho. Imisebenzi yokuhamba, ukuhlela, Qamba kabusha phakathi kwezinye izinto amafayela noma amafolda zivame ukwenziwa ngendlela elula ngokuchofoza nje okumbalwa.

Kodwa kwenzekani lapho kufanele usebenzise lokhu kunyakaza kuseva ngoba iningi lazo livame ukuphathwa kuphela kusuka kukhonsoli yomyalo, lokhu kuvame ukuhlala kumaseva azinikezele, noma kunjalo akukaze kubuhlungu ukwazi ukuthi lokhu kwenziwa kanjani ngoba ngeke wazi ukuthi kungaba matasa nini.

Kwenzeke kimi ukuthi kwezinye izikhathi ngilahlekelwe yimvelo yami yokuqhafaza futhi kufanele ngisebenzise ikhonsoli ukuyibuyisa, kepha lelo elinye iphuzu.

Usuku lwa namuhla ngiza ukwabelana nawe ngemiyalo elula ezosisiza ukwenza imisebenzi yokukopisha noma yokuhambisa amafayela.

I-athikili ehlobene:
Izimvume eziyisisekelo ku-GNU / Linux nge-chmod

/ Ungawahambisa kanjani amafayela noma amafolda ku-Linux?

Into yokuqala kuzoba ukuphela okuzoba yithuluzi lethu elizosisiza kukho konke lokhu, into yesibili ukudala amanye amafolda anemibhalo yombhalo ngaphakathi lokhu ukuze kungalimazi noma kulahle imininingwane.

kopisha bese uhambisa amafayela

Into ejwayelekile kakhulu ukuhambisa ifayili lesikhombi ngalokhu sizosebenzisa umyalo we-mv:

mv archivo.txt /home/usuario/Documentos/prueba

Nakhu esikwenzayo kususa ifayili.txt kufolda yokuhlola esefolda yethu yemibhalo. Ngenxa yalokhu sibheka ukuthi njengamanje sibekwe enkombeni lapho kutholakala khona ifayili.txt

Lapho sifuna ukuhambisa amafayela angaphezu kwelilodwa ngasikhathi, uhlobo lwe-syntax kungaba okulandelayo:

mv archivo.1 archivo.2 archivo.3 /ruta/de/destino

Manje okuthile okuwusizo kakhulu ukusebenzisa i- * lapho amafayela anesisekelo esifanayo egameni, ngokwesibonelo:

Amd-gpu…

Amd-gpu-pro ..

Umshayeli we-Amd ...

I-athikili ehlobene:
Amathiphu: Ngaphezu kwemiyalo engama-400 ye-GNU / Linux okufanele uyazi 😀

Ngakho-ke, njengoba sibona, banesisekelo esifanayo se- "AMD" sokuhambisa wonke lawo mafayela anegama lesisekelo elifanayo, senza okulandelayo:

mv AMD* /ruta/de/destino

Okufanayo kusebenza kuwo wonke lawo mafayela anohlobo olufanayo, ngokwesibonelo, .doc, .xls, .deb, .rpm njll. Ukuzihambisa sisebenza kuphela

mv *.deb /ruta/de/destino

Kuze kube manje kucacile ukuthi isebenza kanjani nokuthi singawenza kanjani umsebenzi ngezindlela eziningana, kepha kwenzekani lapho sifuna ukuhambisa yonke into enesiqondisi, amafayela namafolda angaphansi.

Kulokhu sizosebenzisa i- *, ngokwesibonelo, ngifuna ukuhambisa konke engikucindezele kusuka ku-wordpress kuye kwizikhombisi ezimbili ezedlule:

mv wordpress/* …/

Ukwazi okwengeziwe ngomyalo esingawusebenzisa umuntu wawo noma nge --help parameter, lapha sizobona yonke imingcele yayo.

Ungawakopisha kanjani amafayela ku-Linux?

Ngaleli cala icishe ifane ngokungafani nalokho, ukuhambisa amafayela noma amafolda usuka komunye uye komunye, lapha gcina amafayela namafolda endaweni yawo avela kuyo bese wenza ikhophi enkombeni ekhethiwe.

Un umyalo olula wokukopisha ifayela noma ifolda kusuka kwesinye isiqondisi kuya kwesinye:

cp objetoacopiar rutadedestino

Indlela ecacile yokuyibuka:

cp archivo.txt /ruta/de/destino

Lo myalo uvame ukusetshenziswa kakhulu ukwenza izipele zefayela noma ifolda ezohlelwa, ngoba idala ikhophi eliphelele, kepha ngegama elihlukile, isibonelo esisebenzayo:

cp log.txt log.bak

para kopisha amafayela amaningi noma amafolda:

cp archivo1 /carpeta1 /carpeta/carpeta /ruta/de/destino

Manje uma sifuna ukukopisha konke okuqukethe ifolda lapho sibekwe khona komunye umkhombandlela:

cp  /* /ruta/de/destino

Manje uma sifuna ukukopisha umkhombandlela kusuka endaweni eyodwa kuya kwenye

cp /directorio /ruta/de/destino

Kubalulekile ukuthi sibe sezingeni elilodwa ngaphansi komkhombandlela esizowukopisha, ngoba uma singaphakathi kuwo kudingekile ukucacisa indlela ephelele, ngoba uma sibeka umyalo ngendlela engiwubeke ngayo, kuzokwakha umkhombandlela ongenalutho kuphela.

Ekugcineni, uma sifuna ukwazi yonke imingcele yayo, sincika kumuntu waso noma nge - usizo

Ngaphandle kokuqhubeka kokunye, kuyimiyalo eyisisekelo ngokweqile, ukusetshenziswa kwayo kungakusiza kakhulu futhi kufanele uqaphele nakubo ngoba kuhlala kunconywa ukusebenzisa ifomu eliphindayo, elisetshenziswa ne -r ipharamitha.


Okuqukethwe yi-athikili kunamathela ezimisweni zethu ze izimiso zokuhlelela. Ukubika iphutha chofoza lapha.

Amazwana ayi-2, shiya okwakho

Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe. Ezidingekayo ibhalwe nge *

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.

  1.   UJorge C Rodriguez S kusho

    Uma ngifuna ukukopisha wonke amafayela kusuka kufolda eyodwa kuya kwelinye kuzoba lapho

    cp / * / igama / ifolda / indawo oya kuyo ??

    ngimi kufolda lapho nginamafayela engizowakopisha khona?

  2.   UJuan Manuel Carrilllo Campos kusho

    Ngifuna ukukopisha inani elithile lamarekhodi kusuka kufayela lomthombo liye kufayela lokuya khona, kwesinye isikhathi lirekhodi-kusuka kwirekhodi-kuya kububanzi, ngingakwenza kanjani lokhu?