Ls -p not working on my machine

screen link: https://app.dataquest.io/m/384/the-filesystem/3/inspecting-directories

Could somebody explain why “ls -p” is not working on my own machine?

1 Like
  • Either in your current working directory there are no files or directories or your cygwin isn’t well configured to run shell commands.
  • What about using changing directory or using ls -Al? That may show hidden files in long format.
1 Like

Please correct me if i am wrong, from your screen i can see that “ls -p” worked. “ls” listed the directories (augutus prize_winners tv veruca violet) while “-p” appended a slash to the end of “prize_winners” allowing us to tell directories from regular files apart. This we can see in “prize_winners/”

1 Like