DEV Community

kalokli8
kalokli8

Posted on

What is drwx when using ls -la

Display the content of a folder including hidden files and additional information using this command:

ls -la ~/.ssh

  • Note: l stands for long, it will display additional information about the files and directories
  • Note: a stands for all, it will display hidden files as well

~/.ssh: find .ssh folder in root directory

The terminal shows:
drwx--xr-x 1 user staff 3389 10 Apr 11:11 id_rsa

It is about file permissions on unix/linux/whatever on the net.
The first character tells you if it is a directory (marked as ‚d‘), then you continue in groups of three for read (‚r‘), write (‚w’) and execute (‚x’) permissions for the owning user, group and everyone else.

Top comments (0)