본문 바로가기
Programming/Git

[Git] Linux Command

by skyrun 2022. 10. 8.

Commands

~ : Home Directory

./ : Current Working Directory

../ : Upper Directory

=> Could be connected like : cd ~/Documents (goto \Home\Documents)

pwd : Print Workng Directory

ls : List -> List files and folders in current directory
ls Options (Write after ‘-’)
l : Detail Information
a : Hidden Files and Director
r : Reverse Order
t : Sort by Time

cd : Change Directory

mkdir : Make Directory

rm : Remove
rm Optons (Write after’-’)
r : Remove Including Subdirectories
vim : Make the File and Open It -> vim test.txt
vim Commands
i : Insert Mode
esc : ex Mode
ex Mode Option
:w -> Save
:q -> Exit
:wq -> Save and Exit
:q! -> Exit without Save and Create .swp File
cat : Concatenate -> Shows .txt File Contents
cat File1, File2…File3 > New File : Concatenate n Files and Make a New One.
cat File1>>File2 : Concatenate File1 Contents to the end of File2

clear : Clear Terminal

exit : Exit Terminal

'Programming > Git' 카테고리의 다른 글

[Git] Git Remote 변경하기  (0) 2022.10.17
[Git] Connect to Github  (0) 2022.10.09
[Git] Branch Command  (0) 2022.10.08
[Git] Git Tips  (2) 2022.10.08
[Git] Git Version Command  (0) 2022.10.08

댓글