Posts

Showing posts from November 12, 2018

Sorting and Listing Files, Directory in Linux - Basic commands

Image
    In this article we will be seeing how to sort Files and Directory in a Linux system. We will be doing with a single command ls and with different flags.     The  ls  command with no flag lists the files and directory on the current working directory. With  l  alone the directory will end with /. $ ls Listing the files and directories in Ascending order:     The default command itself list the files and directory in an ascending order, $ ls ljunix@ljunix:~$ ls 2.png Documents emoj.conf Games image1.jpg mozilla.pdf Pictures Templates test.sh Videos Desktop Downloads example.php host.txt image-nic.png Music snap Test.conf test.txt $ l ljunix@ljunix:~$ l 2.png Documents/ emoj.conf Games/ image1.jpg mozilla.pdf Pictures/ Templates/ test.sh Videos/ Desktop/ Downloads/ example.php host.txt image-nic.png Music/ snap/ Test.conf test.txt Listing hidden files:     Some files maybe hidden i

Blog Top Sites

Blog Log