0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Walkthrough】TryHackMe:Linux Fundamentals Part 1

Posted at

概要

TryHackMe:Linux Fundamentals Part1のwalkthroughです。
このルームではLinuxの基礎を学習できます。

Task2

Q1.Research: What year was the first release of a Linux operating system?

A.1991

Task4

Q1.If we wanted to output the text "TryHackMe", what would our command be?

A.echo TryHackMe

Q2.What is the username of who you're logged in as on your deployed Linux machine?

whoamiコマンドから確認できます。

$ whoami
tryhackme

A.tryhackme

Task5

Q1.On the Linux machine that you deploy, how many folders are there?

lsコマンドでフォルダ数を確認します。

$ ls
access.log  folder1  folder2  folder3  folder4

A.4

Q2.Which directory contains a file?

Hint.We've discussed about a certain command that can be used to list contents of directories

lsコマンドでフォルダの中身を確認します。

tryhackme@linux1:~$ ls folder1
tryhackme@linux1:~$ ls folder2
tryhackme@linux1:~$ ls folder3
tryhackme@linux1:~$ ls folder4
note.txt

A.folder4

Q3.What is the contents of this file?

catコマンドでファイルの中身を表示します。

$ cat ./folder4/note.txt 
Hello World!

A.Hello World!

Q4.Use the cd command to navigate to this file and find out the new current working directory. What is the path?

cdコマンドでfolder4へ移動し、pwdコマンドでパスを表示します。

$ cd ./folder4
tryhackme@linux1:~/folder4$ pwd
/home/tryhackme/folder4

A./home/tryhackme/folder4

Task6

Q1.Use grep on "access.log" to find the flag that has a prefix of "THM". What is the flag?

Hint.grep "THM" access.log

grepコマンドを使用してTHMでマッチする文字列を探します。

$ grep "THM" access.log 
13.127.130.212 - - [04/May/2021:08:35:26 +0000] "GET THM{ACCESS} lang
=en HTTP/1.1" 404 360 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) 
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/53
7.36"

A.THM{ACCESS}

Task7

Q1.If we wanted to run a command in the background, what operator would we want to use?

A.&

Q2.If I wanted to replace the contents of a file named "passwords" with the word "password123", what would my command be?

Hint.echo <content> > <filename>

A.echo passwords > password123

Q3.Now if I wanted to add "tryhackme" to this file named "passwords" but also keep "passwords123", what would my command be

Hint.echo <content> >> <filename>

A.echo tryhackme >> passwords123

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?