Creating and removing · 만들기 및 삭제하기
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · 이 페이지는 최신 브라우저(SharedArrayBuffer 지원)가 필요합니다. Chrome, Edge, Firefox 또는 Safari를 최신 버전으로 업데이트해 주세요.
Making things
mkdirmakes a directory;touchmakes an empty file:
mkdir notes
touch notes/todo.txt
- After these, you have a
notesfolder with an emptytodo.txtinside it.
Copying and moving
cpcopies a file;mvmoves (or renames) it:
cp hello.txt backup.txt
mv backup.txt notes/backup.txt
mv old newis also how you rename something — moving it to a new name.
Removing — carefully
rmremoves a file. To remove a folder and everything in it, add-r(recursive):
rm backup.txt
rm -r notes
- ⚠️ There is no recycle bin on the command line.
rmis permanent — always check before you delete.
Common mistakes
rmdeletes for good — there is no recycle bin.mkdirmakes a folder;rmdironly removes an empty one.
Explore · 탐색하기
Folders and files · 폴더 및 파일
mkdir / touch add to the tree; cd moves where you are. · mkdir / touch는 트리에 추가하고, cd는 위치를 이동합니다.
Make a new folder called notes with mkdir notes. The check then lists the folder to confirm it appeared. · notes라는 이름의 새 폴더를 mkdir notes로 만드십시오. 이후 체크에서 폴더가 생성되었음을 확인하도록 나열합니다.
Make a copy of hello.txt named backup.txt using cp. · hello.txt를 복사하여 backup.txt이라는 이름으로 cp을 사용하여 저장하십시오.