Forrest logo
back to the ls tool

ls:tldr:5f7f4

ls: List all files, with trailing `/` added to directory names.
$ ls -F
try on your machine

The command "ls -F" is used in the command line to list the files and directories present in the current directory.

Here's what each part of the command does:

  • "ls" stands for "list," and it is a command used to display the files and directories.
  • "-F" is an option or flag that is passed to the "ls" command. In this case, it adds a classification symbol to each entry in the listing.
    • Files are displayed without any additional symbols.
    • Directories are displayed with a trailing slash (/) at the end.
    • Executable files are displayed with an asterisk (*) at the end.
    • Symbolic links are displayed with an at sign (@) at the end.
    • Other special file types may also have additional symbols according to the system configuration.

So, when you run the command "ls -F" in the command line, you will get a list of files and directories in the current directory with classification symbols denoting their types.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the ls tool