ls command and options

This is episode 1 of my “Kickstart Linux command line” tutorial.

ls list names of all items in the working directory
ls -l list names of all items in the working directory,
more details one item per row
ls -lp list names of all items in the working directory,
more details one item per row,
add a trailing slash to directory names
ls -lph list names of all items in the working directory,
more details one item per row,
add a trailing slash to directory names,
make file sizes human readable
ls -alph list names of all items in the working directory,
more details one item per row,
add a trailing slash to directory names,
make file sizes human readable,
also display hidden and system files
ls -lrt list names of all items in the working directory,
more details one item per row,
reverse
ordered,
ordered by modification time

 

(174 Posts)

20 years of coding and working as software engineer but I am still eager to learn more. I am very passionate when it comes to open source, Linux and Java. But I made my peace with Windows long ago to fully enjoy my PC gaming hobby. I have a soft spot for 90s electronic music and Babylon 5. In the evenings you will find me roaming the endless space in Warframe (IGN k05h).