Using the -F flag with the command will add a / character at the end of every directory. EFI grub initramfs-linux-fallback.img initramfs-linux.img vmlinuz-linux
The output will now show the files and folders present in the directory name provided. To get the list of all the files present in the /boot directory: ls /boot bin dev home lib64 mnt proc run srv tmp varīoot etc lib lost+found opt root sbin sys usr Listing Files in a Specific Directoryįor listing files that belong to a different folder (not the current working directory), you will have to pass the directory path along with the command name. If you execute the aforementioned statement in your system's root directory, you will see an output that looks something like this. One of the most simple use of the command is to list all the files and folders in your current working directory.
The basic syntax of the ls command is: ls