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:>>
相关推荐
Rabitebla5 小时前
【Linux】进程控制(十二) 自定义 Shell(二):内建命令与进程工作目录管理
linux·c++·笔记·学习·bash
火云代理5 小时前
更换网络后为什么会退出登录?分清 IP、Cookie 与会话的关系
服务器·网络·网络协议·tcp/ip·php·ip
威嵌神州6 小时前
嵌入式排故实录:高并发下串口数据“超时丢包”的根因剖析与架构优化
运维·服务器·嵌入式硬件·缓存
Decay__7 小时前
SQLServer 索引与 SQL 优化 —— 聚集索引、非聚集索引、覆盖索引、碎片维护与执行计划
运维·数据库·sql·mysql·架构
java_logo7 小时前
Docker 部署 DeepSeek Harness(moelin):轻松搭建带登录的本地 AI Agent 平台
运维·docker·容器·ai agent·deepseek·harness·轩辕镜像
火云代理9 小时前
同一个网站,有的网络能打开、有的打不开?认识 IPv4 与 IPv6 的访问差异
服务器·网络·网络协议·tcp/ip·测试工具·php·状态模式
坤坤子吖10 小时前
Linux网络编程:TCP 粘包与半包问题,如何正确处理 TCP 流式数据?
linux·服务器·网络·笔记·网络协议·学习
AI_Gump10 小时前
Harness篇|DeepSeek Harness 上手机:五条安卓移植路线与 App 内 Linux 拆解
android·linux·人工智能·智能手机·deepseek
星恒随风11 小时前
MySQL 从零入门(六):复合查询详解——多表查询、自连接、子查询与 UNION
linux·服务器·数据库·mysql
少司府12 小时前
嵌入式入门篇(二):初识STM32F103ZET6
linux·python·stm32·单片机·嵌入式硬件·mcu·嵌入式软件