Unix Tutorial

Listing Directories 2

Now you probably want to know what’s in the directory you’re currently in. To find this out, you use “ls,” for which there are a number of things you can add to see more detailed results. This will show you a list of all unhidden directories and files in the current directory.

ls

ls –l will show you a list with directory and file details

ls -l

ls –a will show you a list with hidden files

ls -a
Previous Home Next