If ls lists the content of the current directory, is there a similar command that list the content of a non current directory, without using cd?
The syntax for
For what I'm calling
But when you give a directory name to
So, to list the contents of
If you give a relative path for the directory--that is, one that doesn't start with a
As a side note, sometimes you might find you don't want to list the contents of a directory, but just list the directory the same as a file would be listed. To do this, you can pass the