문제설명


Level Goal
The password for the next level is stored in a file called spaces in this filename located in the home directory

Commands you may need to solve this level
ls, cd, cat, file, du, find


문제풀이

ls 명령어를 실행하면, spaces in this filename이라는 file이 나온다.
그냥 아무생각없이 cat spaces in this filename를 입력하게 되면 4개의 file을 인식해서 읽으려고 한다.

해결방법은 space를 문자열로 인식하게 만들어주는것.
나는 ""를 활용해서 문제를 해결했다.

참고로 파일이 한개뿐이라서 spa만 입력하면 tab을 치면 더 손쉽게 해결가능하다.

댓글남기기