mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-19 09:35:38 +02:00
mc: add page, disambiguation and alias (#17043)
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com> Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
This commit is contained in:
parent
94549e2fbf
commit
44f3fb8a7d
6 changed files with 52 additions and 10 deletions
17
pages/common/mc.cli.md
Normal file
17
pages/common/mc.cli.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
# mc
|
||||
|
||||
> MinIO Client for object storage and filesystems.
|
||||
> May be named `mc` or `mcli` on some systems.
|
||||
> More information: <https://minio.github.io/mc/>.
|
||||
|
||||
- Add connection to a S3 server:
|
||||
|
||||
`mc alias set {{local}} {{http://localhost:9000}} {{access_key}} {{secret_key}}`
|
||||
|
||||
- Create a bucket:
|
||||
|
||||
`mc mb {{local/bucket_name}}`
|
||||
|
||||
- List buckets and their content recursively:
|
||||
|
||||
`mc ls {{local}} --recursive`
|
14
pages/common/mc.fm.md
Normal file
14
pages/common/mc.fm.md
Normal file
|
@ -0,0 +1,14 @@
|
|||
# mc
|
||||
|
||||
> Midnight Commander, a TUI file manager.
|
||||
> Navigate the directory structure using the `<ArrowKeys>`, the mouse or by typing the commands into the terminal.
|
||||
> See also: `ranger`, `clifm`, `vifm`, `nautilus`.
|
||||
> More information: <https://midnight-commander.org>.
|
||||
|
||||
- Start Midnight Commander:
|
||||
|
||||
`mc`
|
||||
|
||||
- Start Midnight Commander in black and white:
|
||||
|
||||
`mc {{[-b|--nocolor]}}`
|
|
@ -1,14 +1,11 @@
|
|||
# mc
|
||||
|
||||
> Midnight Commander, a TUI file manager.
|
||||
> Navigate the directory structure using the `<ArrowKeys>`, the mouse or by typing the commands into the terminal.
|
||||
> See also: `ranger`, `clifm`, `vifm`, `nautilus`.
|
||||
> More information: <https://midnight-commander.org>.
|
||||
> `mc` can refer to multiple commands with the same name.
|
||||
|
||||
- Start Midnight Commander:
|
||||
- View documentation for MinIO client:
|
||||
|
||||
`mc`
|
||||
`tldr mc.cli`
|
||||
|
||||
- Start Midnight Commander in black and white:
|
||||
- View documentation for Midnight Commander:
|
||||
|
||||
`mc {{[-b|--nocolor]}}`
|
||||
`tldr mc.fm`
|
||||
|
|
7
pages/common/mcli.md
Normal file
7
pages/common/mcli.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
# mcli
|
||||
|
||||
> This command is an alias of `mc` (MinIO client).
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr mc.cli`
|
7
pages/common/minio-client.md
Normal file
7
pages/common/minio-client.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
# minio-client
|
||||
|
||||
> This command is an alias of `mc` (MinIO client).
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr mc.cli`
|
|
@ -10,14 +10,14 @@ OUTPUT_FILE="inconsistent-filenames.txt"
|
|||
rm -f "$OUTPUT_FILE"
|
||||
touch "$OUTPUT_FILE"
|
||||
|
||||
IGNORE_LIST=("jc.json" "qm move disk" "umount" "rename" "pacman d" "pacman f" "pacman q" "pacman r" "pacman s" "pacman t" "pacman u" "parted" "print.runmailcap" "print.win")
|
||||
IGNORE_LIST=("jc.json" "mc.cli" "mc.fm" "qm move disk" "umount" "rename" "pacman d" "pacman f" "pacman q" "pacman r" "pacman s" "pacman t" "pacman u" "parted" "print.runmailcap" "print.win" "python m json.tool")
|
||||
|
||||
set -e
|
||||
|
||||
# Iterate through all Markdown files in the 'pages' directories
|
||||
find pages* -name '*.md' -type f | while read -r path; do
|
||||
# Extract the expected command name from the filename
|
||||
COMMAND_NAME_FILE=$(basename "$path" | head -c-4 | sed 's/\.fish//' | sed 's/\.js//' | sed 's/\.1//' | sed 's/\.2//' | sed 's/\.3//' | tr '-' ' ' | tr '[:upper:]' '[:lower:]')
|
||||
COMMAND_NAME_FILE=$(basename "$path" | head -c-4 | sed 's/\.fish//' | sed 's/\.js//' | sed 's/\.1//' | sed 's/\.2//' | sed 's/\.3//' | tr '-' ' ' | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
# Extract the command name from the first line of the Markdown file
|
||||
COMMAND_NAME_PAGE=$(head -n1 "$path" | tail -c+3 | sed 's/--//' | tr '-' ' ' | tr '[:upper:]' '[:lower:]')
|
||||
|
|
Loading…
Add table
Reference in a new issue