Slide 1

Slide 1 text

Command Line Fung

Slide 2

Slide 2 text

What is command line ? How command line works? Why command line?

Slide 3

Slide 3 text

What is command line?

Slide 4

Slide 4 text

就是那個⿊黑⾊色的畫⾯面

Slide 5

Slide 5 text

配上⽩白⾊色的字

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

命令提⽰示字元

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

MS-DOS

Slide 10

Slide 10 text

Formal name command line interface (CLI) character user interface (CUI)

Slide 11

Slide 11 text

How command line works?

Slide 12

Slide 12 text

Hardware Kernal System call Shell(CLI / GUI) User Computer

Slide 13

Slide 13 text

Shell(CLI / GUI)

Slide 14

Slide 14 text

shell 是⼀一個可以讓我們 可以透過純⽂文字與 OS 層 安全溝通的⼯工作環境

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

/bin /dev /etc /lib /var

Slide 18

Slide 18 text

some common shells sh csh bash zsh

Slide 19

Slide 19 text

cat /etc/shells

Slide 20

Slide 20 text

shell script

Slide 21

Slide 21 text

#!/bin/sh name="frozenfung" echo $name

Slide 22

Slide 22 text

Why command line?

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

我⽤用 GUI 就好

Slide 25

Slide 25 text

Graphical User Interface(GUI) Command Line Interface(CLI) 操作⽅方式 有圖有真相 純⽂文字 上⼿手速度 ⼀一秒上⼿手 ⼀一年都還沒學會 潮度 沙漠 熱帶⾬雨林 專業性 三寶都會⽤用 救世主等級 勝 勝 勝 勝

Slide 26

Slide 26 text

有些事情 ⽤用CLI來做⽐比較快

Slide 27

Slide 27 text

Move files between directory

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

mv ./file path/to/file mv file path/to/file

Slide 30

Slide 30 text

if there are thousands of files…

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

mv file_a file_b path/to/file

Slide 33

Slide 33 text

⽣生命就該浪費 在美好的事物上

Slide 34

Slide 34 text

⽐比如說學習怎麼⽤用 CLI

Slide 35

Slide 35 text

有些事情 只能⽤用CLI做

Slide 36

Slide 36 text

Deploy application to remote

Slide 37

Slide 37 text

There is no GUI on remote server

Slide 38

Slide 38 text

有些事情 你以為 CLI 不能做

Slide 39

Slide 39 text

No content

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

Online resources http://www.oliverelliott.org/article/computing/tut_unix/ https://www.edx.org/course/introduction-linux- linuxfoundationx-lfs101x-2 https://www.codecademy.com/courses/learn-the- command-line http://teamtreehouse.com/library/console-foundations https://github.com/jlevy/the-art-of-command-line

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

Let’s rock !