Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
クララと学ぶbash / Learn bash with Clara
Search
Hiromichi NOMATA
September 24, 2018
Education
2
46
クララと学ぶbash / Learn bash with Clara
Hiromichi NOMATA
September 24, 2018
Tweet
Share
More Decks by Hiromichi NOMATA
See All by Hiromichi NOMATA
プロダクトと一緒に成長できるMVCフレームワークの使い方 / Adjustable MVC Framework
hiromichinomata
1
460
急にDX言い出した理由と真にDXを実現するために必要なこと / DX Explained
hiromichinomata
1
700
エボルタNEOくん三輪車で学ぶ動くペーパクラフトとバルーン / Evolta NEO Three Wheeled Cycle
hiromichinomata
1
650
ガンダムとザクの構造比較から見る動くガンダムを手に入れるために必要なこと / Gundam vs Zaku
hiromichinomata
1
640
投下資本に比例して成長できる開発組織体制について / How To Create Scalable Development Team
hiromichinomata
1
500
絵文字扇子の作り方 / How to create Emoji Sensu
hiromichinomata
1
640
Ruby 2.7クイズ / Ruby 2.7 Quiz
hiromichinomata
1
400
クララと学ぶプログラミング / Learn Programming with Clara
hiromichinomata
1
130
Other Decks in Education
See All in Education
JOAI2025講評 / joai2025-review
upura
0
400
Education-JAWS #3 ~教育現場に、AWSのチカラを~
masakiokuda
0
220
令和政経義塾第2期説明会
nxji
0
160
登壇未経験者のための登壇戦略~LTは設計が9割!!!~
masakiokuda
3
640
実務プログラム
takenawa
0
14k
Alumnote inc. Company Deck
yukinumata
0
1.6k
データ分析
takenawa
0
14k
探査機自作ゼミ2025スライド
sksat
3
730
生成AI
takenawa
0
14k
Pydantic(AI)とJSONの詳細解説
mickey_kubo
0
170
万博非公式マップとFOSS4G
barsaka2
0
910
Tutorial: Foundations of Blind Source Separation and Its Advances in Spatial Self-Supervised Learning
yoshipon
1
150
Featured
See All Featured
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3k
Practical Orchestrator
shlominoach
190
11k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Building Flexible Design Systems
yeseniaperezcruz
328
39k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
26k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
110
20k
Building an army of robots
kneath
306
46k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
Stop Working from a Prison Cell
hatefulcrawdad
271
21k
Balancing Empowerment & Direction
lara
2
590
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Large-scale JavaScript Application Architecture
addyosmani
512
110k
Transcript
ΫϥϥͱֶͿ bash
γΣϧ ≒ ϑΝΠϥʔ (ίϚϯυϥΠϯ)γΣϧ άϥϑΟΧϧγΣϧ • bashɺzshͳͲ • λʔϛφϧ(ࠇ͍ը໘ʣͰ੍ޚ •
Explorer, FinderͳͲ • GUI্ͰϚεͰײతʹૢ࡞
γΣϧΛֶͿཧ༝ ɾWebαʔόʔͷૢ࡞ ≒ γΣϧ αʔόʔʹGUI ڥ͕ͳ͍͜ͱ͕ଟ͍ ɾϓϩάϥϛϯάؔͷπʔϧCLIલఏ CLI = ίϚϯυϥΠϯɾΠϯλʔϑΣΠε
ϓϩάϥϜʹύϥϝʔλʔAͱBΛઃఆ࣮ͯ͠ߦ ɾ Linux, Macͷඪ४γΣϧbash
·ͱΊ ɾ γΣϧʹ ίϚϯυϥΠϯγΣϧ άϥϑΟΧϧγΣϧ ͷ2छྨ͕͋Δ ɾϓϩάϥϛϯάΛ͢Δ্ͰCLIͰͷૢ࡞ඞਢ
ΫϥϥͱֶͿ iTerm, Github
iTermͷμϯϩʔυ λʔϛφϧ: Macඪ४ iTerm: ๛ͳΧελϚΠζ߲ https://www.iterm2.com/index.html
iTermͷϓϩϑΝΠϧͷมߋ ɾࠇ͍ը໘͔Β͖ͳ৭ʹมߋՄೳ ɾઃఆࡁΈͷϑΝΠϧͷΠϯϙʔτՄೳ https://github.com/altercation/solarized/tree/ master/iterm2-colors-solarized
GitHubͱ ɾϓϩάϥϜͷιʔείʔυΛཧͰ͖ΔαΠτ https://github.com ɾϚείοτOctocat ɾ2018/7ʹMicrosoftʹങऩ͞Εͨ
ιʔείʔυͷμϯϩʔυ ɾϑΝΠϧΛGitHub͔ΒzipϑΝΠϧΛ μϯϩʔυ https://github.com/clarawahr/clara-collection
ιʔείʔυͷμϯϩʔυ ɾղౚͯ͠σεΫτοϓʹҠಈ
ϛογϣϯ ·ͩΧςΰϦʔ͚͞Ε͍ͯͳ͍ը૾Λ λʔϛφϧͷૢ࡞͚ͩͰҠಈ͠Α͏ʂ
ΫϥϥͱֶͿ pwd, cd
pwd (ݱࡏͷσΟϨΫτϦΛදࣔ) ɾpwd: print working directory Windows: ϑΥϧμ Unix: σΟϨΫτϦ
ɾλʔϛφϧىಈ࣌ϗʔϜσΟϨΫτϦ OSʹΑͬͯҧ͏͕ɺMacOSͩͱ ϗʔϜσΟϨΫτϦ= /Users/<Ϣʔβʔ໊> ɾύε = σΟϨΫτϦͷॴΛද͢จࣈྻ
cd (σΟϨΫτϦΛҠಈ) ɾcd: change directory cd <Ҡಈ͍ͨ͠ϑΥϧμ໊> ɾઈରύε = શ෦ࢦఆ
/Users/clara/Desktop/clara-collection ɾ૬ରύε = ݱࡏͷσΟϨΫτϦΛىʹࢦఆ ./Desktop/clara-collection . = ݱࡏͷσΟϨΫτϦ
cd (σΟϨΫτϦΛҠಈ) ɾ . = ݱࡏͷσΟϨΫτϦ ɾ .. = σΟϨΫτϦ
ɾ ../.. = σΟϨΫτϦ ɾ ~ = ϗʔϜσΟϨΫτϦ ɾ * =ύλʔϯϚονɻҙͷจࣈ ɾ - = લͷσΟϨΫτϦ
ΫϥϥͱֶͿ ls, cat, open
ls(LiSt directory contents) ɾ ls: directoryͷϑΝΠϧΛදࣔ ɾ ࢠσΟϨΫτϦͷதͷΈදࣔ ɾ ls
-l: ϦετܗࣜͰදࣔ ɾ ls -a: શͯදࣔ ɾ ls -al: ϦετܗࣜͰશͯදࣔ ɾ UnixͰ . ͔Β࢝·ΔϑΝΠϧӅ͠ϑΝΠϧ
υοτϑΝΠϧΛ࡞ͬͯΈΔ ɾ touch: ۭϑΝΠϧΛ࡞ΔίϚϯυ ɾ touch .hidden.txt : .hidden.txtΛ࡞ ɾ
lsίϚϯυ͚ͩͩͱ.hidden.txtදࣔ͞Εͳ͍ ɾ -aΦϓγϣϯΛ͚ͭΔͱӅ͠ϑΝΠϧදࣔ
cat (conCATenate) ɾ cat: ϑΝΠϧͷ࿈݁ίϚϯυ ɾ தΛදࣔ͢Δͷʹ༻Մೳ ɾ cat README.md
ͰREADMEͷதΛදࣔ ɾ echo: ೖྗ༰Λ͓͏Ήฦ͢͠ΔίϚϯυ ɾ ࢁ͔ͬ͜(>) ͱΈ߹ΘͤΔͱϑΝΠϧॻ͖ग़͠ ɾ echo ‘VTuber’ > vtuber.txt ɾ cat README.md vtuber.txt ɾ ϑΝΠϧΛ࿈݁ͨ͠ͷΛදࣔ
open (։͘) ɾ open: ϑΝΠϧɺσΟϨΫτϦΛ։͘(Mac only) ɾ Windowsͩͱexplorer, Linuxͩͱnautilus ɾ
open README.md => ΤσΟλ͕։͘ ɾ open burning => burningσΟϨΫτϦ͕։͘ ɾ open normal/ok.png => ը૾͕։͘
ΫϥϥͱֶͿ cp, mkdir, mv, rm
cp (CoPy) ɾ cp: ϑΝΠϧΛίϐʔ͢ΔίϚϯυ ɾ cp a.txt b.txt: a.txtͱಉ༰Ͱb.txtΛ࡞
ɾ cp a.txt cdir: a.txtͱಉ༰Ͱcdir/a.txtΛ࡞ ɾ uncategorized/burning_punch.png ΛburningσΟϨΫτϦʹίϐʔ
mkdir (MaKe DIRectory) ɾ mkdir: σΟϨΫτϦΛ࡞͢ΔίϚϯυ ɾ mkdir adir: adirͱ͍͏໊લͷσΟϨΫτϦΛ࡞
ɾ flyingσΟϨΫτϦΛ࡞͠Α͏ ɾ mkdir -p adir/bdir adirΛ࡞ޙɺadirͷதʹbdirΛ࡞
mv (MoVe) ɾ mv: ҠಈɺϦωʔϜͷίϚϯυ ɾ mv a.txt b.txt: a.txtͷ໊લΛb.txtʹมߋ
ɾ mv a/b.txt c: aσΟϨΫτϦͷb.txtΛcσΟϨΫτ ϦʹҠಈ ɾ flying_0.png, flying_1.pngΛ uncategorized͔ΒflyingʹҠಈ͠Α͏
rm (ReMove) ɾ rm: আͷίϚϯυ ɾ rm a.txt: a.txtΛআ ɾ
rm -r bdir: bdirσΟϨΫτϦ͝ͱআ ɾ .hidden.txt, vtuber.txt, uncategorizedΛআ͠Α͏
ϛογϣϯୡ!! ɾ claraͷը૾ͷΧςΰϦʔ͚ʹޭ ɾ γΣϧૢ࡞: Lv1 ֫ಘ