Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 745 Bytes

040-linux-basics-3.md

File metadata and controls

30 lines (18 loc) · 745 Bytes

40 - Linux Basics 3

Written by Michael Zhang

Problem

Ok, so now you know how to list files and read files... this is starting to sound more like a file manager you are familiar with, right? So what's left now? Searching.

Luckily, there's also a command for that: grep. You know the drill, read up on the command, and then solve the problem in /problems/grep.

The flag is the filename of the file containing the string yep!. All other files will contain the string nope!.

Hint

What character stands for "all files"?

Solution

login as: user37142
[email protected]'s password:

user37142@easyctf:~$ cd /problems/grep
user37142@easyctf:/problems/grep$ grep "yep!" *
27054997:yep!

Flag

27054997