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:>>
相关推荐
qeen878 小时前
【Linux】线程的基本认识及与进程的关系、对比
linux·运维
Smoothcloud润云9 小时前
GPU服务器租用训练缓存小文件与inode耗尽排查实战
运维·服务器·人工智能·缓存·ai·gpu算力
疯华整猫9 小时前
一条 kill -9 杀不掉的进程:AI 时代,程序员为什么必须精通 Linux
linux
Lsetea9 小时前
DNS-01 委托有 CNAME 却查不到 TXT?用 CertbotX 核对签发前和挑战中的记录
运维·https·ssl·dns·acme
Decay__10 小时前
集群安装部署实战 —— kubeadm 搭建 3 控制面 + 3 工作节点高可用集群
运维·云原生·容器·kubernetes·k8s
禾小西11 小时前
Navicat 通过 SSH 跳板连接 PostgreSQL:双服务器配置与排障实录
服务器·postgresql·ssh
爆米花byh11 小时前
在RockyLinux9环境下安装Rust1.100.0环境
linux·rust
llilian_1612 小时前
单北斗信创 NTP 服务器自主可控溯源要求
运维·服务器·功能测试·嵌入式硬件·51单片机·软件工程
爆米花byh12 小时前
在RockyLinux9环境下安装Manticore Search32.1.3单机版
linux·服务器·搜索引擎
华允物联-HUAIOT12 小时前
断线不可怕,可怕的是“假在线”:串口服务器的四道自愈防线
运维·服务器