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 2

Posted at

概要

Task3

Q2.What directional arrow key would we use to navigate down the manual page?

A.down

Q3.What flag would we use to display the output in a "human-readable" way?

human-readableなどの文字列でmanコマンドの結果を抽出すると分かる。

$ man ls | grep "human-readable"
       -h, --human-readable

A.-h

Task4

Q1.How would you create the file named "newnote"?

Hint.Look at the answer formatting - we're not expecting quotation marks for this

A.touch newnote

Q2.On the deployable machine, what is the file type of "unknown1" in "tryhackme's" home directory?

fileコマンドで対象のファイルを確認します。

$ file unknown1 
unknown1: ASCII text

A.ASCII text

Q3.How would we move the file "myfile" to the directory "myfolder"

A.mv myfile myfolder

Q4.What are the contents of this file?

catコマンドで対象ファイルの中身を確認します。

$ cat ./myfolder/myfile 
THM{FILESYSTEM}

A.THM{FILESYSTEM}

Task5

Q1.On the deployable machine, who is the owner of "important"?

ls -lコマンドを使用し対象ファイルのオーナーを確認します。

$ ls -l
total 12
-rw-r--r-- 1 user2     user2       14 May  5  2021 important
drwxr-xr-x 2 tryhackme tryhackme 4096 Apr 15 13:08 myfolder
-rw-r--r-- 1 tryhackme tryhackme   17 May  4  2021 unknown1

A.user2

Q2.What would the command be to switch to the user "user2"?

A.su user2

Q4.Output the contents of "important", what is the flag?

su user2コマンドを使用しuser2にユーザー変更後、catコマンドを使用し対象ファイルの内容を確認します。

$ cat ./important 
THM{SU_USER2}

A.THM{SU_USER2}

Task6

Q2.What is the directory path that would we expect logs to be stored in?

A./var/log

Q3.What root directory is similar to how RAM on a computer works?

Hint.The contents of this root directory do not persist after reboot

A./tmp

Q4.Name the home directory of the root user

A./root

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?