Chown with folder/file name
Example you have a folder or file name at /homeabdillah fauzan kjbi rosmaniar
adbis fehmeed kji sekretariat
admin fikri kmk sekretariatpd1
admniaga grafika kopma sekretariatpd2
agah gretha ksa sekretariatpd3
agung hani ksm sekretariatpd4
and then you want that folder/file get owner same as folder/file name.
Try this:
- cd /home
- Type at terminal:
for file in *; do
chown -R $file'.pnj' $file;
done - Finish :-)
0 comments:
You can post comment with english language or indonesia language.
Anda bisa memberikan komentar dalam bahasa inggris atau bahasa indonesia.