Linux System Administration
Basic Commands
ls (Listing)
This command will show you the contents of a directory.
ls
--> will show you the contents of the current directory.
ls /dir/name
--> will show you the contents of a specified directory.
ls -l
--> will show you a
long
listing containing ownership, permissions, time last modified, and size.
ls -a
--> will show you
all
of the files in the directory, including those starting with a .
ls -al
--> What do you think?
[mlevan@localhost BasicCommands]$ ls -al
total 24
drwxrwxr-x 2 mlevan mlevan 4096 Apr 30 17:43 .
drwxr-xr-x 10 mlevan mlevan 4096 Apr 30 17:36 ..
-rw-rw-r-- 1 mlevan mlevan 1828 Apr 30 17:57 Basic_page1.html
-rwxr-xr-x 1 mlevan mlevan 4542 Apr 30 17:37 logo2.gif
-rw-rw-r-- 1 mlevan mlevan 1409 Apr 30 17:36 template.html
Note that . stands for the current directory and .. refers to the parent directory
Prev Page 1
Next