a) ls -l-s b) cat file1, file2 c) ls – s Factdir

DWQA QuestionsCategory: Linuxa) ls -l-s b) cat file1, file2 c) ls – s Factdir
Editor Staff asked 11 months ago

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

1 Answers
Editor Staff answered 11 months ago

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