Can you explain ls -F?

QuestionsQuestions8 SkillsProBasic Files OperationsOct, 04 2025
0149

The ls -F command appends a character to each file and directory name in the output to indicate its type. Here’s what the characters mean:

  • /: Indicates a directory.
  • *: Indicates an executable file.
  • @: Indicates a symbolic link.
  • |: Indicates a named pipe.
  • =: Indicates a socket.

Example:

When you run:

ls -F

You might see output like:

Documents/  script.sh*  link_to_file@

In this example:

  • Documents/ is a directory.
  • script.sh* is an executable file.
  • link_to_file@ is a symbolic link.

This option helps you quickly identify the types of files and directories in your listing. If you have more questions or need further clarification, feel free to ask!

0 Comments

no data
Be the first to share your comment!