3.2. Basic Linux Commands
3.2.1. ls
list storage/directory contents
List the files (including directories and links; they are files, too) in the path. The syntax is: ls [OPTION] [PATH]
chen_user@vm:~$ ls ### list the files in PRESENT directory
class pets public_html tests
chen_user@vm:~$ ls -l ### list with long (-l) format option
total 16
drwxrwxr-x 11 chen_user chen_user 4096 May 11 23:01 class
drwxrwxr-x 3 chen_user chen_user 4096 May 12 17:51 pets
drwxrwxr-x 2 chen_user chen_user 4096 May 11 18:37 public_html
drwxrwxr-x 2 chen_user chen_user 4096 May 14 23:12 tests
chen_user@vm:~$ ls class/ ### list the files in the class directory
a01 a01.tar.gz a02 a03 a04 a05 a06 a07 done done.sh h01 h01.tar.gz
chen_user@vm:~$