Featured

Simple Linux Directory Commands

In this post we will introduce you to various Simple Linux Directory Commands
Simple Linux Directory Commands

1) chmod: 

Changing access permission for file and directory. chmod changes the permissions of given file according to mode, which can be either a symbolic representation of changes to make, or an octal number representing the bit pattern for the new permissions. It manages the mode of the file:
chmod has two mode:

a) Symbolic mode

  • u,g or o to represent owner, group and other respectively.
  • + or - to add or remove a permission
  • r, w and x to represent read, write and execute respectively.

b) Numeric mode

  • 0 represents ---
  • 1 represents --x
  • represents -w-
  • represents -wx
  • represents r--
  • represents r-x
  • represents rw-
  • represents rwx

$ chmod 777 file
$ ls -l
 


Answer is -rwxrwxrwx

midhruvjaink.xyz

Powered by Blogger.

The Linux Foundation

Copyright © The Linux Foundation | DatorLab | Developed By Dhruv Jain