-
๋ฆฌ๋ ์ค | 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 .hidden
READ
ls -a
cat .hidden
https://www.ibm.com/docs/ko/aix/7.2?topic=l-ls-command#ls__row-d3e72870
ls ๋ช ๋ น
์ฉ๋ ๋๋ ํ ๋ฆฌ์ ๋ด์ฉ์ ํ์ํฉ๋๋ค. ๊ตฌ๋ฌธ ํ์ผ์ ์ด๋ฆ ๋๋ ๋๋ ํ ๋ฆฌ์ ๋ด์ฉ ํ์ ls [ -1 ] [ -A ] [ -C ] [ -E ] [ -F ] [-H | -L ] [ -N ] [ -R ] [ -S ] [ -X] [ -a ] [ -b ] [ -c ] [ -d ] [ -e ] [ -f ] [ -g ] [ -i ] [-k] [ -l ] [
www.ibm.com
https://itsfoss.com/show-hidden-files-linux/
How to Show Hidden Files in Ubuntu & Other Linux
Wondering how to see or hide files in Ubuntu Linux? Its damn easy to do so. Here's how to show hidden files in Ubuntu and other Linux distributions.
itsfoss.com
https://www.geeksforgeeks.org/how-to-view-and-create-hidden-files-in-linux/
How To View and Create Hidden Files in Linux - GeeksforGeeks
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
www.geeksforgeeks.org