Nzira yekubvisa sei nzvimbo kubva pamazita emafaira

keyboard, kubvisa sei nzvimbo mazita emafaira

Nguva zhinji unenge wasangana nemazita emafaira nemadhairekitori ane nzvimbo dzinopindira mumazita avo, kunyanya ayo anobva kuWindows. Idzi nzvimbo dzinowanzo kutsamwisa, kunyanya kana uchishanda kubva kugoko, nekuti iwe unofanirwa kuaziva kuti asabatwa seakasiyana emirairo mazita kana sarudzo. Naizvozvo, muchidzidzo ichi tichaona dzimwe nzira dzekuita bvisa nzvimbo otomatiki.

Mukuwedzera, tichaonawo kuti izvi zvingashandiswa sei mafaera kana madhairekitori ane mazita ane nzvimbo pasina kukanda iwe kukanganisa.

Maitiro ekushandisa mafaera nemadhairekitori ane nzvimbo

Kuedza nzvimbo dzekupukunyuka yemazita emafaira nemadhairekitori muLinux terminal, unogona kuzviita nenzira idzi:

  • Kusanganisira "" (double quotes) muchikamu chegwara pane nzvimbo kana mune zvese. Semuyenzaniso:
cd "nombre con espacio"/

  • Kushandisa \ hunhu pamberi penzvimbo yega yega. Semuyenzaniso:
nano nombre\ con\ espacio.txt

Nenzira idzi, iwe uchazviita pfuura nzvimbo idzi dzinoshungurudza. Zvino, kuti usazofanira kushandisa sarudzo idzi zvakare, izvo zvinogona kunetsa, unogona kutevedzera aya matanho…

Nzira yekubvisa sei nzvimbo kubva pamazita

Iye zvino, unogona kushandisa nzira dzakasiyana-siyana kuita kuti aya mazita arege kuva dambudziko zvachose. Kana iwe uine nhamba huru yemazita ane nzvimbo, hazvina musoro kuti uzviite rimwe nerimwe, asi unogona kuitisa mabasa aya bvisa kana kutsiva nzvimbo:

  • Shandisa rename rairo kwayo. Semuenzaniso, wekutanga wemirairo iyi unobvisa nzvimbo kubva kune ese .txt mafaera, nepo wechipiri ichibvisa nzvimbo kubva kumafaira ese ari mukati medhairekitori razvino:

renamezve 's/\s/_/g' ./*.txt
renamedzazve 's/\s/_/g' ./*.*

  • Shandisa find kutsiva ese mazita ane nzvimbo, achiatsiva ne _. Semuyenzaniso, ita ne .txt yese yedhairekitori razvino kana yeFS yese:
find . -type f -name "* *.txt" -exec bash -c 'mv "$0" "${0// /_}"' {} \;

**find / -type f -name "* *.txt" -exec bash -c 'mv "$0" "${0// /_}"' {} \;

**Chenjerera murairo wechipiri! Unogona kushandura mazita anoshandiswa nemamwe mapurogiramu uye woita kuti amire kushanda.

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

Iva wekutanga kutaura

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