# 기초 Linux 명령어

Linux에는 정말 많은 명령어와 그 사용법이 있습니다. 여기서는 많이 사용되는 명령어만 소개합니다.

* `ls`: 현재 디렉토리의 하위 파일 및 디렉토리 목록
* `cd`: 디렉토리 이동
  * `cd <name>`: `<name>`으로 이동
  * `cd ~`: 홈 디렉토리로 이동
  * `cd ..`: 상위 디렉토리로 이동
  * `cd -`: 이전 디렉토리로 이동
* `mkdir`: 디렉토리 생성
  * `mkdir <name1> <name2> ...`: `<name1>`, `<name2>`, ... 디렉토리를 생성
* `rmdir`: 디렉토리 삭제
  * `rmdir <name1> <name2> ...`: `<name1>`, `<name2>`, ... 디렉토리를 삭제
  * `rmdir -r ...`: 파일이 들어있는 디렉토리를 삭제
* `cp`: 파일 복사
  * `cp <name1> <name2>`: `<name1>`을 복사해서 `<name2>` 생성
  * `cp <name1> <name2> ... <dir>`: `<name1>`, `<name2>`, ...를 `<dir>`에 복사
  * `cp -r ...`: 파일 대신 디렉토리를 복사
* `cd`: 디렉토리 이동
* `mv`: 파일 이동
  * `mv <name1> <name2>`: `<name1>`의 이름을 `<name2>`로 변경
  * `mv <name1> <name2> ... <dir>`: `<name1>`, `<name2 >`, ...를 `<dir>`에 이동
* `rm`: 파일 삭제
  * `rm <name1> <name2>...`: `<name1>`, `<name2>`, ...를 삭제
  * `rm -r ...`: 디렉토리 삭제
* `sudo`: root 권한 부여
  * `sudo <command>`: root 권한으로 `<command>` 실행


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kimhappy.gitbook.io/the-guide/reading/linux-command.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
