How to generate list of *all* available commands and functions?TAB autocomplete in Bourne Shellhow to edit and color bash's tab completion listBash autocomplete: does not list files or directoriesContext-sensitive bash completion changes wildcard behaviorIs it possible for bash/readline to “clean up” completion suggestions out the terminal?How is findmnt able to list bind mounts?How do I find commands/files in my PATH through tab completion using wildcards?How to list all commands available from $PATHReading existing screen displayed valuesDebian terminal - how can navigate from history list?
How can I improve my violin intonation for enharmonic notes?
One to Eleven Sum to Twenty Five
Are there examples of rowers who also fought?
Is there any way to revive my Sim?
Why is it 出差去 and not 去出差?
Can the pre-order traversal of two different trees be the same even though they are different?
Definition of 'vrit'
In a list with unique pairs A, B, how can I sort them so that the last B is the first A in the next pair?
Is this series for Pi correct? And who has done it before?
How is the idea of "girlfriend material" naturally expressed in Russian?
How to make all magic-casting innate, but still rare?
King or Queen-Which piece is which?
Why are there no file insertion syscalls
Implementation of the Jacobi Symbol in C
What is the highest power supply a Raspberry pi 3 B can handle without getting damaged?
Can a character learn spells from someone else's spellbook and then sell it?
What preparations would Hubble have needed to return in a Shuttle?
My student in one course asks for paid tutoring in another course. Appropriate?
Convergent Licencing
First occurrence in the Sixers sequence
How could I create a situation in which a PC has to make a saving throw or be forced to pet a dog?
How is linear momentum conserved in circular motion?
Predict the product from the reaction
Basic power tool set for Home repair and simple projects
How to generate list of *all* available commands and functions?
TAB autocomplete in Bourne Shellhow to edit and color bash's tab completion listBash autocomplete: does not list files or directoriesContext-sensitive bash completion changes wildcard behaviorIs it possible for bash/readline to “clean up” completion suggestions out the terminal?How is findmnt able to list bind mounts?How do I find commands/files in my PATH through tab completion using wildcards?How to list all commands available from $PATHReading existing screen displayed valuesDebian terminal - how can navigate from history list?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
In Linux (I am using CentOS 7), there is a built in functionality to view all runnable commands. The command is run by pressing tab twice in the console followed by the prompt:
Display all 1130 possibilities? (y or n)
Pressing y outputs a huge list of commands to the console.
Is there a way to capture this output in a file?
Or is this list already stored locally? If so, how can I access this?
linux bash command autocomplete
New contributor
Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
In Linux (I am using CentOS 7), there is a built in functionality to view all runnable commands. The command is run by pressing tab twice in the console followed by the prompt:
Display all 1130 possibilities? (y or n)
Pressing y outputs a huge list of commands to the console.
Is there a way to capture this output in a file?
Or is this list already stored locally? If so, how can I access this?
linux bash command autocomplete
New contributor
Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
In Linux (I am using CentOS 7), there is a built in functionality to view all runnable commands. The command is run by pressing tab twice in the console followed by the prompt:
Display all 1130 possibilities? (y or n)
Pressing y outputs a huge list of commands to the console.
Is there a way to capture this output in a file?
Or is this list already stored locally? If so, how can I access this?
linux bash command autocomplete
New contributor
Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
In Linux (I am using CentOS 7), there is a built in functionality to view all runnable commands. The command is run by pressing tab twice in the console followed by the prompt:
Display all 1130 possibilities? (y or n)
Pressing y outputs a huge list of commands to the console.
Is there a way to capture this output in a file?
Or is this list already stored locally? If so, how can I access this?
linux bash command autocomplete
linux bash command autocomplete
New contributor
Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited Jun 10 at 14:03
glenn jackman
54.2k675115
54.2k675115
New contributor
Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked Jun 10 at 11:22
Big JoleneBig Jolene
787
787
New contributor
Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
It seems compgen outputs duplicates: perhaps programs that appear in multiple locations in your PATH:
autocomplete says:
$ [tab][tab]
Display all 2328 possibilities? (y or n)
compgen says:
$ compgen -A function -abck | wc -l
2647
$ compgen -A function -abck | sort -u | wc -l
2328
I don't know if this is important for you.
add a comment |
The solution I chose was to run the command:
$ compgen -A function -abck | sort -u >> cmds.txt
which appends all runnable commands, functions and aliases to a text file cmds.txt
Taken from: https://stackoverflow.com/questions/948008/linux-command-to-list-all-available-commands-and-aliases
Edit: added sort -u to command to remove duplicates as suggested by glenn jackman
New contributor
Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2
<pedantry>It's actually appending, not writing.</pedantry>
– wizzwizz4
Jun 10 at 21:26
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Big Jolene is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f523989%2fhow-to-generate-list-of-all-available-commands-and-functions%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
It seems compgen outputs duplicates: perhaps programs that appear in multiple locations in your PATH:
autocomplete says:
$ [tab][tab]
Display all 2328 possibilities? (y or n)
compgen says:
$ compgen -A function -abck | wc -l
2647
$ compgen -A function -abck | sort -u | wc -l
2328
I don't know if this is important for you.
add a comment |
It seems compgen outputs duplicates: perhaps programs that appear in multiple locations in your PATH:
autocomplete says:
$ [tab][tab]
Display all 2328 possibilities? (y or n)
compgen says:
$ compgen -A function -abck | wc -l
2647
$ compgen -A function -abck | sort -u | wc -l
2328
I don't know if this is important for you.
add a comment |
It seems compgen outputs duplicates: perhaps programs that appear in multiple locations in your PATH:
autocomplete says:
$ [tab][tab]
Display all 2328 possibilities? (y or n)
compgen says:
$ compgen -A function -abck | wc -l
2647
$ compgen -A function -abck | sort -u | wc -l
2328
I don't know if this is important for you.
It seems compgen outputs duplicates: perhaps programs that appear in multiple locations in your PATH:
autocomplete says:
$ [tab][tab]
Display all 2328 possibilities? (y or n)
compgen says:
$ compgen -A function -abck | wc -l
2647
$ compgen -A function -abck | sort -u | wc -l
2328
I don't know if this is important for you.
answered Jun 10 at 14:10
community wiki
glenn jackman
add a comment |
add a comment |
The solution I chose was to run the command:
$ compgen -A function -abck | sort -u >> cmds.txt
which appends all runnable commands, functions and aliases to a text file cmds.txt
Taken from: https://stackoverflow.com/questions/948008/linux-command-to-list-all-available-commands-and-aliases
Edit: added sort -u to command to remove duplicates as suggested by glenn jackman
New contributor
Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2
<pedantry>It's actually appending, not writing.</pedantry>
– wizzwizz4
Jun 10 at 21:26
add a comment |
The solution I chose was to run the command:
$ compgen -A function -abck | sort -u >> cmds.txt
which appends all runnable commands, functions and aliases to a text file cmds.txt
Taken from: https://stackoverflow.com/questions/948008/linux-command-to-list-all-available-commands-and-aliases
Edit: added sort -u to command to remove duplicates as suggested by glenn jackman
New contributor
Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2
<pedantry>It's actually appending, not writing.</pedantry>
– wizzwizz4
Jun 10 at 21:26
add a comment |
The solution I chose was to run the command:
$ compgen -A function -abck | sort -u >> cmds.txt
which appends all runnable commands, functions and aliases to a text file cmds.txt
Taken from: https://stackoverflow.com/questions/948008/linux-command-to-list-all-available-commands-and-aliases
Edit: added sort -u to command to remove duplicates as suggested by glenn jackman
New contributor
Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
The solution I chose was to run the command:
$ compgen -A function -abck | sort -u >> cmds.txt
which appends all runnable commands, functions and aliases to a text file cmds.txt
Taken from: https://stackoverflow.com/questions/948008/linux-command-to-list-all-available-commands-and-aliases
Edit: added sort -u to command to remove duplicates as suggested by glenn jackman
New contributor
Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited Jun 11 at 10:55
New contributor
Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered Jun 10 at 11:32
Big JoleneBig Jolene
787
787
New contributor
Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Big Jolene is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2
<pedantry>It's actually appending, not writing.</pedantry>
– wizzwizz4
Jun 10 at 21:26
add a comment |
2
<pedantry>It's actually appending, not writing.</pedantry>
– wizzwizz4
Jun 10 at 21:26
2
2
<pedantry>It's actually appending, not writing.</pedantry>– wizzwizz4
Jun 10 at 21:26
<pedantry>It's actually appending, not writing.</pedantry>– wizzwizz4
Jun 10 at 21:26
add a comment |
Big Jolene is a new contributor. Be nice, and check out our Code of Conduct.
Big Jolene is a new contributor. Be nice, and check out our Code of Conduct.
Big Jolene is a new contributor. Be nice, and check out our Code of Conduct.
Big Jolene is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f523989%2fhow-to-generate-list-of-all-available-commands-and-functions%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown