Linux Commands

Even if you don't deal with Linux, you'll encounter Linux commands while programming. So I tried to understand Linux commands that I met every time and recorded the usage examples.

command

discription

Example

alias

๋ช…๋ น์–ด ๊ฐ„์†Œํ™”

$ alias va="source venv/bin/activate"

echo

์ถœ๋ ฅ

$ echo 'this is a test' -> this is a test

. / source

์‹คํ–‰

$ source .venv/bin/activate

>

๋ช…๋ น์–ด ๋’ค์— ๋‚˜์˜ค๋Š” ํŒŒ์ผ์— wite, overwrite

$ echo 'hello' > text.txt

>>

๋ช…๋ น์–ด ๋’ค์— ๋‚˜์˜ค๋Š” ํŒŒ์ผ์— ์ถ”๊ฐ€

$ echo 'hello' >> text.txt

pwd

ํ˜„์žฌ ๊ฒฝ๋กœ ์ถœ๋ ฅ

$ pwd

Last updated