๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
  • Welcome.

:: Linux ๐Ÿšฉ29

[๋ฆฌ๋ˆ…์Šค1] 5์ผ์ฐจ [shell ์ŠคํŠธ๋ฆฝํŠธ ํ”„๋กœ๊ทธ๋ž˜๋ฐ - ] -๊ธฐ๋ณธ ์…ธ์€ bash(Bourne Again SHell : ‘๋ฐฐ์‹œ ์…ธ’) -bash ์…ธ์˜ ํŠน์ง• • Alias ๊ธฐ๋Šฅ(๋ช…๋ น์–ด ๋‹จ์ถ• ๊ธฐ๋Šฅ) • History ๊ธฐ๋Šฅ(์œ„/์•„๋ž˜ ํ™”์‚ดํ‘œํ‚ค) • ์—ฐ์‚ฐ ๊ธฐ๋Šฅ • Job Control ๊ธฐ๋Šฅ • ์ž๋™ ์ด๋ฆ„ ์™„์„ฑ ๊ธฐ๋Šฅ(ํƒญํ‚ค) • ํ”„๋กฌํ”„ํŠธ ์ œ์–ด ๊ธฐ๋Šฅ • ๋ช…๋ น ํŽธ์ง‘ ๊ธฐ๋Šฅ -์…ธ์˜ ๋ช…๋ น๋ฌธ ์ฒ˜๋ฆฌ ๋ฐฉ๋ฒ• -(ํ”„๋กฌํ”„ํŠธ) ๋ช…๋ น์–ด [์˜ต์…˜…] [์ธ์ž…] ์˜ˆ) # rm -rf /mydir - “echo $ํ™˜๊ฒฝ๋ณ€์ˆ˜์ด๋ฆ„” ์œผ๋กœ ํ™•์ธ ๊ฐ€๋Šฅ - “export ํ™˜๊ฒฝ๋ณ€์ˆ˜=๊ฐ’” ์œผ๋กœ ํ™˜๊ฒฝ ๋ณ€์ˆ˜์˜ ๊ฐ’์„ ๋ณ€๊ฒฝ - ์ฃผ์š” ํ™˜๊ฒฝ๋ณ€์ˆ˜ 2021. 4. 26.
[๋ฆฌ๋ˆ…์Šค1] 4์ผ์ฐจ[ docker, alias ์ •๋ณด ์œ ์ง€, ์—ฐ์‚ฐ ์‹œ ์ฃผ์˜ ์  , save, redirection ์ €์žฅ๋ฒ•, cat ์ €์žฅ๋ฒ• ] ์œˆ๋„์šฐ -> ๋ฆฌ๋ˆ…์Šค๋กœ ๋„˜์–ด๊ฐ€๋Š” ๊ณผ์ •. ใ…กใ…กใ…กใ…กใ…ก :: centos8 image ์„ค์น˜ docker pull centos:7 :: docker images ํ™•์ธ docker images :: docker images ์„ค์น˜ docker run -d -it --name centos7 centos:7 :: centos7 container ์ ‘์† 1 :: ์ ‘์† ํ›„ ์ข…๋ฃŒํ•˜์—ฌ๋„ ์ปจํ…Œ์ด๋„ˆ๊ฐ€ ์ข…๋ฃŒ๋˜์ง€ ์•Š์Œ docker exec -it centos7 /bin/bash :: centos7 container ์ ‘์† 2 :: ์ ‘์† ํ›„ ์ข…๋ฃŒํ•˜๋ฉด ์ปจํ…Œ์ด๋„ˆ๊ฐ€ ์ข…๋ฃŒ๋œ๋‹ค. docker attach centos7 :: centos7 container ์‹คํ–‰ docker start centos7 :: centos7 container ์ค‘์ง€ dock.. 2021. 4. 26.
[๋ฆฌ๋ˆ…์Šค1] 0417 {useradd, groupadd, rpm, yum, tar, ln, ln -s} - ์‚ฌ์šฉ์ž์™€ ๊ทธ๋ฃน ๊ด€๋ จ ๋ช…๋ น์–ด - (1) useradd ์ƒˆ๋กœ์šด ์‚ฌ์šฉ์ž๋ฅผ ์ถ”๊ฐ€ ์˜ˆ) # useradd newuser (2) passwd ์‚ฌ์šฉ์ž์˜ ๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ ์ง€์ •ํ•˜๊ฑฐ๋‚˜ ๋ณ€๊ฒฝ ์˜ˆ) # passwd newuser (3) usermod ์‚ฌ์šฉ์ž์˜ ์†์„ฑ์„ ๋ณ€๊ฒฝ ์˜ˆ) # usermod -g root newuser (4) userdel ์‚ฌ์šฉ์ž๋ฅผ ์‚ญ์ œ ์˜ˆ) # userdel newuser # ์‚ฌ์šฉ์ž ์ƒ์„ฑ์‹œ ์˜ต์…˜ -u : ID ์ง€์ • -g : ๊ทธ๋ฃน ์ง€์ • -d : ํ™ˆ ๋””๋ ‰ํ„ฐ๋ฆฌ ์ง€์ • -s : ์…ธ ์ง€์ • ใ…กใ…กใ…กใ…กใ…ก (1) groups ํ˜„์žฌ ์‚ฌ์šฉ์ž๊ฐ€ ์†ํ•œ ๊ทธ๋ฃน์„ ๋ณด์—ฌ์คŒ ์˜ˆ) # groups (2) groupadd ์ƒˆ๋กœ์šด ๊ทธ๋ฃน์„ ์ƒ์„ฑ ์˜ˆ) # groupadd newgroup (3) groupmod ๊ทธ๋ฃน์˜ ์†์„ฑ์„ ๋ณ€๊ฒฝ ์˜ˆ) # group.. 2021. 4. 19.
[๋ฆฌ๋ˆ…์Šค1] [#16 ๋ฆฌ๋ˆ…์Šค ์—๋””ํ„ฐ] - vi editor, nano editor, ๋ช…๋ น๋ชจ๋“œ, ์ž…๋ ฅ๋ชจ๋“œ, ex๋ช…๋ น๋ชจ๋“œ a. CUI ๊ธฐ๋ฐ˜ - vi : 1796๋…„ ๋นŒ ์กฐ์ด(๋ฒ„ํด๋ฆฌ ๊ณต๋Œ€)๊ฐ€ ๊ฐœ๋ฐœ - vim : 1991๋…„ ๋ธŒ๋žŒ ๋ฌด๋ ˆ๋‚˜๋ฅด๊ฐ€ vi๋ฅผ ๊ฐœ๋Ÿ‰ - emacs : ๋ฆฌ์ฒ˜๋“œ ์Šคํ†จ๋งŒ(MIT)์ด LISP ์–ธ์–ด๋ฅผ ์ด์šฉํ•˜์—ฌ ๊ฐœ๋ฐœํ•œ “๊ฐœ๋ฐœ์ž์šฉ ์—๋””ํ„ฐ” - pico : MIT ๋Œ€ํ•™์—์„œ UNIX ๊ธฐ๋ฐ˜์˜ ์—๋””ํ„ฐ๋กœ ๊ฐœ๋ฐœ - nano : ๋ฆฌ์ฒ˜๋“œ ์Šคํ†จ๋งŒ์ด pico๋ฅผ Linux ๊ธฐ๋ฐ˜์œผ๋กœ ๊ฐœ๋Ÿ‰ b. GUI ๊ธฐ๋ฐ˜ - gVim - gEdit c. vi Editor - ๊ตฌ์กฐ - SELinux ๋น„ํ™œ์„ฑํ™” (1) SELinux ์ •์˜ : ๋ฐ๋ชฌ ๋ฐ ํŒŒ์ผ ๊ฒฝ๋กœ๋ฅผ ์ด์šฉํ•œ ๋ฐฉํ™”๋ฒฝ (2) ์‹ค์Šต : ๋” {1} enforcing : ์‹คํ–‰ {2} permissive : ๊ฐ์‹œ๋Š” ํ•˜๋˜ ๋™์ž‘์€ ์•ˆํ•จ {3} disabled : ๋™์ž‘x (3) vi /etc/selinux/config .. 2021. 4. 13.
[๋ฆฌ๋ˆ…์Šค1] [#15 ๋””๋ ‰ํ† ๋ฆฌ ๋ฐ ํŒŒ์ผ ์‹ค์Šต] - mkdir, cp, mv, rm a. test1 ํŒŒ์ผ ์ƒ์„ฑ : touch test1 b. bash1 ํŒŒ์ผ์˜ ์ตœ์ข… ์ˆ˜์ • ์‹œ๊ฐ„ ๋ณ€๊ฒฝํ•˜๊ธฐ - ๋ช…๋ น : touch bash1 - ๋ณ€๊ฒฝ ์ „ : 4์›” 1 2020 - ๋ณ€๊ฒฝ ํ›„ : 4์›” 10 22:56 c. ํด๋” ์ƒ์„ฑ : mkdir - test2 ํด๋” ์ƒ์„ฑ : mkdir test2 - test2 ํด๋”์•ˆ์— test2_a ๋ผ๋Š” ํด๋” ์ƒ์„ฑ (1) ๋ช…๋ น : mkdir test2/test2_a (2) ์œ ์˜์‚ฌํ•ญ : test2 ๋ผ๋Š” ํด๋”๊ฐ€ ์žˆ์–ด์•ผ ํ•จ (3) test3/test3_a ๋ผ๋Š” ํด๋”๋ฅผ ๋™์‹œ์— ์ƒ์„ฑ {1} ํ˜„์žฌ test3 ํด๋”๋Š” ์—†์Œ {2} ๋ช…๋ น : mkdir -p test3/test3_a test2 ํด๋”๋ฅผ ๋งŒ๋“ค๊ณ  ๊ทธ ํ›„์— test2_a ํด๋”๋ฅผ test2 ํด๋” ์•ˆ์— ๋งŒ๋“ฆ. d. ํŒŒ์ผ ๋ณต์‚ฌ : cp - cp.. 2021. 4. 13.
[๋ฆฌ๋ˆ…์Šค1] [#14 ๊ฒฝ๋กœ ๊ด€๋ จ ๋ช…๋ น] - ๊ฒฝ๋กœ ์ •์˜ , ์ ˆ๋Œ€ ๊ฒฝ๋กœ. ์ƒ๋Œ€ ๊ฒฝ๋กœ, ๊ฒฝ๋กœ ์ด๋™ ๋ช…๋ น, cd #14 ๊ฒฝ๋กœ ๊ด€๋ จ ๋ช…๋ น a. ๊ฒฝ๋กœ ์ •์˜ - ์ ˆ๋Œ€ ๊ฒฝ๋กœ : ์ตœ์ƒ์œ„ (/) ๋””๋ ‰ํ† ๋ฆฌ ๊ธฐ์ค€ - ์ƒ๋Œ€ ๊ฒฝ๋กœ : ํ˜„์žฌ ์†ํ•œ ๋””๋ ‰ํ† ๋ฆฌ ๊ธฐ์ค€ b. ํŠน์„ฑ - ์ ˆ๋Œ€ ๊ฒฝ๋กœ (1) ์žฅ์  : ๊ฒฝ๋กœ๊ฐ€ ๋ช…ํ™•(cd/์„œ์šธ์‹œ/๊ฐ•๋‚จ๊ตฌ/์—ญ์‚ผ๋™/123-123/12์ธต) (2) ๋‹จ์  : ์†๋„๊ฐ€ ์ƒ๋Œ€์ ์œผ๋กœ ๋Š๋ฆผ - ์ƒ๋Œ€ ๊ฒฝ๋กœ (1) ์žฅ์  : ํ˜„์žฌ ์œ„์น˜์—์„œ ๋ชฉ์ ์ง€๊นŒ์ง€์˜ ๊ฒฝ๋กœ๋ฅผ ์•Œ๊ณ  ์žˆ๋‹ค๋ฉด ๋น ๋ฆ„ (2) ์˜ˆ์‹œ : {1} ํ˜„์œ„์น˜ : /์„œ์šธ์‹œ/๊ฐ•๋‚จ๊ตฌ/์—ญ์‚ผ๋™/123-123/12์ธต {2} ์ด๋™์œ„์น˜ : /์„œ์šธ์‹œ/๊ฐ•๋‚จ๊ตฌ/์—ญ์‚ผ๋™/123-123/5์ธต {3} ์ด๋™ : cd ../5์ธต (3) ๋‹จ์  : ๊ฒฝ๋กœ๊ฐ€ ๋‹ฌ๋ผ์ง„ ๊ฒฝ์šฐ์—๋Š” ๋‹ค์‹œ ๊ณ„์‚ฐํ•ด์•ผ ํ•จ (4) ๊ฒฝ๋กœ ์ •์˜ {1} / ๋˜๋Š” ./ : ํ˜„์žฌ ๊ฒฝ๋กœ {2} .. ๋˜๋Š” ../ : ์ƒ์œ„ ๊ฒฝ๋กœ c. ๊ฒฝ๋กœ ์ด๋™ ๋ช…๋ น : cd - .. 2021. 4. 13.
[๋ฆฌ๋ˆ…์Šค1] [#13 ๋ฆฌ๋ˆ…์Šค ๋””๋ ‰ํ† ๋ฆฌ] - ์ฃผ์š” ๋””๋ ‰ํ† ๋ฆฌ, /boot, /proc, tree๊ตฌ์กฐ, ์œˆ๋„์šฐ์™€ ๋ฆฌ๋ˆ…์Šค์˜ ํŒŒ์ผ ๊ฐœ๋… 13. ๋ฆฌ๋ˆ…์Šค ๋””๋ ‰ํ† ๋ฆฌ a. ์ฃผ์š” ๋””๋ ‰ํ† ๋ฆฌ - / : ์ตœ์ƒ์œ„ ๋””๋ ‰ํ† ๋ฆฌ (root ๋””๋ ‰ํ† ๋ฆฌ) - /root : root ๊ณ„์ •์˜ ๋””๋ ‰ํ† ๋ฆฌ (1) root ๋””๋ ‰ํ† ๋ฆฌ๋ผ๊ณ  ๋ถ€๋ฅด์ง€ ์•Š์Œ (2) root ๊ณ„์ •์˜ ํ™ˆ ๋””๋ ‰ํ† ๋ฆฌ ๋ผ๊ณ  ํ‘œํ˜„ - /bin : binary file = ์ผ๋ฐ˜ ๊ณ„์ •์ด ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ๋ช…๋ น์–ด - /sbin : binary file = root ๊ณ„์ •๋งŒ ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ๋ช…๋ น์–ด - /boot : GRUB2. ๋ถ€ํŒ… ์‹œ ์ฒ˜์Œ์œผ๋กœ ํ™•์ธ. **์ค‘์š”** - /dev : device. ์žฅ์น˜ (HDD, I/O ๋“ฑ) - /etc : ํŒจํ‚ค์ง€(ํ”„๋กœ๊ทธ๋žจ) ํŒŒ์ผ - /home : ์‚ฌ์šฉ์ž ๋””๋ ‰ํ† ๋ฆฌ - /lib , /lib64 : ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ํด๋” (/lib : 32bit , /lib64 : 64bit) - /media : CD-ROM .. 2021. 4. 13.
[๋ฆฌ๋ˆ…์Šค1] [#12 i-node] - i-node, Link์ƒ์„ฑ, Hard Link, Soft Link, ํŠน์ˆ˜๊ถŒํ•œ, Set -UID, Set - GID, Set - Bit a. ํ™•์ธ : ls -i b. ์ •์˜ : - UNIX ์‹œ์Šคํ…œ์—์„œ ์‚ฌ์šฉํ•˜๋Š” ํŒŒ์ผ ๊ตฌ์กฐ - ๊ฐ’์„ ์ˆซ์ž๋กœ ํ‘œํ˜„ - ์›๋ณธ๊ณผ ์‚ฌ๋ณธ์„ ๊ตฌ๋ถ„ํ•˜๋Š” ๋ชฉ์  - ํ•ต์‹ฌ: (1) ์ด๋ฆ„์ด ๋ฌธ์ž(ํŒŒ์ผ๋ช…) = ๋…ผ๋ฆฌ์  ๊ตฌ์กฐ = ๋ณ€์ˆ˜ (2) ์ด๋ฆ„์ด ์ˆซ์ž(i-node) = ๋ฌผ๋ฆฌ์  ๊ตฌ์กฐ = ์ƒ์ˆ˜ c. ๊ตฌ์กฐ d. ์‹ค์Šต - Link ์ƒ์„ฑ : ln (1) Hard Link : ln /bin/bash bash1 (2) Soft Link : ln -s/bin/bash bash2 - Hard Link vs Soft Link (1) Hard Link {1} ์›๋ณธ : /bin/bash {2} ๋งํฌ : /root/bash1 {3} /root/bash1 ํŒŒ์ผ์„ ์ˆ˜์ • -> /bin/bash ํŒŒ์ผ๋„ ๋™์‹œ์— ์ˆ˜์ • {4} ์›๋ณธ๊ณผ i-node๊ฐ’์ด ๋™์ผ = ๋ฌผ๋ฆฌ์  ํŒŒ์ผ.. 2021. 4. 12.
[๋ฆฌ๋ˆ…์Šค1] [#11 ์†Œ์œ ๊ถŒ] - ์†Œ์œ ์ž์™€ ์†Œ์œ ๊ทธ๋ฃน, ์†Œ์œ ๊ถŒ ๋ณ€๊ฒฝ a. ์†Œ์œ ์ž์™€ ์†Œ์œ ๊ทธ๋ฃน์œผ๋กœ ๊ตฌ์„ฑ - ์†Œ์œ ์ž : ํŒŒ์ผ์„ ์ƒ์„ฑํ–ˆ๊ฑฐ๋‚˜ ์ง์ ‘ ๊ด€๋ฆฌํ•˜๋Š” ๊ณ„์ • - ์†Œ์œ ๊ทธ๋ฃน : ์†Œ์œ ์ž๊ฐ€ ์†ํ•œ ๊ทธ๋ฃน - ์†Œ์œ ์ž > ์†Œ์œ ๊ทธ๋ฃน b. ์†Œ์œ ๊ถŒ ๋ณ€๊ฒฝ - ์†Œ์œ ์ž์™€ ์†Œ์œ ๊ทธ๋ฃน์„ ๋™์‹œ์— ๋ณ€๊ฒฝ : chown (1) chown user.group abc.txt (2) chown user:group abc.txt - ์†Œ์œ ์ž๋งŒ ๋ณ€๊ฒฝ : chown (1) chown user abc.txt - ์†Œ์œ ๊ทธ๋ฃน๋งŒ ๋ณ€๊ฒฝ : chown, chgrp (1) chown .group abc.txt (2) chown :group abc.txt (3) chgrp group abc.txt ** " . " ์„ ๊ธฐ์ค€์œผ๋กœ ์žก์Œ ** a1์˜ ์†Œ์œ ์ž๊ฐ€ adm์œผ๋กœ ๋ณ€ํ•จ. a1์˜ ์†Œ์œ ๊ทธ๋ฃน์ด bin์œผ๋กœ ๋ณ€ํ•จ. a1์˜ ์†Œ์œ ์ž, ์†Œ์œ ๊ทธ๋ฃน์ด root,.. 2021. 4. 12.
[๋ฆฌ๋ˆ…์Šค1] [#10 ํ—ˆ๊ฐ€๊ถŒ์˜ ์ดํ•ด] - ๊ตฌ์กฐ, ํŠน์ง•, ํ—ˆ๊ฐ€๊ถŒ ๋ณ€๊ฒฝ, chmod a. ๊ตฌ์กฐ : 3(rwx)x3(USER, GROUP, OTHER) = 9์ž๋ฆฌ - ์ฝ๊ธฐ : Read - ์“ฐ๊ธฐ : Write - ์‹คํ–‰ : eXtend b. ํŠน์ง• : 8์ง„์ˆ˜ = 0~7 - ๊ถŒํ•œ ์—†์Œ : 0 ๋˜๋Š” - - ์ฝ๊ธฐ : 4 ๋˜๋Š” r - ์“ฐ๊ธฐ : 2 ๋˜๋Š” w - ์‹คํ–‰ : 1 ๋˜๋Š” x - ์ „์ฒด : 7 ๋˜๋Š” rwx c. ๊ตฌ์กฐ ๊ตฌ๋ถ„ USER GROUP OTHER ๊ฒฐ๊ณผ ์ฝ๊ธฐ r r r 444 ์“ฐ๊ธฐ w w w 222 ์‹คํ–‰ x x x 111 ๊ฒฐ๊ณผ 7 7 7 777 d. ํ—ˆ๊ฐ€๊ถŒ ๋ณ€๊ฒฝ : chmod - ์ˆซ์ž : USER, GROUP, OTHER ๋ชจ๋‘ ๋ณ€๊ฒฝ (1) chmod 644 abc.txt : rw-r--r-- (2) chmod 755 abc.txt : rwxr-xr-x (3) chmod 600 abc.txt : .. 2021. 4. 12.
[๋ฆฌ๋ˆ…์Šค1] [#09 ls -l (๋˜๋Š” ll)์˜ ์ดํ•ด] - a. ex) - ์˜ˆ์‹œ : lrwxrwxrwx. 1 root root 7 4์›” 10 16:24 bin -> usr/bin b. FIle Type (1) - : File (2) b : Block Device (HDD ๋“ฑ ๋ฌผ๋ฆฌ ์ €์žฅ์†Œ) (3) c : Console (์‚ฌ์šฉ์ž ์ ‘์†) (4) d : Directory (ํด๋”) (5) l : Symbolic Link (๋ฐ”๋กœ๊ฐ€๊ธฐ) c. ํ—ˆ๊ฐ€๊ถŒ(Permission) : rwxrwxrwx (1) ์ฒซ๋ฒˆ์งธ rwx : ์†Œ์œ ์ž(USER) (2) ๋‘๋ฒˆ์งธ rwx : ์†Œ์œ ๊ทธ๋ฃน (GROUP) (3) ์„ธ๋ฒˆ์งธ rwx : ์†Œ์œ ์ž ์™ธ (OTHER) d. ๋งํฌ ์ˆ˜ : 1 e. ์†Œ์œ ๊ถŒ : root root (1) ์ฒซ๋ฒˆ์งธ root : ์†Œ์œ ์ž (2) ๋‘๋ฒˆ์งธ root : ์†Œ์œ ๊ทธ๋ฃน f. ์ƒ์„ฑ(๋˜๋Š” ์ตœ์ข… .. 2021. 4. 12.
[๋ฆฌ๋ˆ…์Šค1] [#08. 2๊ฐœ ์ด์ƒ์˜ ๋ช…๋ น์–ด ์‚ฌ์šฉ์— ๊ด€ํ•œ ๋ช‡ ๊ฐ€์ง€ ๋ฐฉ๋ฒ•] - pipe ๋˜๋Š” filter, ๊ต์ง‘ํ•ฉ, ํ•ฉ์ง‘ํ•ฉ, ํ‘œ์ค€์ž…์ถœ๋ ฅ 8. 2๊ฐœ ์ด์ƒ์˜ ๋ช…๋ น์–ด ์‚ฌ์šฉ์— ๊ด€ํ•œ ๋ช‡ ๊ฐ€์ง€ ๋ฐฉ๋ฒ• a. pipe ๋˜๋Š” filter - ํ‚ค : Shift + \ = | - ์ •์˜ : 1๋ฒˆ ๋ช…๋ น์–ด ์ถœ๋ ฅ์— 2๋ฒˆ ๋ช…๋ น์–ด๋ฅผ ๋Œ€์ž… - ์‚ฌ์šฉ๋ฒ• : [๋ช…๋ น์–ด1] | [๋ช…๋ น์–ด2] - ์˜ˆ์‹œ : ls -l / ์‹คํ–‰ ์‹œ "lib" ๋ผ๋Š” ๋‹จ์–ด๋งŒ ์ฐพ์•„์„œ ์ถœ๋ ฅ = ls -l / | grep lib b. ๊ต์ง‘ํ•ฉ(AND) - ์ •์˜ : 1๋ฒˆ ๋ช…๋ น์–ด ์‹คํ–‰ ํ›„ 2๋ฒˆ ๋ช…๋ น์–ด ์‹คํ–‰ - ํ˜•์‹ : [1๋ฒˆ ๋ช…๋ น์–ด] && [2๋ฒˆ ๋ช…๋ น์–ด] - ์˜ˆ์‹œ (1) ๊ฐ€๋Šฅ ์˜ˆ์‹œ: {1} ls / && ls -l /tmp {2} ls /tmp && ls /kor (/kor ๊ฒฝ๋กœ๋Š” ์—†์ง€๋งŒ ์•ž ๋ช…๋ น์–ด๊ฐ€ ์„ฑ๋ฆฝํ•˜๋ฏ€๋กœ ๊ฐ€๋Šฅ) (2) ๋ถˆ๊ฐ€๋Šฅ ์˜ˆ์‹œ : ls /kor && ls -l /tmp (/kor ๊ฒฝ๋กœ๊ฐ€ ์—†๊ธฐ ๋•Œ๋ฌธ์— ์‹คํ–‰X.. 2021. 4. 12.
[๋ฆฌ๋ˆ…์Šค1] [#07. ๋ช…๋ น์–ด์˜ ์ ˆ๋Œ€ ๊ฒฝ๋กœ] - which 7. ๋ช…๋ น์–ด์˜ ์ ˆ๋Œ€ ๊ฒฝ๋กœ - ํ™•์ธ : which - ํŠน์ง•: (1) ํ™˜๊ฒฝ๋ณ€์ˆ˜(PATH) ์— ๋“ฑ๋กํ•œ ๊ฒฝ๋กœ์—์„œ ๊ฒ€์ƒ‰ (2) alias์— ๋“ฑ๋กํ•œ ๊ฒฝ์šฐ์—๋Š” ์„ค์ •ํ•œ ๋‚ด์šฉ๊นŒ์ง€ ํ™•์ธ ๊ฐ€๋Šฅ 2021. 4. 12.
[๋ฆฌ๋ˆ…์Šค1] [#06. ๊ธฐ์ดˆ๋ช…๋ น์–ด]- shellcommand, ๋ช…๋ น์–ด ๊ตฌ์กฐ, ์ ‘์†์žํ™•์ธ, ๊ฒฝ๋กœ, ํŒŒ์ผ๋‚ด์šฉ ํ™•์ธ, ๋‹จ์ถ•์–ด ๋ช…๋ น์–ด ํ˜•์‹ 6. ๊ธฐ์ดˆ ๋ช…๋ น์–ด์˜ ์ดํ•ด a. shell command ์ดํ•ด - ์ถœ๋ ฅ: [root@localhost ~]# - ์‚ฌ์šฉ์ž ๊ณ„์ •๋ช…: root - PC ์ด๋ฆ„(ํ˜ธ์ŠคํŠธ๋ช…) : localhost - ํ˜„์žฌ ๊ฒฝ๋กœ : ~ (์‚ฌ์šฉ์ž์˜ root directory) - ๊ณ„์ • ํ˜•์‹ : (1) # : root (2) $ : ์ผ๋ฐ˜ b. ๋ช…๋ น์–ด ๊ตฌ์กฐ: [๋ช…๋ น์–ด] [์˜ต์…˜] [์ธ์ž๊ฐ’] c. ๋‚˜๋Š” ๋ˆ„๊ตฌ์ธ๊ฐ€? - Kernel Version: uname -r - ์ ‘์†์ž ํ™•์ธ : (1) ๋‚˜๋Š” ๋ˆ„๊ตฌ์ธ๊ฐ€? : who am i (2) ์ „์ฒด ์ ‘์†์ž ํ™•์ธ : who - ๊ตฌ๋ถ„: (1) tty : Console (์ง์ ‘ ์ ‘์†) (2) pts : Remote (์›๊ฒฉ ์ ‘์†) ์œ„์˜ ๊ฒฝ์šฐ์—๋Š” ์›๊ฒฉ์ ‘์†ํ•œ ์‚ฌ์šฉ์ž๊ฐ€ ์—†๊ธฐ ๋•Œ๋ฌธ์— ์ง์ ‘ ์ ‘์†ํ•œ ๋‚˜ ์ž์‹ ์ธ tty1๋งŒ ์ถœ๋ ฅ๋จ... 2021. 4. 12.
728x90