| Linux | Security | Debian | Slax | Tiny Core | Health |
|
If a Computer Won't Start from a CD, DVD or USB Drive List the Contents of a Directory Mount an ISO Image Without Writing it to a CD or DVD |
LinuxList the Contents of a DirectoryFile ManagerYou can see the contents of a directory using the file manager. TerminalWhen working in the terminal, you may want to list the contents of a directory using the terminal. Following is how to do this. List the Contents of a DirectoryTo list the contents of a directory, type:
ls stands for list. For more details, type:
-l stands for long. Understand the OutputAfter typing "ls -l" you will see something like this:
TotalAt the top you will see "total" followed by a number. This shows how many blocks are contained in this directory (there are normally 1024 bytes per block). 1st ColumnThe first letter in the first column shows the type of file. It may be: - file d directory l link The following letters in the first column show Permissions. 2nd ColumnShows how many hard links there are for this file. 3rd ColumnShows the owner of the file. 4th ColumnShows the group to which the file belongs. 5th ColumnShows the file size in bytes. For directories, it shows the size of the directory, not its contents. 6th ColumnShows the date and time the file was last modified. 7th ColumnShows the file name. Hidden FilesTo view hidden files type:
In Linux, hidden filenames start with a "." You can combine -l and -a, and use:
or
More InformationFor more information and other options, open the terminal and type:
for the manual, or
for help. © Copyright Guy Shipard 2008 - 2009 |