1.

What does the -S option do in ls command?(a) sorts according to modification time(b) sorts according to last access time(c) sorts according to file size(d) sorts according to inode numberI have been asked this question at a job interview.The doubt is from Listing Directory Contents: Is Command in chapter The File System of Unix

Answer»

The correct ANSWER is (c) sorts according to FILE size

Easiest EXPLANATION: ls -S sorts the FILENAMES according to the file size with largest size FIRST.



Discussion

No Comment Found

Related InterviewSolutions