On Linux, files that start with “.” are hidden and are only shown with the -a option of ls.
The file “.” is a pointer to the current directory.
The file “..” is a pointer to the directory above (or earlier)
All directories contain the files “.” and “..”
File and directory names are case-sensitive The following ls options are very useful for programmers:
Use the “-lt” option to show the files in order of modification:
-rw-r—r— 1 ec2-user root 12598 jan 20 13:30 List.php The “-lS” option is useful for showing files in order of size:
-rw-r—r— 1 ec2-user root 6279 jan 20 13:47 SubForm.php The following command is also useful for making an inventory of the files. In this case, the file names are sent to the text editor Vi:
Another text editor can be used, such as nano:
Learn much more about Linux in our online course. You can register here. If you already have an account, or want to create one, just log in or create your user here.