I have accidentally changed the permission of a file now I want that file to back to the last permission state but how to do this?
Is there any procedure or tool or any command line script which keep tracks of all permission list of a specific folder
OR
We can see the numeric permission on context menu and also to set back to it's last permission?
Please suggest how to do it.
update
I know the alternative and basic approach: check the permission first and then set back.
There's no such thing as "I messed up, go back to last state".
You either need to know the permissions the file / directory had before or look up that information somewhere. If you don't have access to that information, you're out of luck.
Always make backups!