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*