๋ถ๋ฅ ์ ์ฒด๋ณด๊ธฐ
-
๐ Ch11 Running program at specified times ๐๐ ํ๊ต ๊ณต๋ถ/๐ ์ ๋์ค ์์คํ 2025. 4. 12. 00:16
System clock์ด์์ฒด์ ๊ฐ ํ์ฌ ์๊ฐ์ ๊ด๋ฆฌํ๋ ํต์ฌ ์์ / ํ์ผ ํ์์คํฌํ ๊ธฐ๋ก, ํ๋ก์ธ์ค ์ค์ผ์ค๋ง ๋ฑ ๋ค์ํ ์์ ์ ์ฌ์ฉ๋จdate ์ธ์ X - ํ์ฌ ์์คํ ์ ๋ ์ง, ์๊ฐ ์ถ๋ ฅ์ธ์ O - ๊ฐ ์ด์ฉํด ์์คํ ํด๋ฝ ์ค์ ex) date 201505050001.30Scheduling commands์์คํ ์์ ์์ ์ ๋ฏธ๋ฆฌ ์์ฝํด ์ฃผ๊ธฐ์ ๋๋ ๋จ๋ฐ์ฑ์ผ๋ก ์คํํ๊ฒ ํด์ฃผ๋ ๋๊ตฌcron์ฃผ๊ธฐ์ ์ธ ์์ ์์ฝPeriodicCrond(daemon) - ๋ฐฑ๊ทธ๋ผ์ด๋์์ ํญ์ ์คํ๋๋ฉด์ crontab ํ์ผ์ ์ ์๋ ์์ฝ ์์ ๋ค์ ์ง์ ๋ ์๊ฐ์ ์คํcrontab(file) - ๊ฐ ์ฌ์ฉ์๋ ์์ ์ crontab ํ์ผ์ ๊ฐ์ง๊ณ ์์ผ๋ฉฐ, ํ์ผ ๋ด์ ์์ฝ ์์ (๋ช ๋ น์ด์ ์คํ ์๊ฐ ์ง์ ํ ํ๋ค)์ด ์ ์ฅ๋จcrontab -e (edit..
-
๐ Ch10 Job Control & Process Management ๐๐ ํ๊ต ๊ณต๋ถ/๐ ์ ๋์ค ์์คํ 2025. 4. 11. 10:19
Process์คํ ์ค์ธ ํ๋ก๊ทธ๋จ์ ์ธ์คํด์ค / ๊ฐ๊ฐ์ ํ๋ก์ธ์ค๋ ๋ ๋ฆฝ์ ์ธ ์คํ ๋จ์๋ก ๊ด๋ฆฌ๋จAn instance of running programํต์ฌ ์ฉ์ดPID - process identifier (1 - 32768) / ํ๋ก์ธ์ค๋ง๋ค ๋ถ์ฌ๋๋ ๊ณ ์ ๋ฒํธPPID - parent PIDpid 0 - schedule demon / ์ปค๋ ๋ด๋ถ์์ ์คํ๋๋ ํ๋ก์ธ์ค ๊ด๋ฆฌ์ ํต์ฌpid 1 - init process / ์์คํ ๋ถํ ์ ๊ฐ์ฅ ๋จผ์ ์คํ, ๋ชจ๋ ๋ค๋ฅธ ํ๋ก์ธ์ค์ ๋ถ๋ชจ ์ญํ ์ฃผ์ ๋ช ๋ น์ดps - ํ๋ก์ธ์ค ์ํ ํ์ธ ์ ์ฌ์ฉ$ ps [-l] - see (my own) process ์ต์ ์์ด ๊ธฐ๋ณธ์ ์ผ๋ก ์์ ์ ํ์ฌ ํฐ๋ฏธ๋์์ ์คํ ์ค์ธ ํ๋ก์ธ์ค ๋ฆฌ์คํธ ํ์ธ / -l ์ต์ ์ ์์ธํ ํ๋ก์ธ์ค ์ ๋ณด ํ์$ ps -..
-
๐ Ch08 Advanced Tools ๐๐ ํ๊ต ๊ณต๋ถ/๐ ์ ๋์ค ์์คํ 2025. 4. 11. 09:00
Regular Expression ์ ๊ท ํํ์A syntactical set or phrase that represents a pattern of text or strings๋ฌธ์์ด ๋ด์์ ํน์ ํจํด ์ฐพ๊ฑฐ๋ ์กฐ์ํ๊ธฐ ์ํด ์ฌ์ฉEnables you to represent a varying array of characters with a much smaller set of predefined characters๋ฌธ์์ด์์ ์ํ๋ ํ ์คํธ ์ฐพ์ / ๊ฐ๋จํ ์๋ง์ผ๋ก ๋ค์ํ ํํ์ ๋ฌธ์์ด์ ๋์ ๊ฐ๋ฅOften include metacharactersMetacharacters - characters that represent another set or group of characters or commandsํน๋ณํ ์๋ฏธ,..
-
๐ Ch07 vi ๐๐ ํ๊ต ๊ณต๋ถ/๐ ์ ๋์ค ์์คํ 2025. 4. 3. 16:05
vi (Visual Editor)์ ๋์ค ์์คํ ์์ ๊ธฐ๋ณธ์ ์ผ๋ก ์ ๊ณต๋๋ ํ ์คํธ ํธ์ง๊ธฐํ ์คํธ ํ์ผ ํธ์ง / ์ฝ๋ ์์ / ์๋ฒ ์ค์ ํ์ผ ํธ์ง / ๋ก๊ทธ ํ์ธ ๋ฐ ๊ฐ๋จํ ์์ Vi modes ๋ช ๋ น ๋ชจ๋ (Command mode)vi ์คํํ๋ฉด ์ฒ์ ๋ค์ด๊ฐ๋ ๋ชจ๋ / ์ปค์ ์ด๋, ํ ์คํธ ์ญ์ ๋ณต๋ถ ๋ฑ ํธ์ง ๋ช ๋ น ์ ๋ ฅ ๊ฐ๋ฅ์ ๋ ฅ ๋ชจ๋ (Insert mode)ํ ์คํธ ์ง์ ์ ๋ ฅํ๋ ๋ชจ๋๋ช ๋ น ๋ชจ๋์์ i(ํ์ฌ ์์น์์ ์ ๋ ฅ), a(ํ์ฌ ์์น ๋ค์์์ ์ ๋ ฅ), o(์๋ ์ค์ ์ ์ค ์ด๊ณ ์ ๋ ฅ)๋ช ๋ นํ ๋ชจ๋ (Command-line mode / Ex mode)์ ์ฅ, ์ข ๋ฃ ๋ฑ์ ์ํ ๋ช ๋ น์ ์ ๋ ฅํ๋ ๋ชจ๋๋ช ๋ น ๋ชจ๋์์ : ๋๋ฌ ์ง์ $ vi๋น vi ํธ์ง๊ธฐ ์คํ (ํ์ผ ์์ด ์์)$ vi finenamefilename ํ์ผ์ ์ด๊ธฐ (์์ผ..
-
๐ Ch06 Unix Commands In-Depth ๐๐ ํ๊ต ๊ณต๋ถ/๐ ์ ๋์ค ์์คํ 2025. 4. 3. 10:36
Anatomy of a Command$ Command [options] [arguments]command - ์คํํ ๋ช ๋ น์ดoptions - ๋ช ๋ น์ด์ ๋ถ๋ ์ต์ ๋๋ ํ๋๊ทธarguments - ๋ช ๋ น์ด์ ๋์ ํ์ผ, ๋๋ ํ ๋ฆฌ ๋ฑ$ ls -sCF /usr/bin$ ls -s -C -F /etc$ man lsmanual๋ช ๋ น์ด์ ๋งค๋ด์ผ ํ์ด์ง ๋ณด๊ธฐ$ apropos lsFind related filesํค์๋์ ๊ด๋ จ๋ ๋ช ๋ น์ด/์ค๋ช ์ฐพ์์ค$ whereis echo๋ช ๋ น์ด์ ๋ฐ์ด๋๋ฆฌ ํ์ผ, ์์ค ์ฝ๋, ๋งค๋ด์ผ ์์น ํ ๋ฒ์ ๋ณด์ฌ์ค$ which echo๋ช ๋ น์ด๊ฐ ์ค์ ๋ก ์ด๋์์ ์คํ๋๋์ง ๋ณด์ฌ์คPATH ํ๊ฒฝ๋ณ์ ๋ด์์๋ง ๊ฒ์Meta Characters ๋ฉํ๋ฌธ์Wildcard? : matches any one character..
-
๐ Ch05 Customizing Working Environment ๐๐ ํ๊ต ๊ณต๋ถ/๐ ์ ๋์ค ์์คํ 2025. 4. 3. 10:35
Environment Variable ํ๊ฒฝ ๋ณ์์ด์์ฒด์ , ์์ด ๋์ํ๋ ๋ฐฉ์์ ์ค์ ํ๋ ์ ์ญ ๋ณ์affects the look and feel of computing experiencesPS1 : commands prompts ์ ํ๋กฌํํธ ์ค์ ๋ณ์์ฌ์ฉ์๊ฐ ํฐ๋ฏธ๋ ์ฌ์ฉํ ๋, ์ ๋ ฅ ๋๊ธฐ ์ํ์ผ ๋๋ณด์ด๋ ๊ทธ ํ์์คPS1 = ‘[hello >> ‘ // sh - ์์์ ์ ๋ ฅ ๋๊ธฐ ์ํ์ผ ๋PS1 = ‘[\h\w \# >> “ // bash \\h - ํธ์คํธ ์ด๋ฆ / \\w - ํ์ฌ ์์ ์ค์ธ ๋๋ ํ ๋ฆฌ / \\# - ๋ช ๋ น์ด ์คํ ํ์PATH : ๋ช ๋ น์ด๋ฅผ ์ฐพ๋ ๊ฒฝ๋กcontains a list of directory that are searched when a user input a command๋ช ๋ น์ด๋ฅผ ์ ๋ ฅํ์..
-
๐ Ch04 File System ๐๐ ํ๊ต ๊ณต๋ถ/๐ ์ ๋์ค ์์คํ 2025. 4. 3. 10:34
File System๋์คํฌ ๋๋ผ์ด๋ธ (Disk Drive)๋ฌผ๋ฆฌ์ ์ ์ฅ์ฅ์น(ํ๋ ๋์คํฌ, SSD ๋ฑ)์ฌ๋ฌ ๊ฐ์ ํํฐ์ ์ผ๋ก ๋๋ ์ ์์ผ๋ฉฐ, ๊ฐ๊ฐ์ ํํฐ์ ์ ํ์ผ ์์คํ ์ด ์กด์ฌํ ์ ์์ํ์ผ ์์คํ (File System)๊ฐ ํํฐ์ ์๋ ํ์ผ ์์คํ ์ด ํฌํจ๋จ / ํ์ผ ๋ฐ ๋๋ ํฐ๋ฆฌ ๊ด๋ฆฌ์ฌ๋ฌ ๊ฐ์ Cylinder Group์ผ๋ก ๋๋จ / ์ฌ๋ฌ ๊ฐ์ ํธ๋, ์นํฐ๋ก ๊ตฌ์ฑ๋จ. ๋ฌผ๋ฆฌ์ ์ผ๋ก ๊ฐ๊น์ด ๋ฐ์ดํฐ๋ฅผ ํจ๊ผ ์ ์ฅํด ์ฑ๋ฅ ์ต์ ํ๋ถํธ ๋ธ๋ก (Boot Block)ํ์ผ ์์คํ ์ด ํฌํจ๋ ํํฐ์ ์ ์ฒซ ๋ฒ์งธ ์์ญ์ ์์น์์คํ ์ด ๋ถํ ๋ ๋ ์ด์ ์ฒด์ ๋ฅผ ๋ก๋ํ๋ ๋ฐ ์ฌ์ฉ์ํผ ๋ธ๋ก (Super Block)ํ์ผ ์์คํ ์ ๋ํ ๋ฉํ๋ฐ๋ํฐ๋ฅผ ์ ์ฅํ๋ ์์ญํ์ผ ์์คํ ์ ํฌ๊ธฐ, ๋ธ๋ก ํฌ๊ธฐ, ์ฌ์ฉ ๊ฐ๋ฅ ๋ธ๋ก ์, i-node ์ ๋ฑ ์ค์ํ ์ ๋ณด ํฌ..
-
๐ Ch03 Users and Groups ๐๐ ํ๊ต ๊ณต๋ถ/๐ ์ ๋์ค ์์คํ 2025. 4. 3. 10:27
3 primary types of accountsRoot Accounts ๋ฃจํธ ๊ณ์ Super user ์ต๊ณ ๊ด๋ฆฌ์ ๊ณ์ Complete and unfettered control of the system ์์คํ ์ ๋ํ ์์ ํ ์ ์ด ๊ถํNo restrictions ์ ํ ์์ด ์์คํ ๋ณ๊ฒฝ, ๊ด๋ฆฌ, ์ญ์ ๊ฐ๋ฅSystem Accounts ์์คํ ๊ณ์ Needed for the operation ์์คํ ์ ์ ์์ ์ธ ์ด์ ์ํด ํ์์ฌ๋์ด ์ง์ ๋ก๊ทธ์ธํ๋ ๊ฒ ์๋, ๋ฐฐ๊ทธ๋ผ์ด๋์์ ํน์ ์๋น์ค ์คํ ์ํด ์กด์ฌEX) Mail, bin, adm, daemon, noaccess, nobodyUser Accounts ์ฌ์ฉ์ ๊ณ์ ์ผ๋ฐ ์ฌ์ฉ์๊ฐ ์ ๊ทผ ๊ฐ๋ฅํ ๊ณ์ ๊ฐ ์ฌ์ฉ์๊ฐ ๋ ๋ฆฝ์ ์ธ ๊ณ์ ๊ฐ์งLimited access ์์คํ ์ ํต์ฌ ๊ธฐ๋ฅ..