I think this course really needs reviewing/updating. Here is a link to the specific lesson I am having trouble with: https://www.codecademy.com/courses/learn-the-command-line/lessons/command-line-manipulation/exercises/ls-combining-options-command-line-manipulation
Firstly, can someone please explain where the link count figure comes from? It includes the current directory and parent directory I know, but the explanation given in the lesson states “ This number counts the number of child directories and files. This number includes the parent directory link (
.. ) and current directory link (
. ). ” This seems like a very poor explanation after reading through some of the forums. I’ve seen so much conflicting information - it doesn’t include directories, then some people saying it does. What does link count actually count/how is it derived and does it include hidden files/hidden directories? I really don’t understand it. If you look at the image below of the file tree structure that is provided in the lesson and the output of the ls -l and ls -al commands you’ll see the discrepancy that I’m talking about:
I don’t see how action has a link count of 4 - we have the parent directory, the directory itself, the two child directories, then two files so surely it’s 6. What’s more is that if we change directory to the action directory and then use the ls -al command we see that there are some more files than just the two text files displayed in the image of the file tree structure provided by Codecademy.
Secondly, as you progress from slide 1 to 10 throughout the lesson it says ‘We are now working in the movies directory’ when you’re actualy in some child directory from the previous slide - please say someone else has noticed this too and it’s a bug/error everyone else will be experiencing.
Finally, is ‘folder’ synonymous with ‘directory’? They seem very similar? If not, how are they different?