1.

Briefly define ls command and options?

Answer»

This is one of the most basic and useful commands. This command (“ls”) is used by a normal user or system administrator on a regular BASIS. This command is used to list down files and directories in the present working directory. 

“ls” Command comes up with multiple options:-

  • l This option will SHOW file & directory permissions in rwxrwxrwx format for user, group & others
  • This option allows you to view hidden & system files
  • i This option gives you inode details of files
  • s Helps you to list down file size

“ls” without any options will list down all files & directories in plain text. This command gives more desired outputs after clubbing it with grep & LESS command that allows your filter the list or highlights the required file. This command is ALSO compatible with input-output redirection option which is very helpful for logging.



Discussion

No Comment Found