What is `ls -l` used for?

QuestionsQuestions8 SkillsProDec, 10 2025
084

Hi there!

The ls -l command is used for a "long" format listing of directory contents.

When you use ls -l, you get much more detailed information about each file and directory compared to just ls. This includes:

  • File permissions: Who can read, write, or execute the file.
  • Number of hard links: How many hard links point to the file.
  • Owner: The user who owns the file.
  • Group: The group that owns the file.
  • Size: The size of the file in bytes.
  • Modification date and time: When the file was last modified.
  • File name: The name of the file or directory.

It's very useful for getting a comprehensive overview of your files!

Try running ls -l in your terminal now and observe the output. Let me know if you have any more questions!

0 Comments

no data
Be the first to share your comment!