From 71ab28836075170d2ae33c67f9b83be2c68b4577 Mon Sep 17 00:00:00 2001 From: "Z. Cliffe Schreuders" Date: Tue, 30 Sep 2025 10:46:29 +0100 Subject: [PATCH] Update Linux command cheat sheet formatting and enhance lab layout - Changed command examples in the Linux cheat sheet to use code formatting for better readability. - Updated the lab metadata section to hide when embedded, improving the layout. - Renamed "Table of Contents" to "Contents" for consistency in the lab layout. --- _labs/introducing_attacks/1_intro_linux.md | 16 ++++++++-------- _layouts/lab.html | 9 +++++++-- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/_labs/introducing_attacks/1_intro_linux.md b/_labs/introducing_attacks/1_intro_linux.md index f25f7ae..1eb2dbc 100644 --- a/_labs/introducing_attacks/1_intro_linux.md +++ b/_labs/introducing_attacks/1_intro_linux.md @@ -99,14 +99,14 @@ Here’s a brief cheat sheet of some common Linux/Unix commands: | Command | Simplified description | Example usage | | :---- | :---- | :---- | -| pwd | Check your current location in the file system | pwd | -| ls | Lists all the files in your current working directory, similar to “dir” on windows (-la shows details) | ls \-la | -| cp | Copies files (-r to recursively copy directory contents) | cp file1 copy\_of\_file1 | -| mv | Moves (or renames) a file or directory | mv file1 file2 | -| cat | Prints the contents of a file to the console | cat file1 | -| echo | Prints a message to the screen | echo “hello, world\!” | -| mkdir | Makes a directory | mkdir newdirectory | -| cd | Change working directory, to “move us into a different directory” | cd newdirectory | +| `pwd` | Check your current location in the file system | `pwd` | +| `ls` | Lists all the files in your current working directory, similar to “dir” on windows (-la shows details) | `ls -la` | +| `cp` | Copies files (-r to recursively copy directory contents) | `cp file1 copy_of_file1` | +| `mv` | Moves (or renames) a file or directory | `mv file1 file2` | +| `cat` | Prints the contents of a file to the console | `cat file1` | +| `echo` | Prints a message to the screen | `echo "hello, world!"` | +| `mkdir` | Makes a directory | `mkdir newdirectory` | +| `cd` | Change working directory, to “move us into a different directory” | `cd newdirectory` | > Tip: If you ever get lost within the file structure, you can type "cd" on its own (no directory name afterwards) and you'll return to your home folder. To go up just one level within the file system, type "cd .." ("cd", followed by a space then two full-stops.) diff --git a/_layouts/lab.html b/_layouts/lab.html index 46cf3c1..bf0c6da 100644 --- a/_layouts/lab.html +++ b/_layouts/lab.html @@ -22,7 +22,7 @@ layout: default {% endif %} -
+