I was trying to write a script which will be able to perform some build-in command ,such as : cp, rm, ls or whatever. The menu might be like this:
- list the current directory
- Rename a file
- Remove a file
- exit
when you executed that some commands like "ls -la $currentdirectory" which will show almost all the information of the current directory.
缩略语:如果用户没有许可,(用户没有批准该名录的“最低生活标准”。
what command can check the permission? How to produce an error message if that user does not have the permission? Cheers hope to get that answer.