mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-27 04:53:15 +00:00
Update cheatsheets
This commit is contained in:
29
compgen
Normal file
29
compgen
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# compgen
|
||||
|
||||
> A built-in command for auto-completion in Bash, which is called on pressing TAB key twice.
|
||||
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-compgen>.
|
||||
|
||||
- List all commands that you could run:
|
||||
|
||||
`compgen -c`
|
||||
|
||||
- List all aliases:
|
||||
|
||||
`compgen -a`
|
||||
|
||||
- List all functions that you could run:
|
||||
|
||||
`compgen -A function`
|
||||
|
||||
- Show shell reserved keywords:
|
||||
|
||||
`compgen -k`
|
||||
|
||||
- See all available commands/aliases starting with 'ls':
|
||||
|
||||
`compgen -ac {{ls}}`
|
||||
Reference in New Issue
Block a user