- No.
- 3
- Date
- Learning goal
- Terminal Start, lesson 2
- Level
- 1 of 3
Command of the day No. 3: ls -lh
Purpose: Shows file sizes in K, M and G.
Syntax: ls -lh [folder]
Example:
ls -lh Downloads
total 2.4M
-rw-r--r-- 1 lerner lerner 2.2M Oct 8 16:00 manual.pdf
-rw-r--r-- 1 lerner lerner 147K Oct 15 20:00 photo.jpg
-rwxr-xr-x 1 lerner lerner 26 Oct 12 09:00 setup.sh Output from the simulator, as on a real Linux.
Options:
Try it in the terminal Share image
Fills in the command. Nothing runs until you press Enter.