Below is a list of useful Linux commands
There are several ways in which directories in the current path can be displayed:
Using ls with -l to print directories: $ ls -l */
Using ls -F with grep : $ ls -F | grep "/$"
Using ls -l with grep : $ ls -l | grep "^d"
Using ls -F with grep : $ ls -F | grep "/$"
Using ls -l with grep : $ ls -l | grep "^d"
Make a hidden directory
mkdir .dirname - add a period in front of the name
List hidden directories
ls -a
Show directory size:
du -sk to show the size in kilobytes
du -sh to show the size in more human-friendly format