Module 2:Linux Fundamentals Part 1

Linux Fundamentals Part 1

Embark on the journey of learning the fundamentals of Linux. Learn to run some of the first essential commands on an interactive terminal.

TryHackMe | Linux Fundamentals (Pt1)

文章目录

  • [Linux Fundamentals Part 1](#Linux Fundamentals Part 1)
      • [Task 1 Introduction](#Task 1 Introduction)
      • [Task 2 Talking to Linux](#Task 2 Talking to Linux)
      • [Task 3 Finding Your Way Around](#Task 3 Finding Your Way Around)
      • [Task 4 Let the Machine Do the Searching](#Task 4 Let the Machine Do the Searching)
      • [Task 5 Shell Operators (Combining Commands)](#Task 5 Shell Operators (Combining Commands))

Task 1 Introduction

Task 2 Talking to Linux

You'll need to...

  1. Use the whoami command to see who you are on the system.
  2. Press the Enter key to run the command.
  3. Now, use echo to output the text TryHackMe.
python 复制代码
Answer the questions below
What command would we use to find out who we are on the system?

Correct Answer:whoami
复制代码
Answer the questions below
What command would we use to output some text?

Correct Answer:echo

Task 3 Finding Your Way Around

You'll need to...

  1. Run ls to see what's in your home folder.
  2. Use cd to change folder. We will want to use ls again to see what files are now in the folder we've entered (known as working directory).
  3. Use cat to output the contents of any file.
  4. Lost? Use pwd to see where we are within the system.
python 复制代码
Answer the questions below
Run ls in the current folder. How many folders are there?

Correct Answer:4

One of those folders contains a file. Which folder is it?
Correct Answer:folder1

Use cat to read the file within this folder. What does it say?
Correct Answer:password123

Task 4 Let the Machine Do the Searching

You'll need to...

  1. Type cd /home/tryhackme to return to your home folder.

  2. Run grep "THM" access.log to use grep to search the log file for us.

  3. Copy the THM{} output that has been found.

python 复制代码
Answer the questions below
After using grep THM access.log a flag was found. What is the flag?

Correct Answer:THM{ACCESS}

Task 5 Shell Operators (Combining Commands)

python 复制代码
Answer the questions below
What operator waits for the first command to finish before running the next command?

Correct Answer:&&

What redirector allows us to save the output of a command without overwriting the contents of a file?

Correct Answer:>>
相关推荐
隔窗听雨眠31 分钟前
PostgreSQL单表从Windows迁移到Linux:差异剖析、方案对比与全流程实战
linux·windows·postgresql
xinruoqianqiu35 分钟前
记录Linux
linux
额额额对了36 分钟前
嵌入式 Linux 实战:i.MX6ULL 上的 CAN 通信与摄像头采集
linux·运维·服务器
牛马鸡niumasi38 分钟前
【Linux】进程替换
linux
RFID科技的魅力1 小时前
2026 年 RFID 资产标签批量制作怎么做?RFID 标签打印机实操指南
运维·人工智能·嵌入式硬件·物联网
灯澜忆梦1 小时前
【Linux】#10 | Linux 终端实用快捷键 + 安装应用
linux·运维·服务器
码士集团小青2 小时前
面霸篇:高频 Java 基础问题(核心卷一)
linux·服务器·数据库·redis·缓存·1024程序员节
水饺编程3 小时前
第2章:Linux 基础,切换用户
linux·c语言·汇编
Lsetea3 小时前
curl指定--tlsv1.2仍连接TLS1.3:最低版本与tls-max排查
linux·https·ssl证书·curl·tls