List all files in a directory linux

    linux command show directory
    linux command show directory tree
    linux command show directory size
    linux command show directory path
  • Linux command show directory
  • Linux list directories only

  • Linux list directories only
  • List all files in a directory and subdirectory linux
  • Linux list files
  • Ls command in linux
  • Linux commands
  • Linux list files!

    How to list the directory content in Linux?


    In the Linux operating system, there are two commands available to list the directory contents.

    • ls (list) command
    • dir (directory) command

    Listing the contents of the file using ls command.

    ls (list) – the ls command is used to list the directory contents in the Linux system.

    By default, the ls command displays the content of the current directory. The ls command is also available in EFI (Extensible Firmware Interface) shell.

    Syntax

    The general syntax of the ls command is as follow −

    $ ls [OPTION]...

    [FILE]...

    Brief description of option available in the ls command.

    Sr.No.Option & Description
    1-a, --all
    Display all files including hidden files
    2--author
    Display author of each file with -l option
    3-B, --ignore-backups
    Do not display backup file
    4-d, --directory
    List only directories, not their contents
    5-l
    Display long listing format
    6-N, --literal
    Display entry names without quoting
    7-R, --recursive
    Display subdirectories recursively
    8-x 

      linux command find directory
      linux terminal show directory tree