Search code examples
linuxls

Can anyone please explain the output of ls -1 in Linux?


I was asked this question in one of the interviews. Can anyone please explain


Solution

  • ls -l shows all files or directories, with their respectives names, sizes, last date and hour of modification, and also all permitions for them.

    while ls -1 will list files each on separate line