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:>>
相关推荐
wuminyu34 分钟前
Kafka中sendfile与mmap实现机制解析
java·linux·c语言·jvm·c++
新时代牛马1 小时前
嵌入式网络完整篇:从LwIP/以太网驱动到 Linux netdev 与排障
linux·网络·php
猿与禅1 小时前
Linux(Ubuntu)入门到实战:系统管理、常用命令与权限体系完整指南
linux·ubuntu·apt·进程管理·系统运维·用户权限·vi/vim
前端世界2 小时前
Linux服务器实战:NTP时间同步、SELinux权限与rsyslog日志管理,一次搞懂三大运维问题
linux·运维·服务器
Android系统攻城狮2 小时前
Linux Gstreamer深度解析之gst_audio_converter_new调用流程与实战(二十)
linux·运维·服务器·gstreamer音视频·音视频进阶
海宇服务2 小时前
零信任架构实战:基于海宇对外投资历史查询服务构建自动化供应商准入网关
运维·人工智能·架构·自动化
上海云盾-小余2 小时前
BGP 高防底层原理:TCP 异常流量识别与清洗机制
运维·网络·tcp/ip
captain3762 小时前
▲网络原理(2)-TCP
java·服务器·网络·tcp/ip·java-ee
言乐63 小时前
Python加速器4跨境网络加速器
运维·服务器·开发语言·网络·python
蓝速科技6 小时前
医院导诊 AI 数字人一体机场景适配与落地指南丨蓝速科技
运维·数据库·人工智能·科技·自然语言处理·技术分享