From 0b90a24dd76a137d236e910cd94521113765d22d Mon Sep 17 00:00:00 2001 From: Mumtahin Farabi Date: Fri, 18 Oct 2024 17:07:32 -0400 Subject: [PATCH] docs(knowledge-base/hack-the-tunnels-2024): add bash commands review --- .../hack-the-tunnels-2024/part-1.mdx | 17 ++++++++++++++++- .../hack-the-tunnels-2024/part-3.mdx | 8 ++++---- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/apps/docs/src/content/docs/knowledge-base/hack-the-tunnels-2024/part-1.mdx b/apps/docs/src/content/docs/knowledge-base/hack-the-tunnels-2024/part-1.mdx index 30090d18..82c3eb57 100644 --- a/apps/docs/src/content/docs/knowledge-base/hack-the-tunnels-2024/part-1.mdx +++ b/apps/docs/src/content/docs/knowledge-base/hack-the-tunnels-2024/part-1.mdx @@ -175,7 +175,7 @@ At this point, your file tree (Explorer) in VS Code should look like this:
### Open VS Code terminal -You can open/close the VS Code terminal with ⌘/Ctrl + `. +You can open/close the VS Code terminal with ⌘/Ctrl + ~.
@@ -400,3 +400,18 @@ Save, and run the file again :)
+ +## Bash commands review +| **Action** | **Command** | +|-------------------------------------------|----------------------------------------| +| Print 'Hello' to the terminal | `echo 'Hello'` | +| See your username | `whoami` | +| Print working directory | `pwd` | +| Create a directory | `mkdir your-directory-name` | +| Change into directory | `cd your-directory-name` | +| Go one directory back | `cd ..` | +| Remove directory | `rm -rf your-directory-name` | +| List contents of directory | `ls` | +| List contents of directory including hidden files | `ls -a` | +| Create file | `touch your-file-name` | +| Remove file | `rm your-file-name` | diff --git a/apps/docs/src/content/docs/knowledge-base/hack-the-tunnels-2024/part-3.mdx b/apps/docs/src/content/docs/knowledge-base/hack-the-tunnels-2024/part-3.mdx index 04d1ae14..dd2e9fea 100644 --- a/apps/docs/src/content/docs/knowledge-base/hack-the-tunnels-2024/part-3.mdx +++ b/apps/docs/src/content/docs/knowledge-base/hack-the-tunnels-2024/part-3.mdx @@ -33,7 +33,7 @@ git commit You should see. ```sh -On branch master +On branch main Initial commit @@ -202,8 +202,8 @@ Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 270 bytes | 270.00 KiB/s, done. Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0) To https://github.com/MFarabi619/hack-the-tunnels-git-workshop.git - * [new branch] HEAD -> master -branch 'master' set up to track 'origin/master'. + * [new branch] HEAD -> main +branch 'main' set up to track 'origin/main'. ✓ Pushed commits to https://github.com/MFarabi619/hack-the-tunnels-git-workshop.git ``` @@ -246,7 +246,7 @@ If you see `(END)`, press q to quit. Make a new branch called `my-branch`. ```sh title="Terminal" -git checkout -b main +git checkout -b my-branch ``` ``` Switched to a new branch 'my-branch'