aboutsummaryrefslogtreecommitdiffstats
path: root/bash-completion
AgeCommit message (Collapse)AuthorFilesLines
36 hoursMerge branch 'PR/column-input-separator-alias' of ↵HEADmasterKarel Zak1-1/+2
https://github.com/karelzak/util-linux-work * 'PR/column-input-separator-alias' of https://github.com/karelzak/util-linux-work: column: add --input-separator as an alias for --separator
3 dayscolumn: add --input-separator as an alias for --separatorKarel Zak1-1/+2
This change adds --input-separator as an alias for the existing --separator option, providing symmetry with --output-separator. The new alias is documented in: - command-line help text - man page - bash completion Fixes: https://github.com/util-linux/util-linux/issues/3889 Signed-off-by: Karel Zak <kzak@redhat.com>
8 daysbash-completion: (lslogins) fix typo in long optionChristian Goeschel Ndjomouo1-1/+1
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
12 daysbash-completion: (unshare) add missing --map-subids optionChristian Goeschel Ndjomouo1-0/+1
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
12 daysbash-completion: (mountpoint) add missing --show optionChristian Goeschel Ndjomouo1-1/+1
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
12 daysbash-completion: (mount) add missing --ro optionChristian Goeschel Ndjomouo1-0/+1
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
12 daysbash-completion: (lslogins) add missing long optionsChristian Goeschel Ndjomouo1-1/+2
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
12 daysbash-completion: (lsclocks) add missing --no-discover-rtc optionChristian Goeschel Ndjomouo1-0/+1
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
12 daysbash-completion: (hwclock) add missing --ul-debug optionChristian Goeschel Ndjomouo1-0/+1
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
12 daysbash-completion: (flock) add missing long optionsChristian Goeschel Ndjomouo1-1/+3
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-11-12Merge branch 'PR/chmem-dynamic-configuration' of ↵Karel Zak2-1/+4
https://github.com/karelzak/util-linux-work * 'PR/chmem-dynamic-configuration' of https://github.com/karelzak/util-linux-work: tests: update lsmem outputs lsmem: use xstrncpy() lsmem,chmem: add configure/deconfigure bash completion options lsmem: add doc for dynamic (de)configuration and memmap-on-memory support chmem: add chmem documentation for dynamic (de)configuration of memory chmem: add support for dynamic (de)configuration of hotplug memory lsmem: add support to display dynamic (de)configuration of memory lsmem: display global memmap on memory parameter
2025-11-07lsmem,chmem: add configure/deconfigure bash completion optionsSumanth Korikkar2-1/+4
Add bash completion for configure/deconfigure options in chmem and lsmem. Signed-off-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
2025-11-02bash-completion: (nsenter) add missing --follow-contextcgoesche1-0/+1
Signed-off-by: cgoesche <cgoesc2@wgu.edu>
2025-11-02bash-completion: (namei) add missing --contextcgoesche1-1/+9
Signed-off-by: cgoesche <cgoesc2@wgu.edu>
2025-11-02bash-completion: (setpriv) add missing long optionscgoesche1-0/+3
Signed-off-by: cgoesche <cgoesc2@wgu.edu>
2025-11-02bash-completion: (pg) add missing long optionscgoesche1-1/+1
Signed-off-by: cgoesche <cgoesc2@wgu.edu>
2025-11-02bash-completion: (lastlog2) add missing --activecgoesche1-1/+1
Signed-off-by: cgoesche <cgoesc2@wgu.edu>
2025-10-31bash-completion: (whereis) add missing long optionsChristian Goeschel Ndjomouo1-1/+1
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (wdctl) add missing long optionsChristian Goeschel Ndjomouo1-0/+2
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (uuidd) add missing --cont-clockChristian Goeschel Ndjomouo1-1/+15
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (unshare) add missing long optionsChristian Goeschel Ndjomouo1-0/+7
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (swapon) add missing --optionsChristian Goeschel Ndjomouo1-0/+1
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (sfdisk) add missing long optionsChristian Goeschel Ndjomouo1-0/+5
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (setsid) add missing --forkChristian Goeschel Ndjomouo1-1/+1
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (scriptlive) add missing --echoChristian Goeschel Ndjomouo1-1/+7
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (renice) add missing --relativeChristian Goeschel Ndjomouo1-0/+1
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (more) add missing --exit-on-eofChristian Goeschel Ndjomouo1-0/+1
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (mkswap) add missing long optionsChristian Goeschel Ndjomouo1-1/+15
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (mkfs.minix) add missing --lockChristian Goeschel Ndjomouo1-1/+1
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (mkfs.cramfs) add missing long optionsChristian Goeschel Ndjomouo1-1/+1
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (mkfs.bfs) add missing --lockChristian Goeschel Ndjomouo1-1/+1
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (lsmem) add missing --splitChristian Goeschel Ndjomouo1-0/+1
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (lslogins) add missing --shellChristian Goeschel Ndjomouo1-0/+1
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (lscpu) add missing --hierarchicChristian Goeschel Ndjomouo1-0/+1
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (lsclocks) add missing --no-discover-dynamicChristian Goeschel Ndjomouo1-0/+1
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (lsblk) add missing long optionsChristian Goeschel Ndjomouo1-0/+5
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (losetup) add missing long optionsChristian Goeschel Ndjomouo1-0/+3
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (hwclock) add missing long optionsChristian Goeschel Ndjomouo1-0/+2
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (hardlink) add missing long optionsChristian Goeschel Ndjomouo1-0/+9
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (getopt) add missing --unknownChristian Goeschel Ndjomouo1-1/+12
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (fsck) add missing long optionsChristian Goeschel Ndjomouo1-1/+1
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (flock) add missing --verboseChristian Goeschel Ndjomouo1-0/+1
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (findmnt) add missing long optionsChristian Goeschel Ndjomouo1-0/+9
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (fincore) add missing --totalChristian Goeschel Ndjomouo1-0/+1
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (fallocate) add missing --write-zeroesChristian Goeschel Ndjomouo1-0/+1
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (fadvise) add missing --fdChristian Goeschel Ndjomouo1-0/+1
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (column) add missing long optionsChristian Goeschel Ndjomouo1-0/+2
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (cfdisk) add missing --sector-sizeChristian Goeschel Ndjomouo1-0/+1
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (cal) add missing long optionsChristian Goeschel Ndjomouo1-0/+3
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (blockdev) add missing long optionsChristian Goeschel Ndjomouo1-1/+3
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (blkid) add missing --hintChristian Goeschel Ndjomouo1-0/+1
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-31bash-completion: (bits) add missing --binaryChristian Goeschel Ndjomouo1-1/+1
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-21losetup: make --remove a long-only option with mutual exclusivityKarel Zak1-1/+2
Change --remove from '-R, --remove' to a long-only option '--remove'. This makes it consistent with other administrative options and adds mutual exclusivity with other major actions like -d, -D, -a, -c, -f, -j, -l, and -O. Signed-off-by: Karel Zak <kzak@redhat.com>
2025-10-14Merge branch 'fix/mount_bash_comp' of ↵Karel Zak1-0/+5
https://github.com/cgoesche/util-linux-fork * 'fix/mount_bash_comp' of https://github.com/cgoesche/util-linux-fork: bash-completion: (mount) add missing options
2025-10-14Merge branch 'feat/add_json_opt_lslogins' of ↵Karel Zak1-2/+3
https://github.com/cgoesche/util-linux-fork * 'feat/add_json_opt_lslogins' of https://github.com/cgoesche/util-linux-fork: bash-completion: (lslogins) add --list-columns option lslogins: (man) add --list-columns description lslogins: add -H and --list-columns option; declutter --help output lslogins: (man) add --json information bash-completion: (lslogins) add --json completion tests: (lslogins) test --json output mode lslogins: add JSON output format mode
2025-10-13bash-completion: (mount) add missing optionsChristian Goeschel Ndjomouo1-0/+5
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-11bash-completion: (lslogins) add --list-columns optionChristian Goeschel Ndjomouo1-0/+1
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-11bash-completion: (lslogins) add --json completionChristian Goeschel Ndjomouo1-2/+2
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-10bash-completion: dmesg: remove redundant completion for --buffer-sizeChristian Goeschel Ndjomouo1-4/+0
The option --buffer-size already infers that its the optional argument is a size value. In addition to that, when the option is completed the user will have to delete the word 'size' from the command line and type the desired value, which is not an ideal user experience. Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-10bash-completion: dmesg: complete filenames for --kmsg-fileChristian Goeschel Ndjomouo1-2/+2
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-10bash-completion: dmesg: add missing long optionsChristian Goeschel Ndjomouo1-16/+18
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-10-06Merge branch 'fix/rename_annotation_opt_to_annotate' of ↵Karel Zak1-1/+1
https://github.com/cgoesche/util-linux-fork * 'fix/rename_annotation_opt_to_annotate' of https://github.com/cgoesche/util-linux-fork: man-common: rename annotation.adoc to annotate.adoc swapon: use ANNOTATE_OPTION as enum name for --annotate swapon: rename the new --annotation option to --annotate swapon: (usage) make the help text fit within 80 columns again
2025-10-05swapon: rename the new --annotation option to --annotateBenno Schulenberg1-1/+1
The form --annotation gave the impression that after the subsequent "=" comes the text that each column name should be annotated with. Furthermore, the other two options with optional arguments (--show and --discard) are in the imperative, so follow that style and use --annotate instead. (In the bargain, this allows aligning the descriptions in the help text perfectly again.) Also, improve the description of --annotate in the man page somewhat. Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
2025-10-03bash-completion: add lsfdKarel Zak2-0/+70
Signed-off-by: Karel Zak <kzak@redhat.com>
2025-10-03bash-completion: add blkprKarel Zak2-0/+50
Signed-off-by: Karel Zak <kzak@redhat.com>
2025-10-02bash-completion: add bits to dist tarballKarel Zak1-0/+3
The bits command was added in commit 6e1301d59 (text-utils: add bits command) but the bash-completion file was not added to the autotools Makemodule.am, causing it to be missing from release tarballs. This resulted in meson build failures when using the tarball with bash-completion installed, as meson.build references the file but it doesn't exist in the tarball. Fixes: https://github.com/util-linux/util-linux/issues/3766 Signed-off-by: Karel Zak <kzak@redhat.com>
2025-09-26bash-completion: (swapon) add --annotation optionChristian Goeschel Ndjomouo1-0/+1
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-09-03Merge branch 'feat/lscpu_add_microcode_column' of ↵Karel Zak1-1/+1
https://github.com/cgoesche/util-linux-fork * 'feat/lscpu_add_microcode_column' of https://github.com/cgoesche/util-linux-fork: bash-completion: add MICROCODE to $OPTS_ALL lscpu: add MICROCODE output column
2025-09-03Merge branch 'fix/fix_lsns_list_columns_opt' of ↵Karel Zak1-1/+2
https://github.com/cgoesche/util-linux-fork * 'fix/fix_lsns_list_columns_opt' of https://github.com/cgoesche/util-linux-fork: bash-completion: (lsns) add -H/--list-columns options lsns: fix --list-columns option Signed-off-by: Karel Zak <kzak@redhat.com>
2025-09-02bash-completion: add MICROCODE to $OPTS_ALLChristian Goeschel Ndjomouo1-1/+1
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-09-02bash-completion: (lsns) add -H/--list-columns optionsChristian Goeschel Ndjomouo1-1/+2
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-09-02bash-completion: (lscpu) add -H/--list-columns optionsChristian Goeschel Ndjomouo1-1/+2
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-08-27bash-completion: add fallback to filename expansion for umountChristian Goeschel Ndjomouo1-2/+8
If the user defined path can not be found in the mount table fallback to simple filename expansion. Addresses: #1333 Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2025-08-12mount: add --beneath supportKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2025-08-11mount: (bash-completion) add --exclusiveKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2025-07-28ldattach: Allow changing the MTU for GSM0710 framingSeppo Takalo1-0/+5
Traditionally ldattach have hard coded MTU of 127 bytes which differs from defaults proposed in 3GPP TS 27.010 which is 31 bytes when basic framing is used. Add '-m <value>' parameter that is only GSM0710 specific and already handled by the kernel. Use same value for both MTU and MRU. Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2025-07-16column: add support for color schemeKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2025-07-08column: add --color[=<when>] to control colorizationKarel Zak1-0/+5
This implements terminal-colors.d(5) behavior. Signed-off-by: Karel Zak <kzak@redhat.com>
2025-07-01bash-completion: fix function name of enosys completionKoichi Murase1-1/+1
The function "_enosys_module" referenced by the completion setting on the last line of "bash-completion/enosys" is not defined in the current master. As reported in Ref. [1], this causes the following error on an attempt at argument completion for the "enosys" command: bash: _enosys_module: command not found [1] https://www.reddit.com/r/Fedora/comments/1llmu0w/comment/n00y98k/ Also, the function "_waitpid_module" defined in "bash-completion/enosys" overwrites another completion function of the same name defined in "bash-completion/waitpid". This patch renames the function in "bash-completion/enosys" to the correct one, "_enosys_module".
2025-06-26bash-completion: add choom and coreschedKarel Zak1-0/+6
Addresses: https://github.com/util-linux/util-linux/issues/3469 Signed-off-by: Karel Zak <kzak@redhat.com>
2025-06-25Add missing ;; to -m case (#1)Nate Drake1-0/+1
2025-06-13bash-completion: update autocompletion list to 'ntfs3'Johannes Schneider1-1/+1
Signed-off-by: Johannes Schneider <johannes.schneider@leica-geosystems.com>
2025-06-06Merge branch 'bash-completion-command-lsblk' of ↵Karel Zak53-102/+102
https://github.com/akinomyoga/util-linux * 'bash-completion-command-lsblk' of https://github.com/akinomyoga/util-linux: bash-completion: use "command ls" instead of "\ls" bash-completion: prefix "command" to other external commands bash-completion: prefer "builtin cd" to "cd" to avoid aliases bash-completion: prefer "command lsblk" to "lsblk" to avoid aliases
2025-06-03bash-completion: use "command ls" instead of "\ls"Koichi Murase3-3/+3
The backslash quoting can be used to bypass aliases, but it cannot be used to bypass shell functions for interactive uses defined by the users. We can use "command ls" instead to bypass both aliases and shell functions.
2025-06-03bash-completion: prefix "command" to other external commandsKoichi Murase31-61/+61
2025-06-03bash-completion: prefer "builtin cd" to "cd" to avoid aliasesKoichi Murase12-13/+13
The command "cd" is also often aliased, so we should use "builtin cd" to make sure to use the built-in version of "cd".
2025-06-02bash-completion: prefer "command lsblk" to "lsblk" to avoid aliasesKoichi Murase23-33/+33
The user may define an alias lsblk to specify the default formatting, such as -T, which would conflict with lsblk -r used in the Bash completion settings. In the Bash completion settings, to prevent the calls of lsblk -r ... from being replaced with lsblk -T -r ... and failing, lsblk should be called using command lsblk.
2025-05-29add option to force cachestat() usageMatteo Croce1-0/+1
When cachestat() is not available, mmap() and fincore() are used to get cache statistics. This fallback returns less data than cachestat, and potentially hides read errors by reporting that the file is all mapped in memory: $ fincore /usr/bin/java fincore: failed to do cachestat: /usr/bin/java: Operation not permitted RES PAGES SIZE FILE 208K 13 198,1K /usr/bin/java $ echo $? 0 $ sudo fincore /usr/bin/java RES PAGES SIZE FILE 0B 0 198,1K /usr/bin/java Add a --cachestat argument which forces cachestat usage and fails if it's not available: $ fincore -C /usr/bin/java fincore: failed to do cachestat: /usr/bin/java: Operation not permitted $ echo $? 1 Also, on huge files the fallback is very slow and memory consuming, so this flag can be user to avoid doing it by mistake.
2025-05-21fincore: add recursive directory scanningMatteo Croce1-0/+1
Add a --recursive flag to fincore which allows to recursively scan directories. Co-authored-by: Karel Zak <kzak@redhat.com> Signed-off-by: Matteo Croce <teknoraver@meta.com>
2025-05-17bash-completion: (chrt) add completion for -e/--extShashank Balaji1-0/+1
chrt's -e/--ext corresponds to the SCHED_EXT scheduling policy, which, for the purposes of bash completion, behaves just like --other, --idle, and --batch Signed-off-by: Shashank Balaji <shashank.mahadasyam@sony.com>
2025-05-05irqtop: use standard 'always/never' arguments instead of 'enable/disable'Benno Schulenberg1-1/+1
Most other util-linux tools that accept the option argument "auto" additionally accept "always" and "never", not "enable" / "disable". So, make option --cpu-stat accept those standard words (besides the deviant ones), and adjust the documentation to use the standard words. Furthermore, make --cpu-stat accept also "on", "off", "yes", "no", "1", and "0", to allow the user to use shorter words. The per-CPU stats can now be suppressed with a succinct: `irqtop -c0`. CC: Zhenwei Pi <pizhenwei@bytedance.com> Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
2025-03-28setarch: add -p/--pid option showing the personality of specified processMasatake YAMATO1-0/+19
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
2025-03-28bash-completion: (setarch) show some options as the 1st argMasatake YAMATO1-1/+8
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
2025-03-03lsirq: add support for reading data from given fileJoe Jin1-0/+4
This is helpful for analyzng data saved from other system. Signed-off-by: Joe Jin <joe.jin@oracle.com> Cc: Zhenwei Pi <pizhenwei@bytedance.com> Cc: Sami Kerola <kerolasa@iki.fi> Cc: Karel Zak <kzak@redhat.com>
2025-03-03irqtop: support json output formatJoe Jin1-0/+1
Signed-off-by: Joe Jin <joe.jin@oracle.com> Cc: Zhenwei Pi <pizhenwei@bytedance.com> Cc: Sami Kerola <kerolasa@iki.fi> Cc: Karel Zak <kzak@redhat.com>
2025-03-03irqtop: add max iteration supportJoe Jin1-0/+5
Add support for setting the number of iterations. This is useful in non-interactive mode. Signed-off-by: Joe Jin <joe.jin@oracle.com> Cc: Zhenwei Pi <pizhenwei@bytedance.com> Cc: Sami Kerola <kerolasa@iki.fi> Cc: Karel Zak <kzak@redhat.com>
2025-03-03irqtop: add batch mode supportJoe Jin1-1/+5
Add batch mode support, which could be useful for sending output to other programs or to a file. Signed-off-by: Joe Jin <joe.jin@oracle.com> Cc: Zhenwei Pi <pizhenwei@bytedance.com> Cc: Sami Kerola <kerolasa@iki.fi> Cc: Karel Zak <kzak@redhat.com>
2025-02-24flock: support locking with byte-rangeMasatake YAMATO1-0/+2
New options, --start and --length are for specifying the byte-range. The options assume used with --fcntl option. Signed-off-by: Masatake YAMATO <yamato@redhat.com>
2025-02-12Merge branch 'ipc' of https://github.com/PrasannaPaithankar/util-linuxKarel Zak3-8/+46
* 'ipc' of https://github.com/PrasannaPaithankar/util-linux: Defined macros for POSIX IPC compilation and removed path buffer. Fix CodeQL warning sys-utils: warns if mqueue fs is not mounted bash completions for IPC tools sys-utils: fixed build system for POSIX IPC tools rectified long formatting error configured for meson build system added POSIX IPC paathnames; modified sys-utils/Makemodule.am added POSIX IPC support to lsipc, ipcrm, ipcmk
2025-02-03sys-utils: warns if mqueue fs is not mountedPrasanna Paithankar1-9/+9
- Add a check to see if mqueue fs is mounted before using it, and warn the user if it is not mounted. - bash completion for ipcrm is fixed to make it independent of awk. Signed-off-by: Prasanna Paithankar <paithankarprasanna@gmail.com>
2025-02-02bash completions for IPC toolsPrasanna Paithankar3-8/+46
Signed-off-by: Prasanna Paithankar <paithankarprasanna@gmail.com>
2025-02-02bash-completion: updated lsns bash completionPrasanna Paithankar1-2/+4
2025-01-08findmnt: add --id and --uniq-id optionsKarel Zak1-0/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2024-12-11Merge branch 'PR/libsmartcols-hyperlinks' of ↵Karel Zak2-0/+2
https://github.com/karelzak/util-linux-work * 'PR/libsmartcols-hyperlinks' of https://github.com/karelzak/util-linux-work: lsblk: add --hyperlink command line option findmnt: add --hyperlink command line option include: add functions to implement --hyperlink libsmartcols: add support for terminal hyperlinks include/ttyutils: add terminal hyperlink ESC sequences
2024-12-10zramctl: add algorithm-params to bash-completionKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2024-12-09lscpu: add --raw command line optionKarel Zak1-0/+1
In certain situations, data alignment is not desired. Addresses: https://github.com/util-linux/util-linux/pull/3255 Signed-off-by: Karel Zak <kzak@redhat.com>
2024-12-09lsblk: add --hyperlink command line optionKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2024-12-09findmnt: add --hyperlink command line optionKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2024-11-25bash-completion: add `--pty` and `--no-pty` options for `su` and `runuser`Christoph Anton Mitterer1-0/+2
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
2024-11-25bash-completion: complete `--user` only for `runuser`, not for `su`Christoph Anton Mitterer1-3/+7
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
2024-11-18Merge branch 'irq-stuff' of https://github.com/rjarry/util-linuxKarel Zak2-0/+12
* 'irq-stuff' of https://github.com/rjarry/util-linux: lsirq: add option to limit cpus lsirq,irqtop: add threshold option
2024-11-06lsirq: add option to limit cpusRobin Jarry1-0/+4
For consistency with irqtop, add a --cpu-list lsirq option to specify a list of CPUs for which to display interrupt counters. get_scols_table() already supports a cpu_set_t argument. Simply parse the argument and pass it down. Signed-off-by: Robin Jarry <robin@jarry.cc>
2024-11-06lsirq,irqtop: add threshold optionRobin Jarry2-0/+8
Add a new option to filter out IRQs whose counters are below the specified value. The argument supports plain integers and human readable values (e.g. 1.2K). Signed-off-by: Robin Jarry <robin@jarry.cc>
2024-11-05Merge branch 'PR/hardlink-nftw-imrovements' of ↵Karel Zak1-0/+5
https://github.com/karelzak/util-linux-work * 'PR/hardlink-nftw-imrovements' of https://github.com/karelzak/util-linux-work: hardlink: implement --mount hardlink: add missing verbose messages and unify them hardlink: implement --exclude-subtree
2024-11-05hardlink: add new options to the bash-completionKarel Zak1-0/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2024-10-31hardlink: implement --mountKarel Zak1-0/+1
Let's export another feature of nftw() to the hardlink command line. In this case, we will force the file-tree-walk to stay within the same filesystem. Addresses: https://github.com/util-linux/util-linux/discussions/3244 Signed-off-by: Karel Zak <kzak@redhat.com>
2024-10-31hardlink: implement --exclude-subtreeKarel Zak1-0/+4
Now, it is possible to exclude files by their names, but it does not allow for ignoring entire subtrees of the scanned hierarchy. The new option only applies to directory names and forces the file-tree-walk to skip the directory and all of its subdirectories. This is based on FTW_SKIP_SUBTREE, which was originally only available in glibc (since 2004). Therefore, the code is #ifdef-ed to make it portable to other libc versions. Addresses: https://github.com/util-linux/util-linux/discussions/3244 Signed-off-by: Karel Zak <kzak@redhat.com>
2024-10-24text-utils: add bits commandRobin Jarry1-0/+21
Add a new text utility to convert bit masks in various formats. This can be handy to avoid parsing affinity masks in one's head and/or to interact with the kernel in a more human friendly way. It is a rewrite in C of the bits command from my linux-tools python package so that it can be more widely available. Here is an example: ~# cat /sys/kernel/debug/tracing/tracing_cpumask ffffffff,ffffffff,ffffffff,ffffffff ~# bits -l ,$(cat /sys/kernel/debug/tracing/tracing_cpumask) 0-128 ~# bits -g 58,59,120,123 9000000,00000000,0c000000,00000000 ~# bits -g 58,59,120,123 > /sys/kernel/debug/tracing/tracing_cpumask ~# echo 1 > /sys/kernel/debug/tracing/tracing_on Add man page and basic tests. Link: https://git.sr.ht/~rjarry/linux-tools#bits Signed-off-by: Robin Jarry <robin@jarry.cc>
2024-09-24bash-completion: add nsenter --net-socketKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2024-09-18Merge branch 'PR/sfdisk-discard' of https://github.com/karelzak/util-linux-workKarel Zak1-0/+1
* 'PR/sfdisk-discard' of https://github.com/karelzak/util-linux-work: sfdisk: add --discard-free include/blkdev: share BLKDISCARD macros
2024-09-17sfdisk: add --discard-freeKarel Zak1-0/+1
Why do we need this? It can be difficult for end-users to discard unpartitioned areas using blkdiscard, as it requires using fdisk to obtain a list of free areas and then using blkdiscard with the correct --offset and --length options. It is less risky for end-users to use (s)fdisk, as they have a better understanding of the disk layout. Addresses: https://github.com/util-linux/util-linux/issues/2804 Signed-off-by: Karel Zak <kzak@redhat.com>
2024-09-11bash-completion: look: rewrite completion logicYao Zi1-1/+11
look(1) opens /usr/share/dict/words as dictionary by default. Doing TAB completion for look(1) without the dictionary installed will result in popups like $ look look: /usr/share/dict/words: No such file or directory messing up the terminal. As /usr/share/dict/words is not shipped by quite a few distros nowadays and it should not be listed as a hard dependency of util-linux, we make sure the dictionary exists before calling look(1) when doing completion, avoiding these error messages. When completing the word without anything specified on the command line, alphabets and numbers instead of all words are listed as a hint, for better interacting experience. Signed-off-by: Yao Zi <ziyao@disroot.org>
2024-09-09lsblk: update bash-completion/lsblkKarel Zak1-7/+15
* update columns list * add --properties-by Signed-off-by: Karel Zak <kzak@redhat.com>
2024-08-29Optionally execute a program after group changeGábor Németh1-2/+10
We accept a `-c` command option or possible second argument which is then invoked through the user's shell after the group change, as by the `sg` utility. The default is still running the shell itself.
2024-07-30fadvise: fix a typo of an option name in the bash completion ruleMasatake YAMATO1-2/+2
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
2024-07-08column: Adds option -S <num> so whitespaces are used instead of tabs in non ↵drax1-1/+2
table mode. Entries are padded with whitespaces, then <num> spaces are added to separate the columns. This should fix https://github.com/util-linux/util-linux/issues/1551
2024-06-04bash-completion: add logger --sd-* completionsVille Skyttä1-0/+6
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
2024-05-22coresched: add bash completionsThijs Raymakers1-0/+51
Signed-off-by: Thijs Raymakers <thijs@raymakers.nl>
2024-05-14Merge branch 'uuidv7' of https://github.com/t-8ch/util-linuxKarel Zak1-0/+2
* 'uuidv7' of https://github.com/t-8ch/util-linux: uuidgen: add support for RFC9562 UUIDs uuidparse: add support for RFC9562 UUIDs libuuid: add support for RFC9562 UUIDs
2024-05-10uuidgen: add support for RFC9562 UUIDsThomas Weißschuh1-0/+2
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2024-05-08flock: bash-completion: add --fcntlRasmus Villemoes1-0/+1
2024-04-29coresched: Manage core scheduling cookies for tasksThijs Raymakers1-0/+0
Co-authored-by: Phil Auld <pauld@redhat.com> Signed-off-by: Phil Auld <pauld@redhat.com> Signed-off-by: Thijs Raymakers <thijs@raymakers.nl> Signed-off-by: Karel Zak <kzak@redhat.com> Reviewed-by: Thomas Weißschuh <thomas@t-8ch.de>
2024-04-20lsns: add --filter option to the --help optout and the completion ruleMasatake YAMATO1-0/+1
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
2024-03-07blkid: add json output formatThomas Weißschuh1-1/+1
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
2024-02-27enosys: allow dumping to fileThomas Weißschuh1-0/+1
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2024-02-05setpriv: add support for seccomp filtersThomas Weißschuh1-0/+5
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2024-02-05enosys: add functionality to dump filterThomas Weißschuh1-0/+3
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2024-01-23Merge branch 'lastlog2' of https://github.com/schubi2/util-linuxKarel Zak2-0/+60
* 'lastlog2' of https://github.com/schubi2/util-linux: lastlog2 - Y2038 safe version of lastlog pam_lastlog2 - PAM module which logs user login with lastlog2
2024-01-23findmnt: add -I, --dfi options for imitating the output of df -iMasatake YAMATO1-0/+1
An example output: $ ./findmnt -I SOURCE FSTYPE INO.TOTAL INO.USED INO.AVAIL INO.USE% TARGET /dev/mapper/fedora_dev64-root ext4 5341184 1135307 4205877 21% / devtmpfs devtmpfs 32930640 1209 32929431 0% /dev tmpfs tmpfs 32938620 86 32938534 0% /dev/shm ... Signed-off-by: Masatake YAMATO <yamato@redhat.com>
2024-01-18lastlog2 - Y2038 safe version of lastlogStefan Schubert2-0/+60
pam_lastlog2 - PAM module which logs user login with lastlog2
2024-01-11lsblk: add docs for filters and countersKarel Zak1-0/+4
Fixes: https://github.com/util-linux/util-linux/issues/2697 Signed-off-by: Karel Zak <kzak@redhat.com>
2024-01-11bash-completion: update for mkswapKarel Zak1-1/+5
Signed-off-by: Karel Zak <kzak@redhat.com>
2024-01-02wipefs: allow storage of backups in specific locationThomas Weißschuh1-0/+4
This also avoids cluttering the home directory during test execution. Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2023-12-14exch: new command exchaging two files atomicallyMasatake YAMATO2-0/+29
An example session: $ echo A > a $ echo B > b $ ./exch a b $ cat a B $ cat b A Signed-off-by: Masatake YAMATO <yamato@redhat.com>
2023-12-11setpriv: add landlock supportThomas Weißschuh1-0/+12
landlock [0] is a Linux stackable LSM that can be used by unprivileged processes to build a sandbox around them. With support for landlock in setpriv users can easily construct a sandbox on-the-fly when executing programs. [0] https://landlock.io/ Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2023-12-09bash-completion: (lslocks): add --bytes option to the rulesMasatake YAMATO1-1/+1
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
2023-12-09bash-completion: (fadvise): fix a typoMasatake YAMATO1-1/+1
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
2023-12-08bash-completion: make sure that "lastb" actually completesEli Schwartz1-1/+1
Building util-linux logs a warning on Gentoo: ``` * Problems with installed bash completions were found: * * lastb: incorrect name, no completions for 'lastb' command defined. * * For more details on installing bash-completions, please see: * https://wiki.gentoo.org/wiki/Bash/Installing_completion_files ``` A bash-completion file is usually composed of two parts: - a function that knows how to produce completions - a specification of which command should be completed In cases where multiple commands have the same options, e.g. commands that are symlinked to each other, it is common to symlink the completion files as well. This shares the first part. But the second part cannot be shared, it must be implemented twice by specifying two different commands to be completed. "lastb" had a symlinked completion, but when the completion system processes /usr/share/bash-completion/completions/lastb, it would only define a completion for "last". Define both completions in one file, so that sourcing it works regardless of command used.
2023-12-07findmnt: add --list-columnsKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2023-12-07lslocks: improve --list-columnsKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2023-12-07lsblk: add --list-columnsKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2023-10-02setpriv: fix group argument completionThomas Weißschuh1-2/+2
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2023-09-11Merge branch 'setpgid' of https://github.com/DaanDeMeyer/util-linuxKarel Zak2-0/+26
2023-08-31Add new setpgid utilityDaan De Meyer2-0/+26
This program allows running a command in a new process group and optionally makes the new process group the foreground process group of the ctty. This is useful when running programs through wrappers programs (think bubblewrap, ...) and wanting to make sure that SIGINT is only sent to the innermost process. This is possible by putting the innermost process in a new process group and making that process group the foreground process group of the controlling terminal. By adding a separate utility to util-linux, we can apply this to any program even if the program itself doesn't implement this functionality.
2023-08-28uuidgen: add option --countKarel Zak1-0/+5
This is mostly for testing purpose or performance tuning. The new option allows generate multiple UUIDs using the enhanced capability of the libuuid to cache time-based UUIDs. $ uuidgen --time --count 3 638b9432-4196-11ee-bb1f-7824af891670 638b94be-4196-11ee-bb1f-7824af891670 638b94fa-4196-11ee-bb1f-7824af891670 Fixes: https://github.com/util-linux/util-linux/issues/2449 Signed-off-by: Karel Zak <kzak@redhat.com>
2023-08-23bash-completion: add -T to lastKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2023-08-16Merge branch 'enosys/ioctl' of https://github.com/t-8ch/util-linuxKarel Zak1-0/+8
* 'enosys/ioctl' of https://github.com/t-8ch/util-linux: enosys: avoid warnings when no aliases are found enosys: don't validate that numbers are found from headers enosys: add support for ioctl blocking enosys: store blocked syscalls in list instead of array enosys: build BPF dynamically enosys: list syscall numbers
2023-08-02lsclocks: add support for RTCThomas Weißschuh1-0/+6
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2023-08-01Merge branch 'cachestat' of https://github.com/t-8ch/util-linuxKarel Zak1-0/+1
* 'cachestat' of https://github.com/t-8ch/util-linux: fincore: report data from cachestat() fincore: refactor output formatting fincore: add --output-all
2023-07-31fincore: add --output-allThomas Weißschuh1-0/+1
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2023-07-31lsclocks: add support for cpu clocksThomas Weißschuh1-0/+5
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2023-07-31lsclocks: improve dynamic clocks docs and completionThomas Weißschuh1-0/+6
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2023-07-23enosys: add support for ioctl blockingThomas Weißschuh1-0/+8
Ioctls are blocked with ENOTTY. Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2023-07-10Merge branch 'master' of https://github.com/u2386/util-linuxKarel Zak1-0/+1
* 'master' of https://github.com/u2386/util-linux: nsenter: add option `-c` to join the cgroup of target process
2023-07-03lsclocks: add --output-allThomas Weißschuh1-0/+4
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2023-06-30lsclocks: new util to interact with system clocksThomas Weißschuh2-0/+51
Usecases: * Compare current monotonic time to timestamps reported by systemd * Validate time namespace operations * Inspect clock resolutions Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2023-06-28nsenter: add option `-c` to join the cgroup of target processu23861-0/+1
This commit adds support for the -c or --join-cgroup option in nsenter, allowing a new process to join the cgroup of target process. Example: Setup the target process: $ podman run --rm -d docker.io/golang sleep 10000 51a89deb6baf6d $ podman inspect --format '{{ .State.Pid }}' 51a89deb6baf6d6 216054 Enter the cgroup namespace of target process without option -c: $ sudo ./nsenter -C -U -t 216054 sh -c "cat /proc/self/cgroup" 0::/../../../../session-899.scope Enter the cgroup namespace of target process with option -c: $ sudo ./nsenter -c -C -U -t 216054 sh -c "cat /proc/self/cgroup" 0::/ Reviewed-by: Karel Zak <kzak@redhat.com> Reviewed-by: Thomas Weißschuh <thomas@t-8ch.de> Signed-off-by: u2386 <hugo.cavan2386@gmail.com>
2023-06-26Merge branch 'nsenter-add-parent-ns-option' of ↵Karel Zak1-0/+1
https://github.com/igo95862/util-linux * 'nsenter-add-parent-ns-option' of https://github.com/igo95862/util-linux: Add `--user-parent` option to nsenter
2023-06-23Add `--user-parent` option to nsenterigo958621-0/+1
When this option is used nsenter will fetch the parent user namespace from any namespace file descriptors available. It can be combined with existing `--user` option in which case the parent user namespace will be fetched from the user namespace and replace it. The usecase of this option is when a user namespace that owns the other type namespaces we want to switch to is not actually bound to any process. Without using ioctl it is impossible to acquire namespace file descriptor. For example, bubblewrap `bwrap` command creates unbinded user namespace when `--dev` option is used.
2023-06-22hwclock: add --vl-read, --vl-clear documentation and bash-completionRasmus Villemoes1-0/+2
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
2023-05-29Merge branch 'next'Karel Zak1-0/+1
2023-05-22Merge branch 'hexdump-one-byte-hex' of https://github.com/tpwo/util-linuxKarel Zak1-0/+1
* 'hexdump-one-byte-hex' of https://github.com/tpwo/util-linux: hexdump: add new format-strings test case hexdump: add '--one-byte-hex' format option
2023-05-17Merge branch 'enosys' of https://github.com/t-8ch/util-linuxKarel Zak2-0/+40
* 'enosys' of https://github.com/t-8ch/util-linux: enosys: properly block execve syscall enosys: don't require end-of-options marker enosys: find syscalls at build time enosys: remove long jumps from BPF enosys: add --list enosys: validate syscall architecture enosys: add manpage enosys: add bash completion enosys: make messages useful for users enosys: translate messages enosys: add common arguments enosys: add test enosys: fix native arch for s390x enosys: syscall numbers are "long" enosys: mark variable static enosys: remove unneeded inline variable declaration enosys: improve checks for EXIT_NOTSUPP enosys: move from tests/helpers/test_enosys.c c.h: make err_nonsys available
2023-05-17Merge branch 'mkswap/offset' of https://github.com/t-8ch/util-linuxKarel Zak1-1/+5
* 'mkswap/offset' of https://github.com/t-8ch/util-linux: mkswap: implement --offset mkswap: (tests) don't overwrite logfiles mkswap: (tests) validate existence of truncate command
2023-05-16enosys: add --listThomas Weißschuh1-0/+4
2023-05-16enosys: add bash completionThomas Weißschuh2-0/+36
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2023-05-16hexdump: add '--one-byte-hex' format optionTomasz Wojdat1-0/+1
Signed-off-by: Tomasz Wojdat <tpwojdat@gmail.com>
2023-05-11mkswap: implement --offsetThomas Weißschuh1-1/+5
Addresses #2166 Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2023-05-05blockdev: add support for BLKGETZONESZThomas Weißschuh1-0/+1
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2023-04-26blockdev: add --getdiskseq to bash completionThomas Weißschuh1-0/+1
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2023-04-19add waitpid in bash-completion/Makemodule.amChristian Hesse1-0/+3
2023-04-19add fadvise in bash-completion/Makemodule.amChristian Hesse1-0/+3
2023-04-13nsenter: (man) add --keep-capsKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2023-04-03nsenter: use explicit argument to follow target PID/GIDThomas Weißschuh1-2/+2
Making the argument to -S and -G optional in #2092 broke the cli compatability. So replace it with an explicit "follow" argument that provides the new functionality with a compatible interface. Fixes #2143
2023-03-03Merge branch 'waitpid/count' of https://github.com/t-8ch/util-linuxKarel Zak1-0/+4
* 'waitpid/count' of https://github.com/t-8ch/util-linux: waitpid: allow to only wait for a specific number of process exits
2023-03-02waitpid: allow to only wait for a specific number of process exitsThomas Weißschuh1-0/+4
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2023-03-02nsenter: add --env for allowing environment variables inheritanceu23861-0/+1
This commit adds support for the -e or --env option in nsenter, allowing a new process to inherit the environment va If the option is not given, the environment variables will stay the same as in the current namespace. Example: Setup the namespace: $ docker run -d -e PROJECT='util linux' --rm alpine sleep 10000 cb0b69aa7aec $ docker inspect --format '{{ .State.Pid }}' cb0b69aa7aec 470012 Enter the namespace: $ nsenter --all -t 470012 --env env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin HOSTNAME=cb0b69aa7aec PROJECT=util linux HOME=/root Reviewed-by: Thomas Weißschuh <thomas@t-8ch.de> Reviewed-by: Karel Zak <kzak@redhat.com> Signed-off-by: u2386 <hugo.cavan2386@gmail.com>
2023-01-25whereis: add glob(7) support (new option -g)Karel Zak1-1/+1
$ whereis -b -g 'find???' find???: /usr/bin/findmnt /usr/bin/findscu Fixes: https://github.com/util-linux/util-linux/issues/2021 Signed-off-by: Karel Zak <kzak@redhat.com>
2023-01-24fstrim: add --types to filter out by filesystem typesKarel Zak1-0/+1
Fixes: https://github.com/util-linux/util-linux/issues/2040 Signed-off-by: Karel Zak <kzak@redhat.com>
2023-01-16swapon: add --fstab command line optionKarel Zak1-0/+1
Let's add --fstab mount option for compatibility with mount(8). Addresses: https://github.com/util-linux/util-linux/issues/2017 Signed-off-by: Karel Zak <kzak@redhat.com>
2023-01-09waitpid: adapt bash-completion for current functionalityThomas Weißschuh1-1/+33
2023-01-04waitpid: add new commandThomas Weißschuh1-0/+1
This command implements waiting for the exit of multiple processes. Especially it allows to wait for process that are not children of the current process. In contrast to wait(1P) it does not allow to retrieve the processes exit codes.
2022-12-27umount: properly handle special characters in completionThomas Weißschuh1-5/+15
Fixes #1834
2022-12-08hardlink: cleanup optionsKarel Zak1-2/+39
* add missing stuff to bash-completion * reorder --help output * reorder man page Signed-off-by: Karel Zak <kzak@redhat.com>
2022-12-07bash-completion: add blkdiscard --quietKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2022-11-28rename: (bash-completion) fix typoKarel Zak1-1/+1
Fixes: https://github.com/util-linux/util-linux/issues/1928 Signed-off-by: Karel Zak <kzak@redhat.com>
2022-11-16bash-completion: add --zero to rev moduleKarel Zak1-1/+1
Addresses: https://github.com/util-linux/util-linux/pull/1900 Signed-off-by: Karel Zak <kzak@redhat.com>
2022-11-08rfkill: add toggle to bash completionDaniel Peukert1-1/+2
Signed-off-by: Daniel Peukert <daniel@peukert.cc>
2022-11-08bash-completion: update lsnsKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2022-10-06fadvise: add bash-completion scriptMasatake YAMATO1-0/+42
Signed-off-by: Masatake YAMATO <yamato@redhat.com>