Never used Linux before and trying to understand the difference between
ls
and
ls /
"ls /" gets all my dir (and more, but not .files - hidden files) as we can see it in this extensive list of commands.
What about the ls
?
ls is standing for listing directories and files under a directory.
In your situation, ls
(without a directory argument) is going to list directories and files under the current directory(pwd). The other command, ls /
is going to list files and directories under the root directory which is /
.