Monday, July 4, 2016

Change permission of all the contents of a folder in Ubuntu


The method for changing the permission of specific file or folder was discussed in this post. However, if anyone is not allowed accessing multiple files or folder inside a folder then you might be trying the code for every single contents. That's just a waste of time in my opinion. Here's quick method of changing the permission of every contents of a folder:
  • Open the terminal: Ctrl+Alt+T
  • Change the directory by using the change directory command, 'cd' as:
    cd location/location/.../location
  • Type the following codes(here, foldername means the name of the folder whose contents are to be accessed):
    chmod -R 777 foldername
    
  • This will give you access to every contents of the folder.

No comments:

Post a Comment