What, if anything, is wrong with each of the following commands? a) ls -l-s b) cat file1, file2 c) ls – s Factdir

Answers:

a) there should be space between the 2 options: ls -l -s


b) do not use commas to separate arguments: cat file1 file2


c) there should be no space between hyphen and option label: ls –s Factdir

Category: Linux Interview Questions.