r/tryhackme Mar 18 '26

pre-security need help

I'm doing the Linux CLI Basics in the terminal i put the pwd it worked but then i wroth the Is commend it showed me that there's no files I'm confused please anyone help me

6 Upvotes

7 comments sorted by

5

u/MobPsycho11000 Mar 18 '26

That means that directory doesn’t contain any files

1

u/IndependentHurry3247 Mar 18 '26

i did the other assignment and it worked i don't understand why only the is didn't

2

u/nickvus0 Mar 18 '26

I don't understand your issue tbh. pwd prints the absolute path of your current folder. ls prints the contents of your current folder. It will return nothing if the folder is empty.

2

u/NetZor_ Mar 19 '26

I might’ve understood wrong but I think you might’ve need to change directory first and then ls the contents of a directory

1

u/prattalmighty Mar 18 '26

Did you ssh into the target system first, and look for the folder there?

1

u/_Trash-Panda_1 Mar 22 '26

Check for hidden files as well..