The Terminal is an interface in which you can write lines of text (commands) to interact with your computerβs system.
π Why do we use Command Line Interface?
μ°λ¦¬μ μΈμ΄μ κ°μ λ§₯λ½μ΄λΌκ³ ν μ μλ€. λ²νΌ(mouse clicking,GUI)μΌλ‘ μμ¬μν΅νλ κ²λ³΄λ€λνλΆνκ³ μ νν μλ―Έλ₯Ό μ λ¬ν μ μλ κΈ°λ₯μ±μ΄ μκΈ° λλ¬Έ.
λ°λ³΅μ μΈ μμ μ μ μ©.
π Basic Command
pwd π prints the filepath of the current directory (print working directory)
/ π root directory μ λκ²½λ‘
./ π current directory
ls π lists files and directories in current directory (list)
ls -R π Show the all the file under the directory
cd πnavigates from one folder to another (change directory)
mkdir π creates a new directory (make directory)
touch π creates a new file
. π refers to current directory μλκ²½λ‘
.. π refers to parent directory μλκ²½λ‘
cat π read the content
mv π move the file to other folder
(ex : mv hello.txt terminal_101folder you wanna move to/hello.rb )
(ex : mv dummy2 dummy) : changed the directory name
rm π remove (ex file only: rm hello.txt) (ex directory : rm -r dummy)
cd ~ π "~" stands for moving to home dierectory
ls -l π list in long format
ls -a π show all files
-help π simple manual
^c π cancel
Note: always name your files and folders in lower_snake_case
In the posix system, the file names begin with a dot(.), it hides the file right away
Put semicolon(;) between every command
π How to use