Skip to content

Instantly share code, notes, and snippets.

@Monmoy042
Last active November 17, 2021 15:40
Show Gist options
  • Save Monmoy042/b1f949f734ac8a346fa8f28e5852bb3b to your computer and use it in GitHub Desktop.
Save Monmoy042/b1f949f734ac8a346fa8f28e5852bb3b to your computer and use it in GitHub Desktop.

File permission & ownership in Linux

File permission and ownership is very important in linux system.

Types of file/directory in Linux System

  1. (-) = regular file : text/js//html/css/any file
  2. (d) = directory : regular directory
  3. (l) = link file : ls -l /dev/stdin
  4. (b) = block devices : ls -l /dev/sda --> (CD/DVD/HDD/ISO/USB)
  5. (s) = socket : ls -l /sun/rpcbind.sock
  6. (p) = pipe file : ls -l /run/initctl
  7. (c) = character device : ls -l /dev/tty

Here, s - A socket file that is used to pass information between applications/process for communication purpose.
c - printer, sound card, virtual terminal, serial port, parallel port.
l - link file -->(softlink/symbolik link).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment