0

I am very new to linux. While practicing the file management commands I have found that 'ls' and 'ls -l' gives 2 different outputs but they appears to be related to each other.

enter image description here

The content of the file hello.sh is echo "Hello world"

can anyone explain what does 'ls -l' gives as output.

Turing101
  • 143
  • Please don't post screenshots of text. Instead copy & paste the text here and use code formatting. – pomsky Mar 10 '20 at 05:50
  • 1
    -l ~= long or "-l use a long listing format" as can be read with man ls which will show you the reference manual page for ls. man allows you to search... – guiverc Mar 10 '20 at 05:54
  • 2
    Type man ls. It will tell you all about ls. – cup Mar 10 '20 at 05:55
  • @pomsky The link that u have provided states that--> "As mentioned earlier -l will show the entries as a long list along with various attributes" but in the directory first-dir I have only 1 file named hello.sh. So why is it showing 'total-4'? – Turing101 Mar 10 '20 at 05:59
  • Refer to this: https://askubuntu.com/q/810563/480481 – pomsky Mar 10 '20 at 06:06

0 Answers0