Skip to main content

7.2) More Options


As another example, you can use various options with the ls command. For instance, if you want the list of files and directories to be listed as one column then use a -1 option, so type:

ls -1

Or if you want a complete listing of information about all the files in the current directory then you can use the -l (ā€˜lā€™ as in leg) option:

ls -l

An example listing is shown in the figure below. You can see all the files listed on the right hand side and next to it is the date of when they were created or last modified and in the next column the size of the file in bytes. I will discuss all the columns in detail later in the notes when I discuss permissions.

This shows an example of the long listing that is produced when then command ls -l is used.

We also note that options exist with almost all Unix commands.