Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet110/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   106   107   108   109   110   111   112   113   ...   482
Bog'liq
Mastering Ubuntu Server Gain expertise in the art of deploying, configuring, managing, and troubleshooting Ubuntu Server by Jay LaCroix (z-lib.org)

[
 75 
]
While using 
-R
 with 
chmod
 can save you some time, it can also cause trouble if 
you have a mix of directories and files underneath the directory you're changing 
permissions on. The previous example gives permissions 
770
 to 
mydir
 and all of its 
contents. If there are files inside, they are now given executable permissions to the 
user and group, since 
7
 includes the execute bit (value of 
1
). This may not be what 
you want. We can use the 
find
 command to differentiate these. While 
find
 is out 
of the scope of this chapter, it should be relatively simple to see what the following 
commands are doing and how they may be useful:
find /path/to/dir/ -type f -exec chmod 644 {} \; 
find /path/to/dir/ -type d -exec chmod 755 {} \; 
Basically, in the first example, the 
find
 command
 is locating all files (
-type f
) in 
/path/
to/dir/
 and everything it finds, it executes 
chmod 644
 against. The second example is 
locating all directories in this same path and changing them all to permission 
755
. The 
find
 command isn't covered in detail here because it easily deserves a chapter of its 
own, but I'm including it here because hopefully these examples are useful and will be 
handy for you to include in your own list of useful commands.

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   106   107   108   109   110   111   112   113   ...   482




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish