useful expression - pinedance/codenote GitHub Wiki
ls -als # LiSt
find <location> -name 'sometext' # sometext๊ฐ ์ด๋ฆ์ ๋ค์ด๊ฐ๋ file์ location์์ ์ฐพ์์ค
cd <directory> # Change Directory
pwd # Present Working Directory
mkdir # Make a directory
rm <file> # ReMove / ๋๋ ํ ๋ฆฌ๋ฅผ ์ง์ธ ๋๋ -r ์ต์
(recursive)
mv <file1> <file2> # Move
cp <file1> <file2> # CoPy
mv -r <directory1> <directory2> # ๋๋ ํ ๋ฆฌ์ ๊ฒฝ์ฐ -r ์ต์
(recursive)
cp -r <directory1> <directory2> # ๋๋ ํ ๋ฆฌ์ ๊ฒฝ์ฐ -r ์ต์
(recursive)
cat <file> # file ๋ด์ฉ ๋ณด๊ธฐ
head -n <file> # ์์์ n์ค ๊น์ง ๋ณด๊ธฐ
tail -n <file> # ๋ค์์ n์ค ๊น์ง ๋ณด๊ธฐ
more <file> # file์ ๋ด์ฉ์ ํ ํ๋ฉด์ฉ ๋ณด๊ธฐ
grep 'sometext' <filename> # file์ ์๋ ํด๋น ๋ฌธ์์ด์ ์ฐพ์์ค
ls -al | more
: ls ๋ช
๋ น์ ์ถ๋ ฅ์ more๋ก ๋ณด๋ด์ด์ ๋ฆฌ์คํ
์ ํ ํ์ด์ง์ฉ ๋ณด์ด๊ฒ ํ๋ค.
๋ฐ๋ก๊ฐ๊ธฐ ๋ง๋ค๊ธฐ
ln -s <file> <shortcut> # LiNk, -s ์ต์
์ด ์์ผ๋ฉด hardlink
ํ์ผ์ด๋ ๋๋ ํ ๋ฆฌ์ ๋ํ ์ฝ๊ธฐ(r), ์ฐ๊ธฐ(w), ์คํํ๊ธฐ(x) ์์ ๊ถ์ ๋ณ๊ฒฝ
chmod
์์ ์ ๋ณ๊ฒฝ
chown