Explore information related to permissions


mktemp Command in Linux - Explained with examples ?

This article covers how to use the mktemp command in Linux. In fact, mktemp can help to Create temporary files or directoriesin your Linux system.


Install Dokuwiki on Ubuntu 20.04 LTS

This article covers the process of installing Dokuwiki on your Ubuntu 20.04 LTS Focal Fossa system. In fact, DokuWiki is an open source wiki program written in PHP that doesn't require a database. It stores data in text files.


Check File Permissions with the "ls" Command on Linux Mint 20

This article covers the different ways to conveniently check the file permissions of all the files existing on your Linux Mint 20 system using the built-in "ls" command. In fact, ls command provides additional information about a file or folder, such as its access and ownership permissions.


Mkdir Command in Linux

This article covers how to use the mkdir command with some examples. In fact, The mkdir command in Linux/Unix allows users to create or make new directories. mkdir stands for "make directory". With mkdir, you can also set permissions, create multiple directories (folders) at once, and much more.


Linux Stat Command Examples

This article covers how to use the Linux stat command. Basically, The stat command gives important information about filesystems. stat command is a useful utility for viewing file or file system status. It retrieves information such as file type; access rights in octal and human-readable; SELinux security context string; time of file birth, last access, last data modification, last status change in both human-readable and in seconds since Epoch, and much more. Also, It has an option to specify a custom format instead of the default, for displaying information.


Chmod Command in Ubuntu 20.04 - How it Works ?

This article covers both the symbolic and numeric mode of the chmod command. Control who can access files, search directories, and run scripts using the Linux's chmod command. This command helps modifies Linux file permissions.

In Linux, who can do what to a file or directory is controlled through sets of permissions. There are three sets of permissions. One set for the owner of the file, another set for the members of the file's group, and a final set for everyone else.


To change directory permissions in Linux, use the following:

  • chmod +rwx filename to add permissions.
  • chmod -rwx directoryname to remove permissions.
  • chmod +x filename to allow executable permissions.
  • chmod -wx filename to take out write and executable permissions.



We can use the -l (long format) option to have ls list the file permissions for files and directories.

$ ls -l


chmod Numerical Shorthand:

  • 0: (000) No permission.
  • 1: (001) Execute permission.
  • 2: (010) Write permission.
  • 3: (011) Write and execute permissions.
  • 4: (100) Read permission.
  • 5: (101) Read and execute permissions.
  • 6: (110) Read and write permissions.
  • 7: (111) Read, write, and execute permissions.



For Linux Tutorials

We create Linux HowTos and Tutorials for Sys Admins. Visit us on LinuxAPT.com

Also for Tech related tips, Visit forum.outsourcepath.com or General Technical tips on www.outsourcepath.com