์ ์ฒด ๊ธ
-
ํ์ด์ฌ | #1 ๋ณ์ ์์ฑํ๊ธฐ์นดํ ๊ณ ๋ฆฌ ์์ 2023. 7. 4. 17:06
๋ณ์ ๋ง๋ค๊ธฐ ํ์ด์ฌ ๋ณ์ ๋ง๋๋ ๋ฐฉ๋ฒ # ๋ณ์ ์ด๋ฆ = ๊ฐ # string name = "hajung" # int age = 16 # booleans isTrue = false ์๋์ ๊ฐ์ด ๋ณ์๋ฅผ ์์ฑํ ๋ ํ์ ๋ ํจ๊ป ์ ํด์ค ์๋ ์๋ค. name = str("hajung") age = int(16) isTrue = bool(true) ํ๊บผ๋ฒ์ ๋ณ์๋ฅผ ์์ฑํ ์๋ ์๋ค. name, age = "abc", 16 print(name, age) # ๊ฐ์ ๊ฐ์ ๊ฐ์ง ๋ age1 = age2 = 16 ๋ณ์ ์ด๋ฆ ์ ํ๋ ๊ท์น 1. ๋ณ์ ์ด๋ฆ์ ์ํ๋ฒณ ๋๋ _ ๋ก ์์๋์ด์ผ ํ๋ค. 0name = "abc" # ํ๋ฆฐ์์ name = "abc" #(0) _name = "abc" #(0) 2. ๋ณ์ ์ด๋ฆ์๋ ์ํ๋ฒณ๊ณผ _ ..
-
๋ฆฌ๋ ์ค | find command์นดํ ๊ณ ๋ฆฌ ์์ 2023. 6. 19. 23:11
find ๋ช ๋ น์ด : ์ฌ๋ฌ ์กฐ๊ฑด๋ค์ ์ค์ ํด์ ๋ด๊ฐ ์ํ๋ ํ์ผ์ ์ฐพ์ ์ ์๋ค. basic find find /home/sinyoung -name *.txt => home/sinyoung ํด๋ ์์์ ๋ชจ๋ txt ํ์ผ์ ์ฐพ์๋ผ. ์ฌ์ฉํ ์ ์๋ ์ต์ ๋ค -name : ํ์ผ/๋๋ ํ ๋ฆฌ ์ด๋ฆ์ผ๋ก ์ฐพ๊ธฐ -type : d(๋๋ ํ ๋ฆฌ) or f(ํ์ผ). find . -name sinyoung -type f => ํ์ฌ ํด๋์์ ํ์ผ๋ช ์ด sinyoung์ธ ํ์ผ์ ์ฐพ์๋ผ -exec command : ๊ฒ์๊ฒฐ๊ณผ๋ก ์ฐพ์ ํ์ผ์ ๋ช ๋ น์ด๋ฅผ ์คํํ ์ ์๋ค 1. ํ์ ์ด ํ์ผ์ด๊ณ ํ์ผ๋ช ์ด sinyoung์ธ ํ์ผ์ ์ฐพ๋๋ค. 2. ๊ทธ ํ์ผ์๋ค๊ฐ rm ๋ช ๋ น์ด(remove)๋ฅผ ์คํํ๋ค. find . -type f -name documents.t..
-
๋ฆฌ๋ ์ค | file command์นดํ ๊ณ ๋ฆฌ ์์ 2023. 6. 18. 23:58
file : ํ์ผ ํ์ ์ ์๋ ค์ค๋ค. file ๋จผ์ ํ์ผ ์ ๋ณด๋ฅผ ๋ฐ์๋ณด์. -file07, -file09 ๋ฅผ ์ ์ธํ๊ณ ๋ data ํ์์ ํ์ผ์ธ ๊ฒ์ ์ ์ ์๋ค. -file07์ ๊ฒฝ์ฐ ASCII text (human-readable file) -file09์ ๊ฒฝ์ฐ Non-ISO ๋ง์ฐฌ๊ฐ์ง๋ก html ํ์ผ์ ์์ฑํ ํ์ ํ์ผ ํ์ ์ ์ฝ์ด๋ณด๋ฉด ๋ค์๊ณผ ๊ฐ์ด ์ถ๋ ฅ๋๋ ๊ฒ์ ๋ณผ ์ ์๋ค.
-
๋ฆฌ๋ ์ค | hidden file ์จ๊ฒจ์ง ํ์ผ ์ฝ์ด๋ด๊ธฐ(feat. ls ๋ช ๋ น์ด)์นดํ ๊ณ ๋ฆฌ ์์ 2023. 6. 17. 23:35
ls ๋ช ๋ น์ด ls ๋ช ๋ น์ด๋ ๊ธฐ๋ณธ์ ์ผ๋ก ํ์ฌ ๋๋ ํ ๋ฆฌ์ ํด๋์ ํ์ผ๋ค์ ๋ณด์ฌ์ฃผ๋ ๋ช ๋ น์ด๋ค. * pwd ๋ช ๋ น์ด๋ฅผ ํตํด ํ์ฌ ๋๋ ํ ๋ฆฌ๋ฅผ ํ์ธํ ์ ์๋ค. ์ต์ ๋ค -l : ํ์ผ์ ๋ชจ๋, ๋งํฌ ์, ์์ ์, ๊ทธ๋ฃน, ํฌ๊ธฐ, ์ต์ข ์์ ์๊ฐ์ ํจ๊ป ํ์ํด์ฃผ๋ ์ต์ ์ด๋ค. ์ต์ ๋ค์ ํน์ ๋๋ ํ ๋ฆฌ๋ฅผ ์ง์ ํด์ ๋ฆฌ์คํธ๋ฅผ ๊ฐ์ ธ์ฌ ์ ์๋ค(๊ธฐ๋ณธ์ ์ผ๋ก๋ ํ์ฌ ๋๋ ํ ๋ฆฌ๋ฅผ ๊ธฐ์ค์ผ๋ก ๊ฐ์ ธ์จ๋ค) -h : ์ธ๊ฐ์ด ์ฝ๊ธฐ ํธํ ๋จ์(K, M, G)๋ก ์ถ๋ ฅํ๋ค. -l, -s ์ต์ ๊ณผ ํจ๊ป ์ฌ์ฉ๋๋ค. ์๋๋ 4096์ผ๋ก ์ถ๋ ฅ๋์๋๋ฐ 4.0K ๋ก ์ถ๋ ฅ๋์๋ค. -a : ์จ๊ฒจ์ง ํ์ผ๋ค๋ ํจ๊ป ์ถ๋ ฅํ๋ค. Hidden file CREATE ์จ๊ฒจ์ง ํ์ผ์ ๋ง๋ค์ด๋ณด์. ํ์ผ ์ด๋ฆ ์์ .์ ์ฐ์ด์ ํ์ผ์ ์์ฑํ๋ฉด ์จ๊ฒจ์ง ํ์ผ์ด ์์ฑ๋๋ค. touch .hidd..
-
๋ฆฌ๋ ์ค | spaces in filename์นดํ ๊ณ ๋ฆฌ ์์ 2023. 6. 13. 23:58
Spaces ๊ฐ filename ์ ๋ค์ด๊ฐ ํ์ผ Read ๋์ด์ฐ๊ธฐ ๋ค์ด๊ฐ ํ์ผ์ ์ฝ์ผ๋ ค๊ณ ํ๋ฉด ์๋ฌ๊ฐ ์๊ธด๋ค. touch space filename ๊ทธ ์ด์ ๋ ํฐ๋ฏธ๋์ ๋ ๊ฐ์ ๋ค๋ฅธ ํ์ผ๋ก ์๊ฐํ๊ธฐ ๋๋ฌธ์ด๋ค. "space", "filename"์ ๊ฐ๊ฐ ๋ถ๋ฆฌํด์ ์๊ฐํ๋ค. ๋จผ์ ํ์ผ์ ๋ด์ฉ์ ๋ฃ์ด๋ณด์ ๋ค์๊ณผ ๊ฐ์ด ์ฝ๋๋ฅผ ์ ์ ๊ฒฝ์ฐ, space๋ผ๋ ์๋ก์ด ํ์ผ์ ์์ฑํ๊ณ ๊ทธ ์์ empty file ํ ์คํธ๊ฐ ๋ค์ด๊ฐ๋ค. echo "empty file" >> space filename ๋๋ฌธ์ Create์ ๋ง์ฐฌ๊ฐ์ง๋ก ๋ฐ์ดํ๋ ์ด์ค์ผ์ดํ ๋ฌธ์ + space๋ฅผ ์ด์ฉํ๋ฉด ๋๋ค. echo "empty file" >> space\ filename or echo "emtpy file" >> "space filename" ..
-
๋ฆฌ๋ ์ค | dashed filename์นดํ ๊ณ ๋ฆฌ ์์ 2023. 5. 26. 23:49
dashed filename ๋ณดํต dash(-)๋ ๋ช ๋ น์ด์ ์ต์ ๊ณผ arguments๋ก ์ฌ์ฉ๋๊ธฐ ๋๋ฌธ์ "-" ํ์ผ์ ์ด๊ธฐ์ํด์๋ ๋ ๋ง์ ์ฃผ์๊ฐ ํ์ํ๋ค. Create ๋ณดํต ํ์ผ์ ๋ง๋ค ๋ touch - ํ์ผ์ด ๋ง๋ค์ด์ง์ง ์๋๋ค. - ํ์ผ์ ์์ฑํ๊ธฐ ์ํด์๋ ํน๋ณํ argument๋ก -- ๋ฅผ ์์ ๋ถ์ฌ์ค์ผ ํ๋ค. touch -- -filename Read & Copy touch -- -filename filename ์์ ๋ด์ฉ๋ฃ๊ธฐ echo "Hi How Are you?" > -filename ํ์ผ ๋ด์ฉ ์ฝ๊ธฐ cat < -filename ํ์ผ ๋ด์ฉ ๋ณต์ฌํ๊ธฐ cp -- -filename /opt List ํ์ผ ์ฐพ๊ธฐ ls -l -- -filename Remove rm -rf -- -filename
-
The TypeScript Handbook 1์นดํ ๊ณ ๋ฆฌ ์์ 2023. 5. 12. 02:11
What is Typescript A static Type Checker. Getting started 1. install npm install -g typescript 2. compiler tsc hello.ts; Types The primitives : string, number, boolean Arrays const number[]; //=== Array const string[];//=== Array any type checking์ ํ์ง ์๊ณ ์๋ฐ์คํฌ๋ฆฝํธ์ฒ๋ผ ๋์์ํค๊ณ ์ถ์ ๋ let obj:any = { x:0 }; Type Annotations on Variables const, var, let ํค์๋๋ก ๋ณ์๋ฅผ ์ ์ํ ๋ let variableName : type = ""; functions..
-
Python ๊ณต๋ถํ๊ธฐ | hello world ์ถ๋ ฅํ๊ธฐ์นดํ ๊ณ ๋ฆฌ ์์ 2023. 4. 28. 23:36
Python ์์ํ๊ธฐ 1. ์ค์น https://python.land/python-tutorial Python Tutorial For Beginners: Learn Python Learn to program with this free Python tutorial for beginners. It's easy to read and lets you practice with in-browser code examples. python.land https://phoenixnap.com/kb/how-to-install-python-3-ubuntu How to Install Python 3 on Ubuntu 18.04 or 20.04 {Step-by-Step} Learn how to install Python 3 on ..