Linux Fundamentals Part 2
TryHackMe Walkthroughs â‹… Guided â‹… Linux Fundamentals Part 2
Task 1: Introduction
This room is the second in a three-part series on Linux fundamentals. This room will have us:
Unlocking the potential of our first few commands by introducing flags and arguments
Advancing our knowledge of the filesystem by copying and moving files
Discovering how access to files and folders is managed and how we can determine our access
Running our first few scripts and executables
Task 2: Accessing Your Linux Machine Using SSH (Deploy)
Secure Shell (SSH) is a protocol between devices in an encrypted form. We can SSH into the machine for this room using the command ssh tryhackme@<machine_ip>
. The machine IP is listed at the top of the page after we start the machine for the room.
Task 3: Introduction to Flags and Switches
Commands in Linux have a default behavior. For example, ls
lists the contents of the working directory. We can add flags to commands to extend the behavior of commands. man <command>
can be used to view the associated flags for each command.
Task 4: Filesystem Interaction Continued
The command line can also be used to manipulate files. touch <file>
creates a new file and mkdir <directory>
creates a new folder. Files and folders can be copied with cp <file> <destination>
, moved with mv <file> <destination>
, and removed with rm <file>
. file <file>
can be used to output the file type.
Task 5: Permissions 101
In Linux, a file's characteristics determines what actions can be performed on that file and by whom. The three basic actions we have in Linux are read, write and execute.
A file's permissions can be viewed by using the -l
flag on the ls
command.
We can switch users using su <user>
.
Task 6: Common Directories
The Linux filesystem is organized into directories that hold important files for the operating system. The /etc
directory holds system files that are used by the operating system. /var
holds variable data such as logs. /root
is the home directory for the root user, and /tmp
holds temporary information and is wiped after the computer is restarted.
Task 7: Conclusions and Summaries
In conclusion, this room allowed us to:
Use terminal text editors
Deploy general utilities, such as downloading and serving contents using a Python web server
Take a look into processes
Maintain and automate our system using crontabs, package management, and reviewing logs
Task 8: Linux Fundamentals Part 3
My walkthrough for the next room in this Linux introductory series can be found here.
Last updated