diff --git a/pages/common/mc.cli.md b/pages/common/mc.cli.md new file mode 100644 index 0000000000..d56a413f71 --- /dev/null +++ b/pages/common/mc.cli.md @@ -0,0 +1,17 @@ +# mc + +> MinIO Client for object storage and filesystems. +> May be named `mc` or `mcli` on some systems. +> More information: . + +- 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` diff --git a/pages/common/mc.fm.md b/pages/common/mc.fm.md new file mode 100644 index 0000000000..aea9de0157 --- /dev/null +++ b/pages/common/mc.fm.md @@ -0,0 +1,14 @@ +# mc + +> Midnight Commander, a TUI file manager. +> Navigate the directory structure using the ``, the mouse or by typing the commands into the terminal. +> See also: `ranger`, `clifm`, `vifm`, `nautilus`. +> More information: . + +- Start Midnight Commander: + +`mc` + +- Start Midnight Commander in black and white: + +`mc {{[-b|--nocolor]}}` diff --git a/pages/common/mc.md b/pages/common/mc.md index aea9de0157..980ebbab3b 100644 --- a/pages/common/mc.md +++ b/pages/common/mc.md @@ -1,14 +1,11 @@ # mc -> Midnight Commander, a TUI file manager. -> Navigate the directory structure using the ``, the mouse or by typing the commands into the terminal. -> See also: `ranger`, `clifm`, `vifm`, `nautilus`. -> More information: . +> `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` diff --git a/pages/common/mcli.md b/pages/common/mcli.md new file mode 100644 index 0000000000..35166c2326 --- /dev/null +++ b/pages/common/mcli.md @@ -0,0 +1,7 @@ +# mcli + +> This command is an alias of `mc` (MinIO client). + +- View documentation for the original command: + +`tldr mc.cli` diff --git a/pages/common/minio-client.md b/pages/common/minio-client.md new file mode 100644 index 0000000000..f410ac3cb0 --- /dev/null +++ b/pages/common/minio-client.md @@ -0,0 +1,7 @@ +# minio-client + +> This command is an alias of `mc` (MinIO client). + +- View documentation for the original command: + +`tldr mc.cli` diff --git a/scripts/wrong-filename.sh b/scripts/wrong-filename.sh index 1d17b0b906..3b5a287a54 100755 --- a/scripts/wrong-filename.sh +++ b/scripts/wrong-filename.sh @@ -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:]')