So I want to create an alias called changeAllPermisions that accepts one parameter argument in such a way that when
changeAllPermissions argument is called , both Group and Other do not have access to read, write or execute argument. If argument is a directory, then the permissions will be changed to argument as well as everything inside recursively.
Here is what I know
I know how to create an alias, for example
I also know how to list files recursively
To change the permissions as stated by my problem, I would do
But I´m having a hard time putting all this together.
Any help is appreciated.