Skip to content

Commit

Permalink
docs(knowledge-base/hack-the-tunnels-2024): add bash commands review
Browse files Browse the repository at this point in the history
  • Loading branch information
MFarabi619 committed Oct 18, 2024
1 parent e1a233d commit 0b90a24
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ At this point, your file tree (Explorer) in VS Code should look like this:
<div className="steps">
<div className="step">
### Open VS Code terminal
You can open/close the VS Code terminal with <kbd>&#8984;/Ctrl + `</kbd>.
You can open/close the VS Code terminal with <kbd>&#8984;/Ctrl + ~</kbd>.
</div>

<div className="step">
Expand Down Expand Up @@ -400,3 +400,18 @@ Save, and run the file again :)

</div>
</div>

## 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` |
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ git commit

You should see.
```sh
On branch master
On branch main

Initial commit

Expand Down Expand Up @@ -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
```

Expand Down Expand Up @@ -246,7 +246,7 @@ If you see `(END)`, press <kbd>q</kbd> 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'
Expand Down

0 comments on commit 0b90a24

Please sign in to comment.