본문 바로가기
Edu/15. linux

기초 명령어: cd, mkdir, rm, touch

by Lacuna028 2021. 11. 14.

- 리눅스는 리누스 토르발스(리누스 토발즈)가 만듦

- 리누스 토발즈는 git도 만듦

 

- ls

- ls -al: list all

- mkdir <file name> : make directory

- cd <file name>: change directory

- touch <file name.확장자>: create file

- cd ..: 뒤로 가기 느낌. 현 디렉토리에서 상위 디렉토리로 이동

- rm -rf <file name>: remove file or directory

- ls

# list all
- ls -al

# make directory
- mkdir <file name> 

# change directory
- cd <file name>

# create file
- touch <file name.확장자> 

# 뒤로 가기 느낌. 현 디렉토리에서 상위 디렉토리로 이동
- cd ..

# remove file or directory
- rm -rf <file name>

 

'Edu > 15. linux' 카테고리의 다른 글

윈도우에서 linux명령어 ls 쓰기  (0) 2023.03.23
linux 주요 디렉토리 설명  (0) 2022.05.26