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

Category: Linuxa) ls -l-s b) cat file1, file2 c) ls – s Factdir
Editor">Editor Staff asked 2 years 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">Editor Staff answered 2 years 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