From a75d875fa69c7353d6834daef711d78b748fb1ff Mon Sep 17 00:00:00 2001 From: Angad Singh Grover <127680876+angadsgrover@users.noreply.github.com> Date: Sat, 30 Nov 2024 09:49:04 +0800 Subject: [PATCH] pacman-f: add alias page; pacman-files: update page (#14858) --- pages/linux/pacman-f.md | 7 +++++++ pages/linux/pacman-files.md | 20 ++++++++++---------- scripts/wrong-filename.sh | 2 +- 3 files changed, 18 insertions(+), 11 deletions(-) create mode 100644 pages/linux/pacman-f.md diff --git a/pages/linux/pacman-f.md b/pages/linux/pacman-f.md new file mode 100644 index 0000000000..81adbe8a1f --- /dev/null +++ b/pages/linux/pacman-f.md @@ -0,0 +1,7 @@ +# pacman -F + +> This command is an alias of `pacman --files`. + +- View documentation for the original command: + +`tldr pacman files` diff --git a/pages/linux/pacman-files.md b/pages/linux/pacman-files.md index 165c2a0f5e..e0e4a8aa59 100644 --- a/pages/linux/pacman-files.md +++ b/pages/linux/pacman-files.md @@ -6,24 +6,24 @@ - Update the package database: -`sudo pacman --files --refresh` +`sudo pacman -Fy` -- Find the package that owns a specific file: +- Find the package that owns a specific [F]ile: -`pacman --files {{filename}}` +`pacman -F {{filename}}` -- Find the package that owns a specific file, using a regular expression: +- Find the package that owns a specific [F]ile, using a regular e[x]pression: -`pacman --files --regex '{{regular_expression}}'` +`pacman -Fx '{{regular_expression}}'` - List only the package names: -`pacman --files --quiet {{filename}}` +`pacman -Fq {{filename}}` -- List the files owned by a specific package: +- [l]ist the [F]iles owned by a specific package: -`pacman --files --list {{package}}` +`pacman -Fl {{package}}` -- Display help: +- Display [h]elp: -`pacman --files --help` +`pacman -Fh` diff --git a/scripts/wrong-filename.sh b/scripts/wrong-filename.sh index d8537fff7e..941bcd2480 100755 --- a/scripts/wrong-filename.sh +++ b/scripts/wrong-filename.sh @@ -10,7 +10,7 @@ OUTPUT_FILE="inconsistent-filenames.txt" rm -f "$OUTPUT_FILE" touch "$OUTPUT_FILE" -IGNORE_LIST=("exclamation mark" "caret" "dollar sign" "tilde" "history expansion" "qm move disk" "umount" "rename" "pacman r" "pacman s") +IGNORE_LIST=("exclamation mark" "caret" "dollar sign" "tilde" "history expansion" "qm move disk" "umount" "rename" "pacman f" "pacman r" "pacman s") set -e