
There are a variety of options available for the ls command. lets try some of them. The most useful option available with the ls command is the option 'l'. If we add this option to the ls command the output will be like this.

ls with the option 'l' gives complete information of the files/directories present in the current directory. The first column represents the permissions set of the file/directory.The second column represents the number of links available to the file. The third column represents the owner of the file.The fourth column represents the group to which the owner belongs to.The fifth column represents the size and the sixth column represents the modification date and the last one would be the file name. I guess the first column file permissions look a bit confusing. I will cover that in detail in the file permissions post Lets check another option available here. that is option 'a'. this will list all the files/directories including the hidden files. There are a lot more options available with ls. Try to check all the options by using the man command(man ls) and play around with those options.
0 comments:
Post a Comment