Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions docs/books/admin_guide/03-commands.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Linux Commands
author: Antoine Le Morvan
contributors: Steven Spencer, Aditya Putta
contributors: Steven Spencer, Aditya Putta, tianci li
update: 11-08-2021
---

Expand Down Expand Up @@ -688,9 +688,9 @@ rm [-f] [-r] file [file] [...]

| Options | Information |
| ------- | ---------------------------------------- |
| `-f` | Do not ask for confirmation of deletion. |
| `-i` | Requires confirmation of deletion. |
| `-r` | Recursively deletes subdirectories. |
| `-f` | Do not ask whether to delete. |
| `-i` | Ask whether to delete. |
| `-r` | Delete a directory and recursively delete its subdirectories. |

!!! Note

Expand Down Expand Up @@ -737,7 +737,7 @@ A few concrete cases will help you understand the difficulties that can arise:
$ mv /home/rockstar/file1 /home/rockstar/file2
```

Renames `file1` to `file2`, if `file2` already exists, it will be replaced by `file1`.
Renames `file1` to `file2`. If `file2` already exists, replace the contents of the file with `file1`.

```bash
$ mv /home/rockstar/file1 /home/rockstar/file2 /tmp
Expand Down Expand Up @@ -863,14 +863,14 @@ The commands specific to `less` are:

| Command | Action |
| ----------------- | ----------------------------------------------- |
| `h` | Help. |
| `Arrows` | Move up, down a line, or to the right or left. |
| `Enter` | Move down one line. |
| `Space` | Move down one page. |
| `PgUp` and `PgDn` | Move up or down one page. |
| `Begin` and `End` | Move to the beginning or end of a file. |
| <kbd>h</kbd> | Help. |
| <kbd>↑</kbd><kbd>↓</kbd><kbd>→</kbd><kbd>←</kbd> | Move up, down a line, or to the right or left. |
| <kbd>Enter</kbd> | Move down one line. |
| <kbd>Space</kbd> | Move down one page. |
| <kbd>PgUp</kbd> and <kbd>PgDn</kbd> | Move up or down one page. |
| <kbd>gg</kbd> and <kbd>G</kbd> | Move to the first and last pages |
| `/text` | Search for text. |
| `q` | Quit the `less` command. |
| <kbd>q</kbd> | Quit the `less` command. |

### `cat` command

Expand Down