The password for the next level is stored in a file called – located in the home directory
Commands you may need to solve this level
ls, cd, cat, file, du, find
Helpful Reading Material
Level 2 seems to be the exact same process as level 1 but instead of ‘readme’ it’s ‘-‘. Let’s try viewing everything in the directory with the ‘ls’ command.
Yep! The file named ‘-‘ is the only one in the directory. Now I’ll try opening it with ‘cat’.
bandit1@bandit:~$ cat -
It doesn’t work. If I press the Enter key, it will keep line breaking. Ok, Ctrl-C to end that command. Time to investigate how to open a file with a hyphen in the name. Using the recommended reading on the instructions page, I’ve found that typing the file path will help.
bandit1@bandit:~$ cat ./-
Tada! Don’t forget to logout!