Linux ls Command Maker Tool

To display file, directories (folders), and subdirectories, use the Linux ls command tool below.

Only choose the options below that are required (read the purpose with each option).

Bookmark for future use!

Options/Flags
Display all files, including hidden files.
Excludes . and .. from the list.
Display detailed information.
Display sizes in KB, MB, GB.
List contents of subdirectories recursively.
Display directories as plain files.
Reverse the order of the output.
Sort files by modification time, newest first.
Sort files by size, largest first.
Display one file per line.
List files separated by commas.
Append / to directory names.
Append indicators (e.g., / for directories).
Highlight files with different colors.
Display the inode number for each file.
Display numeric user and group IDs.
Long format without group information.
Long format without owner information.
List directories before files.
Sort files by version numbers.
Sort files alphabetically by extension.
Display SELinux security context.
Follow symbolic links listed on the command line.
Display full timestamps.
Display file sizes in kilobytes.
File/Directory
Example: /home/user/Documents
Generated Command
ls
Instructions

Use this tool to generate ls commands easily:

  • Select options/flags using checkboxes.
  • Enter the file/directory path manually.
  • Copy the generated command and use it in your terminal.