5.4 Listing Directory Contents
5.4.4 Displaying a long listing

The previous versions of the ls command displayed only the names of directories and files in a wide format (across the screen). The ls command can be used with the -l (long) option to see more detailed information on each file or directory. The ls -l option will also distinguish between files and directories. Note that the -l option is a lower case letter L. 

The ls -l command provides the file information shown in the Figure . By default, the ls command lists files in alphabetic order. Using -t (time) option will list files with the most recently modified at the top of the list. To get a detailed (long) listing of files sorted by time (most recent at the top) use the ls -lt command. 

Interactive Media Activity (Flash, 95 kB)
  Displaying a Long Listing

In this media activity, you are logged in as user2 and your current working directory is: /home/user2/dir2. Refer to the Class File Tree Structure by clicking the 'tree' button located on the Menu Bar and type the commands that would accomplish the requested objectives. 
Note: Be sure to press enter after each one. Click on step 1 to begin.