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:>>
相关推荐
ai小陈11 小时前
GPU服务器租用存储验收:检查点写入与磁盘吞吐实战
运维·服务器·人工智能·ai·ssh·gpu算力
Ivanqhz13 小时前
激活函数在 Transformer 中的作用及各种变体简述
java·linux·数据库·人工智能·深度学习
FPGA小徐13 小时前
PA1 基础设施(2)深度解析:NEMU 中 ITRACE、MTRACE、FTRACE、IRINGBUF、ETRACE、DIFFTEST 全解析
java·服务器·网络
有毒的教程14 小时前
VMware仅主机模式:物理机 ↔ 虚拟机 文件共享
运维
知行EDI14 小时前
知行之桥 MaBang 端口使用指南——Create Order 订单创建篇
java·服务器·数据库
成旭先生14 小时前
【2026】企业信息模糊查询 API 实战:名称、注册号、统一社会信用代码、企业类型与法人一次查全
服务器·数据库·数据服务
殷色玫瑰15 小时前
C/C++ 内存管理详解:从内存分布到 new/delete 底层原理
java·linux·c语言·c++
山岚的运维笔记16 小时前
ComfyUI NVIDIA安装教程:官方便携版下载+run_nvidia_gpu.bat启动,8G显存Windows实操
运维·服务器·windows·笔记·prompt·aigc·comfyui
海宇大数据17 小时前
零信任架构实战:基于海宇活体识别V步骤1构建自动化远程公证会话初始化网关
运维·人工智能·架构·自动化
꯭自꯭闭꯭17 小时前
DM7主备升级方案
linux·服务器·数据库