<aside> ✅ 1. wget 2. git clone
</aside>
→ 디렉토리 및 파일 생성
<aside> 💡 *** 리눅스 제어하기 위한 중요한 2가지 방법**
</aside>
nojeans@xudegloss:~$ mkdir linux_egoing
nojeans@xudegloss:~$ ls
linux_egoing # 디렉토리 생성
nojeans@xudegloss:~/linux_egoing$ touch empty_file.txt # touch <생성하고자 하는 파일>
nojeans@xudegloss:~/linux_egoing$ ls
empty_file.txt # 빈 파일 생성
→ 상대 경로, 절대 경로 (경로)
현재 내리고 있는 명령은 “디렉토리 안”에 있는 파일을 대상으로 실행된다.
nojeans@xudegloss:~$ mkdir linux_egoing
nojeans@xudegloss:~$ ls
linux_egoing
nojeans@xudegloss:~$ cd linux_egoing/
nojeans@xudegloss:~/linux_egoing$ ls
nojeans@xudegloss:~/linux_egoing$ pwd
/home/nojeans/linux_egoing
nojeans@xudegloss:~/linux_egoing$ cd /home/nojeans # 부모 디렉토리 가는 방법 1 -> 절대경로
nojeans@xudegloss:~$ pwd
/home/nojeans
nojeans@xudegloss:~$ cd linux_egoing/
nojeans@xudegloss:~/linux_egoing$ pwd
/home/nojeans/linux_egoing
nojeans@xudegloss:~/linux_egoing$ cd .. # 부모 디렉토리 가는 방법 2 -> 상대경로
nojeans@xudegloss:~$ pwd
/home/nojeans
상대 경로는 “현 위치”에 따라서 달라진다.
절대 경로는 어디 있어도 위치가 고정되어 있기 때문에, “현 위치”에 따라서 달라지지 않는다.
→ 명령어 매뉴얼 찾는 방법
| help | man |
|---|---|
| 페이지 나가지 않고 간단하게 명령어 설명 | 페이지를 빠져 나가서 자세하게 명령어 설명 |
man에서 원하는 단어만 찾고 싶은 경우, /<원하는 단어> 찾을 수 있다!