๐Ÿ“ฑ App Development Study/iOS๐ŸŽ

[Udemy iOS & Swift Bootcamp] Command Line and Terminal

ibelieveinme 2023. 7. 6. 00:05
728x90

*Shell(์‰˜)๊ณผ Kernel(์ปค๋„ฌ)

Shell: ์‚ฌ์šฉ์ž์™€ ์šด์˜์ฒด์ œ ๊ฐ„์— ๋Œ€ํ™”๋ฅผ ๊ฐ€๋Šฅํ•˜๊ฒŒ ํ•ด์ฃผ๋Š” ๋ช…๋ น์–ด ํ•ด์„๊ธฐ ์—ญํ• 

Kenel: ์šด์˜์ฒด์ œ์˜ ํ•ต์‹ฌ. ์†Œํ”„ํŠธ์›จ์–ด์™€ ํ•˜๋“œ์›จ์–ด๊ฐ„์˜ ์ปค๋ฎค๋‹ˆ์ผ€์ด์…˜์„ ๊ด€๋ฆฌํ•˜๋Š” ํ”„๋กœ๊ทธ๋žจ

 

*Shell ์ข…๋ฅ˜

1) ๊ทธ๋ž˜ํ”ฝ ์‚ฌ์šฉ์ž ์ธํ„ฐํŽ˜์ด์Šค ์‰˜(GUI)

2 ์ปค๋งจ๋“œ๋ผ์ธ ์ธํ„ฐํŽ˜์ด์Šค(CLI)

 

*Bash = Bourne Again Shell

: Unix ๊ธฐ๋ฐ˜ Command Line ์‹œ์Šคํ…œ

 

*Command Line ์„ ์‚ฌ์šฉํ•˜๋Š” ์ด์œ ?

: ๋” ํฐ ํ†ต์ œ๋ ฅ์„ ์œ„ํ•ด. ๋” ๊ฐ„๋‹จํ•˜๊ณ  ๋น ๋ฆ„.

 

* Command Line ๋ช…๋ น์–ด

ls ํด๋” ๋ณด๊ธฐ
cd ( change directory) ํด๋” ์ด๋™
cd ~ ๋ฃจํŠธ ํด๋”๋กœ ์ด๋™
mkdir ํด๋” ์ƒ์„ฑ
touch Text2.txt Text2.txt ํŒŒ์ผ ์ƒ์„ฑ
oepn Text2.txt Text2.txt ํŒŒ์ผ ์—ด๊ธฐ
clear Bash ํด๋ฆฌ์–ด
alt + ํด๋ฆญ ์ปค์„œ ์œ„์น˜ ์ด๋™
Tab ํ‚ค ํด๋”์ด๋ฆ„ ์ž๋™์™„์„ฑ
control + A ์ค„์˜ ์‹œ์ž‘์œผ๋กœ ์ด๋™
control + E ์ค„์˜ ๋์œผ๋กœ ์ด๋™
control + U ์ค„ ์ง€์šฐ๊ธฐ

 

* ํŒŒ์ผ ๋ช…๋ น์–ด

touch Text2.txt Text2.txt ํŒŒ์ผ ์ƒ์„ฑ
oepn Text2.txt Text2.txt ํŒŒ์ผ ์—ด๊ธฐ
open -a Atom Text2.txt Atom ์‘์šฉ ํ”„๋กœ๊ทธ๋žจ ์ง€์ •ํ•ด์„œ Text2.txt ํŒŒ์ผ ์—ด๊ธฐ
rm Text2.txt Text2.txt ํŒŒ์ผ ์‚ญ์ œ
rm * ํด๋” ๋‚ด์˜ ๋ชจ๋“  ํŒŒ์ผ ์‚ญ์ œ
rm -r [ํด๋”๋ช…]/ ํด๋” ์‚ญ์ œ

 

* ๊ธฐํƒ€ ๋ช…๋ น์–ด๋“ค ์ฐธ๊ณ 

https://github.com/0nn0/terminal-mac-cheatsheet

 

GitHub - 0nn0/terminal-mac-cheatsheet: List of my most used commands and shortcuts in the terminal for Mac

List of my most used commands and shortcuts in the terminal for Mac - GitHub - 0nn0/terminal-mac-cheatsheet: List of my most used commands and shortcuts in the terminal for Mac

github.com

https://www.learnenough.com/command-line-tutorial/basics

 

Learn Enough Command Line to Be Dangerous

A tutorial introduction to the Unix command line

www.learnenough.com

 

728x90