”ls
”ls
”ls
”ls
Answer is Right!
Answer is Wrong!
The correct answer is: A. ls -l *.lst
The ls command lists the contents of a directory. The -l option tells ls to list the files in long format, which includes the file name, permissions, owner, group, size, and modification time. The *.lst pattern matches all files with the extension .lst.
The other options are incorrect for the following reasons:
- Option B,
ls lst*, would list all files whose name starts withlst. - Option C,
ls *.*, would list all files in the current directory, including hidden files. - Option D,
ls *[lst], would list all files whose name contains the characterlfollowed by the characters.
I hope this explanation is helpful! Let me know if you have any other questions.