Yadda ake canza mai babban fayil a Linux

babban fayil na mai shi

Lokacin da tsarin da masu amfani da yawa ke amfani da su, ko kuma mai amfani ɗaya amma kana buƙatar canza kundin adireshi, kamar asusun wasu shirye-shirye, da sauransu, to ya kamata ka sani. yadda ake canza mai babban fayil a Linux. Akwai hanyoyi da yawa don yin shi, kamar yadda zan bayyana muku a cikin wannan ɗan gajeren koyawa, kuma za ku iya bi ta mataki-mataki don sauƙaƙawa sosai, koda kuwa kun kasance farkon a cikin duniyar Linux. Kamar yadda kake gani, ba shi da wahala sosai.

Don yin wannan aikin kuna buƙatar gata, don haka dole ne ku aiwatar da waɗannan umarni ta hanyar prepending sudo ko zama tushen, kamar yadda kuka fi so. To, bayan an faɗi haka, bari mu yi amfani da umarnin yanke, wanda ya fito daga mai canjin, kuma ana amfani dashi daidai don canza ƙungiya ko mai kowane fayil ko babban fayil. Babban ma'anar wannan umarni shine kamar haka:

chown [zaɓi] mai amfani[: rukuni] /file

Wato dole ne ka ƙara zaɓuɓɓukan da kake buƙata, maye gurbin mai amfani da sunan mai amfani (zaka iya amfani da ID ɗin mai amfani idan ka ga dama) wanda kake son sanya shi, sannan sai colon da sabon rukuni (ko da yake wannan shine). na zaɓi ne ) kuma a ƙarshe nuna fayil ko kundin adireshi da kuke son canza ikon mallakar. Mu gani misali mai amfani na amfani. Ka yi tunanin cewa kana da directory mai suna /home/manolito/test/ wanda kake son canjawa daga mai amfani da manolito zuwa mai suna agus. A wannan yanayin, zai zama mai sauƙi kamar gudanar da wannan umarni:

sudo chown agus /home/manolito/prueba/

Zai zama mai sauƙi haka. Kuma idan kuna son ya zama mai maimaitawa, ta yadda ya shafi kundin adireshi kuma, to zaku iya amfani da zaɓin -R tsakanin chown da agus a cikin wannan yanayin. Misali, zai zama wani abu kamar haka:

sudo chown -R agus /home/manolito/prueba/

Kamar yadda kuke gani, yana da sauƙi a canza masu mallakar kundin adireshi ko kowane fayil ɗin tsarin tare da wannan umarnin.


Abubuwan da ke cikin labarin suna bin ka'idodinmu na ka'idojin edita. Don yin rahoton kuskure danna a nan.

Kasance na farko don yin sharhi

Bar tsokaci

Your email address ba za a buga. Bukata filayen suna alama da *

*

*

  1. Mai alhakin bayanan: Miguel Ángel Gatón
  2. Dalilin bayanan: Gudanar da SPAM, gudanar da sharhi.
  3. Halacci: Yarda da yarda
  4. Sadarwar bayanan: Ba za a sanar da wasu bayanan ga wasu kamfanoni ba sai ta hanyar wajibcin doka.
  5. Ajiye bayanai: Bayanin yanar gizo wanda Occentus Networks (EU) suka dauki nauyi
  6. Hakkoki: A kowane lokaci zaka iyakance, dawo da share bayanan ka.