Skip to main content

CRAZY THINGS YOU CAN DO WITH LINUX LIST COMMAND





The Linux operating system is a very interesting and powerful operating system there are many amazing things that can be done more faster with just simple three to two command then adding different command option makes it amazing feels like you got some super powers.Lets us drive into it now .

                            ls
 The  list command has many command options 
1.  ls -a := The   -a  option added on the ls command means list all hidden files on the working environment. Normally Linux doesn't show files  that starts with •(dot)  so with this option we are able to see all the hidden files that has dot.
The long format is ls --all  .  

2. ls -A := The -A option means list almost all, this list all the files that starts with a dot while the -a option lists every single file. 
The long format is ls --almost-all. 

3. ls -s  :=  This -s  makes the list to display files base on the file size 
The long format ls --size. 

4. ls -r  := This -r will display list in reverse order. 

5. ls -S := The -S makes list  to display files and directories in a sorted manner. From the largest to the smallest. 

6. ls -d := This will list only directories 

7.  ls -t := This will list files by time created starting from  the last ones. 

8. ls -l := This will show file permissions, user group, file ownership and time. 

You can search the man page for more. 
we will like to hear from you on the comment 
Am I very passionate young man who believes that he can change the world with God and Technology

Comments