ls command - List current directory files
Default ls command without flags
Input:
Output:
Including hidden starting with .
Input:
Output:
hidden files except "." (current dir) and ".." (previous dir)
Input:
Output:
Long list format
- Shows file type, permissions, "amount of hard links", owner, group, size(bytes), date, file.
Input:
Output:
drwxr-xr-x 3 alex alex 4096 Feb 18 21:39 DEMO_DIR
-rw-r--r-- 1 alex alex 7130 Feb 19 03:12 demo_file
Combination of flags
-l: Long list-A: All files (incl hidden) except implied . and ..-t: Sort by time, newest first.-h: Human readable format (size in kb)
Input:
Output: