Skip to main content
CentOSRH124

Listing Files and Directories with the Command ls in CentOS 7

centos7As you are starting in Linux it is important to ensure that you look at all commands equally to build your knowledge and not leave any gaps that come back to haunt you later. So although the ls command may be thought of as simple there are some pretty cute tricks that can managed with the command such as sorting files but the last modified date.


We look at:

ls

ls -a (hidden files)

ls -l (long listing)

ls -lt (sort on last modified date)