providing linux permission to range of files

Hi all i am working with some practice for linux file permissions. First of all i am confused if chmod is used differently for directory permissions and file permissions.(syntax) 2) i have a direcoty /logistics which has 5 files as log1, log2, log3, log4, log5 I am owner of the dirctory and i am trying to give following permissions chmod 771 to directory /logistic and chmod 660 to all 5 files in it. my question is that is there any way to give file permission at once in single line rather than doing it 1 by 1 for all 5 files.

i mean something like this chmod 660 /logistic/log[1-5] or chmod 660 /logistic/log*

help appriciated



Read more here: https://stackoverflow.com/questions/64397314/providing-linux-permission-to-range-of-files

Content Attribution

This content was originally published by Taranjeet Singh at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: