When I run ls -1 filename, it just lists the filename, instead of permissions with filename. However, according to online resources, the output should also have permissions details of the file. I used stat and that worked.
Asked
Active
Viewed 586 times
0
1 Answers
3
-1 is a parameter to ls command that tells the command to list only filenames, one file per line (by default ls with no parameter lists as many filenames in a line as will fit in line width). So your command does exactly what it should.
If you want to list permissions and other data about files, you should use -l (for long), not -1.
raj
- 11,409