Ls
From DevOps Notebook
Linux sort files by size with ls
# ls -S -l # ls -l -S | sort -k 5 -n # sort top 5 largest files in reverse order # ls -l -S -h # sort by size in human readable format # ls -Slhr | grep -v '^d' # exclude directories from sort by size with ls
View access timestamp (atime), the modified timestamp (mtime), and the changed timestamp (ctime) with ls
# ls -l myfile.c # shows mtime # ls -lu myfile.c # shows atime # ls -lc myfile.c # shows ctime