Listing files and folders within a given folder is one of the easiest and simplest SSH commands. Of course, we shall begin by logging in to the server using SSH.
To list files and folders within the current directory one is operating in, simply enter the following command in your SSH window followed by the Enter key.
To list files and folders within any given folder or directory, simply use the following command:
For example, to list files and folders in the directory
/home/coconut, use the command: