# Linux與基礎資安分析實務課程
## :memo:作業系統(Operating System)簡介
### 作業系統功能:
- 系統資源分配
- 程式執行控制
⇒ 使用者與電腦硬體的媒介
⇒ 電腦系統的核心與基石
![]()
- [ ] mkdir建立資料夾
- [ ]
:rocket:
### Linux CTF 9
[下載檔案後步驟
1.ls -al=>檢查是否下載查看權限
2.file<檔案>=>檔案類型
3.(1)文字檔=>cat<檔案>
(2)執行檔=>更變權限後執行
(3)壓縮檔(打包)=>解壓縮(打包)
ls[列出當前目錄]
/tmp$ mkdir 1235[在當前目錄下建立子目錄1235]
/tmp$ ls[列出當前目錄]
/tmp$ cd 1235[更新當前工作目錄]
/tmp/1235$ wget http://120.114.62.217/TobeExe
[下載檔案]
lab@fd5af866542c:/tmp/1235$ ls
TobeExe TobeExe.1
lab@fd5af866542c:/tmp/1235$ ls -l
total 16
-rw-r--r-- 1 lab lab 7348 Nov 15 2017 TobeExe
-rw-r--r-- 1 lab lab 7348 Nov 15 2017 TobeExe.1
lab@fd5af866542c:/tmp/1235$ file TobeExe
TobeExe: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=10558357d3700c05f1426a6d2a09b920bda2e464, not stripped
/tmp/1235$ chmod +x TobeExe[增加擁有者執行權限]
/tmp/1235$ ls -1[列出目錄內容]
TobeExe
TobeExe.1
/tmp/1235$ ./TobeExe [執行]
BreakALLCTF{UvB3IUqxCCiTVxeOuWrL}
- [x] **Bold**
- [ ] *Italic*
- [ ] Super^script^
- [ ] Sub~script~
- [ ] ~~Crossed~~
- [x] ==Highlight==
:::info
:bulb: **Hint:** You can also apply styling from the toolbar at the top :arrow_upper_left: of the editing area.

:::
> Drag-n-drop image from your file system to the editor to paste it!
### Step 3: Invite your team to collaborate!
Click on the <i class="fa fa-share-alt"></i> **Sharing** menu :arrow_upper_right: and invite your team to collaborate on this note!

- [ ] Register and sign-in to HackMD (to use advanced features :tada: )
- [ ] Set Permalink for this note
- [ ] Copy and share the link with your team
:::info
:pushpin: Want to learn more? ➜ [HackMD Tutorials](https://hackmd.io/c/tutorials)
:::
---
## BONUS: More cool ways to HackMD!
- Table
| Features | Tutorials |
| ----------------- |:----------------------- |
| GitHub Sync | [:link:][GitHub-Sync] |
| Browser Extension | [:link:][HackMD-it] |
| Book Mode | [:link:][Book-mode] |
| Slide Mode | [:link:][Slide-mode] |
| Share & Publish | [:link:][Share-Publish] |
[GitHub-Sync]: https://hackmd.io/c/tutorials/%2Fs%2Flink-with-github
[HackMD-it]: https://hackmd.io/c/tutorials/%2Fs%2Fhackmd-it
[Book-mode]: https://hackmd.io/c/tutorials/%2Fs%2Fhow-to-create-book
[Slide-mode]: https://hackmd.io/c/tutorials/%2Fs%2Fhow-to-create-slide-deck
[Share-Publish]: https://hackmd.io/c/tutorials/%2Fs%2Fhow-to-publish-note
- LaTeX for formulas
$$
x = {-b \pm \sqrt{b^2-4ac} \over 2a}
$$
- Code block with color and line numbers:
```javascript=16
var s = "JavaScript syntax highlighting";
alert(s);
```
- UML diagrams
```sequence
Alice->Bob: Hello Bob, how are you?
Note right of Bob: Bob thinks
Bob-->Alice: I am good thanks!
Note left of Alice: Alice responds
Alice->Bob: Where have you been?
```
- Auto-generated Table of Content
[ToC]
> Leave in-line comments! [color=#3b75c6]
- Embed YouTube Videos
{%youtube PJuNmlE74BQ %}
> Put your cursor right behind an empty bracket {} :arrow_left: and see all your choices.
- And MORE ➜ [HackMD Tutorials](https://hackmd.io/c/tutorials)