Maitiro ekuteedzera faira kune akawanda madhairekitori uchishandisa mirairo

Kana iwe wakamboshandisa iyo linux command koni, iwe unotoziva kuti zviri nyore kwazvo kuteedzera faira kana kunyange akati wandei mafaera Kutenda kune cp yekuraira, rairo iyo isu tese takashandisa pane imwe nguva uye kuti kusvika zvino yatishandira zvakanaka kwazvo kuteedzera mafaera tichishandisa koni.

Nekudaro, chii chinoitika kana isu tichida kuteedzera imwe faira kune akati wandei madhairekitori panguva imwe chete? Iwo cp rairo haibvumidze kuzviita zvakananga, uchifanira kudzokorora iyo cp raira kakawanda, chimwe chinhu chinogona kunetsa uye kusashanda. Zvirokwazvo kana izvi zvaitika kwauri iwe wakambozvibvunza kana pasina chinhu chinokubvumidza iwe kuteedzera faira rimwe chete kune akati wandei madhairekitori mune imwechete kuraira, pasina kudzokorora

Zvakanaka ndine nhau dzakanaka kwauri, kubvira iwo xargs rairo rinokutendera iwe kujoina akati wandei cp mirairo mune imwe, ichikuchengetera nguva uye ichikubvumidza iwe kuti uzviite kamwe chete, nemirairo imwe chete. Iwo wekuraira syntax unotevera:

xargs -n 1 cp -v archivo<<<"/carpeta1/ /carpeta2/" 

Sezvauri kuona, ndezve kushandisa iyo xarg yekuraira ne cp yekuraira sekupokana, Kuisa zita refaira rako uko kwaunoisa faira uye maforodha kwaunoda kuteedzera kwaunoisa dhairekitori (kuwedzera iwo aunoda). Kana semuenzaniso ini ndichida kuteedzera iyo faira test.txt mu / home / azpe uye / home / isaac, rairo raizove rinotevera.

xargs -n 1 cp -v prueba.txt<<<"/home/azpe/ /home/isaac/ "

Kana parutivi ini ndichida kuikopa mufaira / kumba / joaquin uye / kumba / willy, ini ndaizoisa unotevera kuraira.

xargs -n 1 cp -v prueba.txt<<<"/home/azpe/ /home/isaac/ /home/joaquin/ /home/willy/ "

Nenzira iyi, isu tichakwanisa kuteedzera faira mune akati wandei madhairekitori panguva imwe chete, chimwe chinhu pasina mubvunzo chinoshanda uye chinoda kuziva uye icho hachimborwadza kuziva. Rangarira kuti iwe unogona kuisa iyo nhamba yemafaira iwe aunoda mune makotesheni.

Kushandiswa kwakanaka kwandinogona kufunga nezvako nekuda kwemurairo uyu semuenzaniso kune mudzidzisi anoda kuteedzera faira kune vese vadzidzi vake. Uchishandisa uyu murairo, aigona kuteedzera iyo faira mune imwe nzira uye mune imwechete kuraira, pasina kuenda kutenderera uchiisa rairo kumudzidzi wega wega.


Izvo zviri muchinyorwa zvinoomerera pamisimboti yedu ye tsika dzekunyora. Kuti utaure chikanganiso tinya pano.

Makomendi gumi, siya zvako

Siya yako yekutaura

Your kero e havazobvumirwi ichibudiswa.

*

*

  1. Inotarisira data: AB Internet Networks 2008 SL
  2. Chinangwa cheiyo data: Kudzora SPAM, manejimendi manejimendi.
  3. Legitimation: Kubvuma kwako
  4. Kutaurirana kwedata
  5. Dhata yekuchengetedza: Dhatabhesi inobatwa neOccentus Networks (EU)
  6. Kodzero: Panguva ipi neipi iwe unogona kudzora, kupora uye kudzima ruzivo rwako

  1.   Monica akadaro

    Ndinoona ichifadza kwazvo.

  2.   Sid ragasoom akadaro

    Mhoroi, zano rangu ndere kuteedzera faira kune akawanda ekunze madhiraivha uchishandisa nzira iyi. Zvino, nekuda kwekusaziva, ini handikwanise kuisa iyo faira «txt» ese MOUNTPOINT (/ media / XXX / UUID) emadhisiki, nekuti panogara paine matsva matsva. Unogona kundibatsira nazvo here? Kubva ndatotenda zvikuru kwazvo.