๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๋ฐ˜์‘ํ˜•

ubuntu22.043

[LINUX] ๋””์Šคํฌ ๊ณต๊ฐ„ ๋ถ€์กฑ : ์–ด๋””์„œ ๋งŽ์ด ์‚ฌ์šฉ๋˜๋Š”์ง€ ์ฐพ๊ธฐ #du Ubuntu 22.04 ์‚ฌ์šฉ์ค‘ ์ตœ๊ทผ df -h ๋กœ ํ™•์ธ ์‹œ, ๋‚ด ์ƒ๊ฐ๋ณด๋‹ค ๋„ˆ๋ฌด ๋งŽ์€ ์šฉ๋Ÿ‰์„ ์‚ฌ์šฉ์ค‘์ด๋ผ ํ™•์ธ์ด ํ•„์š”ํ•จ ์ด์ „์— ์ผํ•  ๋•Œ , ๋น„์Šทํ•œ ์ผ์ด ์žˆ์—ˆ๋Š”๋ฐ ์›์ธ์ด ๋„์ปค์˜€๋˜๊ฒŒ ์ƒ๊ฐ๋‚ฌ๋Š”๋ฐ.. ์šฐ์„  ํ™•์ธํ•ด๋ณด๊ณ ์ž ํ•จ ์•„๋ž˜๋Š” ํ˜„์žฌ ๋‚ด ๋””์Šคํฌ ์ƒํƒœ์ด๋‹ค. ๋ณ„๋กœ.. ์‚ฌ์šฉํ•˜๋Š”๊ฒŒ ์—†๋‹ค๊ณ  ์ƒ๊ฐํ•˜๊ณ , ์šฉ๋Ÿ‰์„ ๋„ˆ๋ฌด ๋งŽ์ด ์“ด ๋“ฏ ํ•ด์„œ ์ตœ๊ทผ์— ๋ฐ›์•„๋†จ๋˜ Docker image๋“ค๋„ ํ•„์š”ํ•œ๊ฒƒ๋งŒ Docker hub์— ์˜ฌ๋ ค๋‘๊ณ  ๋‹ค ์ง€์› ๋Š”๋ฐ๋„ 927GB๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋‹ค๊ณ  ๋ณด์—ฌ์ง„๋‹ค. ์–ด๋””์„œ ์“ฐ๊ณ  ์žˆ๋Š”์ง€๋ฅผ ์šฐ์„  ์ฐพ์•„๋ณด๊ธฐ ์œ„ํ•ด / ์œ„์น˜์—์„œ du๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ํ™•์ธํ•ด๋ดค๋‹ค. -h ์˜ต์…˜์€ ์šฉ๋Ÿ‰์„ ๋ณด๊ธฐ ํŽธํ•˜๊ฒŒ M(MB)/G(GB)/T(TB) ๋“ฑ.. ์œผ๋กœ ๋ณด์—ฌ์ค€๋‹ค GB์ด์ƒ์ธ ๊ฒƒ๋“ค๋งŒ ๋ณด๊ธฐ ์œ„ํ•ด grep G๋ฅผ ์‚ฌ์šฉํ–ˆ๋‹ค sudo du -h --max-depth=.. 2023. 12. 28.
[C : ls] C์–ธ์–ด๋กœ ls ๊ตฌํ˜„ํ•˜๊ธฐ #dirent ls๋ฅผ ๊ตฌํ˜„ํ•˜๊ธฐ ์œ„ํ•ด ์‚ฌ์šฉ ํ•  dirent์— ๋Œ€ํ•ด ์•Œ์•„๋ด„ directory ๋ฅผ ์—ด๊ธฐ ์œ„ํ•ด opendir() ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜๋Š”๋ฐ, ์–˜๋Š” ๋””๋ ‰ํ„ฐ๋ฆฌ๊ฒฝ๋กœ๋ฅผ ๋ฐ›๊ณ , ๋””๋ ‰ํ„ฐ๋ฆฌ๋ฅผ ์—ด ์ˆ˜ ์žˆ์œผ๋ฉด DIR *, ์—ด ์ˆ˜ ์—†์œผ๋ฉด NULL ๋ฐ˜ํ™˜ /* Open a directory stream on NAME. Return a DIR stream on the directory, or NULL if it could not be opened. This function is a possible cancellation point and therefore not marked with __THROW. */ extern DIR *opendir (const char *__name) __nonnull ((1)); DIR์€ ๋ญ์ง€ ? /* This i.. 2023. 12. 16.
[C : ctags] ctags ์„ค์น˜ #universal-ctags ctags ์•„๋‹ˆ๊ณ  universal-ctags ์˜ค๋žœ๋งŒ์— C์–ธ์–ด๋ฅผ ๋‹ค์‹œ๋ณด๋ฉด์„œ.. ctags๋ฅผ ์“ฐ๋ ค๊ณ  ํ–ˆ๋”๋‹ˆ ์„ค์น˜๊ฐ€ ์•ˆ๋˜์–ด ์žˆ์–ด์„œ ์„ค์น˜ํ•˜๋ ค๊ณ  ํ–ˆ๋Š”๋ฐ.. ๐Ÿ˜ฅ ์™œ๋•Œ๋ฌธ์— ํŒจํ‚ค์ง€๊ฐ€ ์—…์จ !!! ๐Ÿ˜ก E: Package 'ctags' has no installation candidate mimi@mimi:~/Mimi/lang/c$ sudo apt-get install -y ctags Reading package lists... Done Building dependency tree... Done Reading state information... Done Package ctags is a virtual package provided by: exuberant-ctags 1:5.9~svn20110310-16ubuntu0.2.. 2023. 12. 16.
๋ฐ˜์‘ํ˜•