Chmod 777 to a folder and all contents

In this tutorial I will show you how to use the chmod command to change the folder and all contents inside the folder permission to 777.

Chmod 777 to a folder and all contents

Chmod 777 permission - Chmod 777 to a folder and all contents

In this tutorial I am going to show you the use of the chmod command for changing the folder, subfolders and all files inside the folder permission to 777. The chmod command is used to manage files and folder permissions in Linux. This command allows the admin/users to add/update permissions to files and folders.

Chmod 777 command

What is the chmod command in Linux?

The chmod is a command that comes by default with the Linux operating system. This util is used to change the access permission of files and folders.

Syntax:

chmod [options] directory or file

This utility can be used to change the access permission of a file or group of files, it can also be used to change the access permission of a directories.

How to Chmod 777 to a folder and all contents?

Suppose you have a directory called data and inside the data directory there are many directories. Each directory might contain many files and many sub-directories. So, in this case you want to give 777 permission to all all the files and directories under the data directory.

For this you can run following command in the terminal:

> chmod 777 -R data

Or

> chmod 777 -R ./

Here -R is for recursive, you can also use ?--recursive?.

Above command is very powerful and it gives 777 access permission to all the files and subdirectories under the data directory.

The chmod command is a very handy command in the hands of the Linux users and admin to manage the files/directories permissions as per business requirements. This command can be executed in the terminal.
If you are in some other directory you can provide a full path in the chmod command. Here is example:

> chmod 777 -R /home/myuser/data

Above command will change the permission of /home/myuser/data directory to 777 recursively. There are many ways people are using this command for managing their file permissions in the Linux operating system.

Linux tutorials:

Linux is very popular operating system for running server-side applications and also used as popular desktop in the enterprises. You can find many tutorials at Linux Tutorials section.

Tutorials

  1. Beginner Guide to Linux Server
  2. Beginner Guide to Linux Server
  3. Roseindia.net Place to Get Cheap Linux cds in India!!
  4. RoseIndia.net Is Your On-Line Linux & xBSD CD Distribution Source
  5. RoseIndia.net Is Your On-Line Linux & xBSD CD Distribution Source
  6. We are providing Downloadable Version of Dyne:bolic 1.3 Linux
  7. We are providing Fedora Cord 2 Linux CD's .
  8. Buy Fedora Core 3 Linux CD's in India.
  9. Buy Fedora Core 3 Test 1 Linux CD's in India.
  10. We are providing Linux CD's for free.
  11. Free Linux Distribution in India
  12. We are providing Free BSD 5.3 CD's
  13. We are providing Downloadable Version of Gentoo Linux
  14. Linux Tutorials
  15. We are providing Downloadable Version of K12LTSP Linux
  16. We are providing Downloadable Version of K12LTSP Linux
  17. We are providing Knoppix 3.4 Live Linux CD's
  18. We are providing Knoppix 3.6 Live Linux CD's
  19. We are providing Knoppix 3.7 Live Linux CD's
  20. We are providing Linux CD's for free.
  21. Buy KANOTIX BUG HUNTER 09-2004-A Live CDs in India from us. KANOTIX BUG HUNTER 09-2004-A Live is available with us.
  22. We are providing Downloadable Version of Mandrake 10.1 Community Edition Linux CD's.
  23. We are providing Downloadable Version of Mandrake 10.1 Official Edition Linux CD's.
  24. We are providing Downloadable Version of Mandrake 10.1 Power Pack Linux CD's.
  25. We are providing Linux CD's for free.
  26. We are providing Linux CD's for free.
  27. We are providing Downloadable Version of Mandrake Move Linux
  28. We are providing Downloadable Version of Mandrake Official 10 Linux CD's.
  29. TheOpenCD is a collection of high quality Free and Open Source Software
  30. Buy Peanut 9.6 Linux in India from us. Peanut 9.6 distribution is available in India.
  31. We are providing Linux CD's for free.
  32. Buy Slackware 10.0 in India from us. Slackware 10.0 is available with us.
  33. We are providing Downloadable Version of Slackware 9.1 Linux CD's.
  34. Buy SuSe 9.1 Live CDs in India from us. Suse 9.1 Live is available with us.
  35. Buy SuSe 9.1 Personal CDs in India from us. Suse 9.1 Personal is available with us.
  36. Buy SuSe 9.2 Live CDs in India from us. Suse 9.2 Live is available with us.
  37. Buy SuSe 9.2 Professional CDs in India from us. SuSe 9.2 Professional is available with us.
  38. Buy SuSe 9.1 Professional CDs in India from us. Suse 9.1 Professional is available with us.
  39. Buy Xandros 2.01 OCE in India from us.Xandros 2.01 OCE is available in India at cheapest rate.
  40. The Beginners Linux Guide