Knowledge Hub
NIS - Linux Part I
TryHackMe28 answered prompts
NIS - Linux Part I TryHackMe walkthrough with 28 answered prompts and lab methodology notes.
Prompts and answers
-
What is the user you are logged in to in the first room of Linux Fundamentals Part 1?
tryhackme
-
What badge do you receive when you complete all the Linux Fundamentals rooms?
cat linux.txt
-
How do you run the ls command?
ls
-
How do you run the ls command to show all the files inside the folder?
ls -a
-
How do you run the ls command to not show the current directory and the previous directory in the output? (almost everything)
ls -A
-
How do you show the information in a long listing format using ls?
ls -l
-
How do you show the size in readable format? e.g. k, Mb, etc
ls -h
-
How do you do a recursive ls?
ls --recursive
-
How many files did you locate in the home folder of the user?(non-hidden and not inside other folders)
13
-
What is the content of cat.txt?
THM{11aadbee391acdffee901}
-
What is the content of tac.txt?
THM{acab0111aaa687912139}
-
What is the content of head.txt?
THM{894abac55f7962abc166}
-
What is the content of tail.txt?
THM{1689acafdd20751acff6}
-
What is the content of the xxd.txt?
THM{fac1aab210d6e4410acd}
-
What is the content of base64.txt?
THM{aa462c1b2d44801c0a31}
-
How many .txt files did you find in the current folder?
8
-
How many SUID files have you found inside the home folder?
0
-
How many times does the word "hacker" appear in the grep files? (including variations)
15
-
Is the user allowed to run the above command? (Yay/Nay)
Nay
-
What command would you use to echo the word "Hackerman" ?
echo "Hackerman"
-
How would you read all files with extension .bak using xargs?
find / -name *.bak -type f -print | xargs /bin/cat
-
How would you grab the headers silently of https://tryhackme.com but grepping only the HTTP status code?
curl -I -s https://tryhackme.com | grep HTTP
-
What command would you run to get the flag.txt from https://tryhackme.com/ ?
wget https://tryhackme.com/flag.txt
-
What command would you run to download recursively up to level 5 from https://tryhackme.com ?
wget -r -l 10 https://tryhackme.com
-
What is the flag from the tar file?
THM{C0FFE1337101}
-
What is the content of gzip.txt?
THM{0AFDECC951A}
-
What is the flag inside the 7zip file?
THM{526accdf94}
-
What is the content of binwalk.txt?
THM{af5548a12bc2de}