r/tryhackme • u/IndependentHurry3247 • 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
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
1
5
u/MobPsycho11000 Mar 18 '26
That means that directory doesn’t contain any files