# 登入：Linux 基本的語法

## 基本上 Linux 基本的語法如下:(基本公式)

COMMAND \[-OPTIONS] \[-- SUB-OPTIONS] \[PARAMETER] \[\↵ Enter] \[;]  ↵ Enter&#x20;

以幾個簡單的 命令 (command) 來了解一下命令列的操作. 每下一個命令之後要按 Enter 鍵, 電腦才會執行

#### date&#x20;

看看今天的日期和現在的時間.

```
date "+現在時間 %l:%m%p on %A"
現在時間  9:12AM on Monday
```

#### cal&#x20;

看看這個月的月曆.

```
cal
    December 2019   
Su Mo Tu We Th Fr Sa
 1  2  3  4  5  6  7
 8  9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31       
```

#### ls&#x20;

看看目前目錄下有那些檔案及子目錄.

#### echo 印一列空白列

#### exit 結束工作, 離開命令列模式

### 文字界面的控制鍵

&#x20;          \<Ctrl+Alt+F(1\~7)> 切換終端機

&#x20;          <↑>、<↓> 歷史查詢

&#x20;              history 指令回顧

&#x20;              \<!> 指定指令編號

&#x20;          \<Ctrl+C> 停止目前的運算&#x20;

&#x20;          \<Ctrl+D> 登出或檔案結束&#x20;

&#x20;          \<Tab> 指令補全

&#x20;          \<Ctr+R> 歷史查詢+補全

### 輸入控制

&#x20;              \<Ctrl+U> 刪除整行

&#x20;              \<Ctrl+W> 刪除游標之前的輸入

&#x20;              \<Ctrl+K> 刪除游標之後的輸入

&#x20;              \<Ctrl+L> 清除游標之上的螢幕


---

# 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://kawsing.gitbook.io/opensystem/andoid-shou-ji/untitled-4/linux-cli/deng-ru-linux-ji-ben-de-yu-fa.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.
