is there a way to look for all commands in CentOS
Is it possible to look for all commands in CentOS? like a command lists all commands so I could use grep
to filter what I am looking for? There are commands like firewall-cmd
sometimes you remember key words but not the whole.
shell
add a comment |
Is it possible to look for all commands in CentOS? like a command lists all commands so I could use grep
to filter what I am looking for? There are commands like firewall-cmd
sometimes you remember key words but not the whole.
shell
add a comment |
Is it possible to look for all commands in CentOS? like a command lists all commands so I could use grep
to filter what I am looking for? There are commands like firewall-cmd
sometimes you remember key words but not the whole.
shell
Is it possible to look for all commands in CentOS? like a command lists all commands so I could use grep
to filter what I am looking for? There are commands like firewall-cmd
sometimes you remember key words but not the whole.
shell
shell
asked Jan 13 at 7:00
TiinaTiina
6271614
6271614
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Is it possible to look for all commands in CentOS?
lists all commands so I could use grep to filter what I am looking for?
That is what apropos
is for.
apropos - search the manual page names and descriptions
...
Each manual page has a short description available within it.
apropos searches the descriptions for instances of keyword.
keyword is usually a regular expression, as if (-r) was used, or may
contain wildcards (-w), or match the exact keyword (-e). Using these
options, it may be necessary to quote the keyword or escape () the
special characters to stop the shell from interpreting them.
The standard matching rules allow matches to be made against the page
name and word boundaries in the description.
The database searched by apropos is updated by the mandb program.
Depending on your installation, this may be run by a periodic cron
job, or may need to be run manually after new manual pages have been
installed.
Source apropos(1) - Linux manual page
Examples:
The following example demonstrates the output of the apropos command
with an regexp keyword (abc.n) and a regular keyword:
$ apropos abc.n xzless
XTestGrabControl (3) - XTest extension functions
xzless (1) - view xz or lzma compressed (text) files
In this example, apropos is used to search for the keywords (with an
regexp .) "abc.n" and xzless, and apropos returns the indicated man
pages that include the keywords.
Source apropos (Unix) - Wikipedia
very handy and useful tool, wonder why it is called apropos. You mentioned manDB, I have never paid enough attention to man system. How it is stored, how it is used, now I am curious, gonna dig more
– Tiina
Jan 14 at 6:38
add a comment |
You can use your PATH variable and list content of all folders in it
`LIST = ""
for i in $(echo $PATH | tr ":") do
FOLDER = ls -a $i
LIST = "$LIST $FOLDER"
done
echo $LIST`
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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
});
}
});
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%2fsuperuser.com%2fquestions%2f1393694%2fis-there-a-way-to-look-for-all-commands-in-centos%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
Is it possible to look for all commands in CentOS?
lists all commands so I could use grep to filter what I am looking for?
That is what apropos
is for.
apropos - search the manual page names and descriptions
...
Each manual page has a short description available within it.
apropos searches the descriptions for instances of keyword.
keyword is usually a regular expression, as if (-r) was used, or may
contain wildcards (-w), or match the exact keyword (-e). Using these
options, it may be necessary to quote the keyword or escape () the
special characters to stop the shell from interpreting them.
The standard matching rules allow matches to be made against the page
name and word boundaries in the description.
The database searched by apropos is updated by the mandb program.
Depending on your installation, this may be run by a periodic cron
job, or may need to be run manually after new manual pages have been
installed.
Source apropos(1) - Linux manual page
Examples:
The following example demonstrates the output of the apropos command
with an regexp keyword (abc.n) and a regular keyword:
$ apropos abc.n xzless
XTestGrabControl (3) - XTest extension functions
xzless (1) - view xz or lzma compressed (text) files
In this example, apropos is used to search for the keywords (with an
regexp .) "abc.n" and xzless, and apropos returns the indicated man
pages that include the keywords.
Source apropos (Unix) - Wikipedia
very handy and useful tool, wonder why it is called apropos. You mentioned manDB, I have never paid enough attention to man system. How it is stored, how it is used, now I am curious, gonna dig more
– Tiina
Jan 14 at 6:38
add a comment |
Is it possible to look for all commands in CentOS?
lists all commands so I could use grep to filter what I am looking for?
That is what apropos
is for.
apropos - search the manual page names and descriptions
...
Each manual page has a short description available within it.
apropos searches the descriptions for instances of keyword.
keyword is usually a regular expression, as if (-r) was used, or may
contain wildcards (-w), or match the exact keyword (-e). Using these
options, it may be necessary to quote the keyword or escape () the
special characters to stop the shell from interpreting them.
The standard matching rules allow matches to be made against the page
name and word boundaries in the description.
The database searched by apropos is updated by the mandb program.
Depending on your installation, this may be run by a periodic cron
job, or may need to be run manually after new manual pages have been
installed.
Source apropos(1) - Linux manual page
Examples:
The following example demonstrates the output of the apropos command
with an regexp keyword (abc.n) and a regular keyword:
$ apropos abc.n xzless
XTestGrabControl (3) - XTest extension functions
xzless (1) - view xz or lzma compressed (text) files
In this example, apropos is used to search for the keywords (with an
regexp .) "abc.n" and xzless, and apropos returns the indicated man
pages that include the keywords.
Source apropos (Unix) - Wikipedia
very handy and useful tool, wonder why it is called apropos. You mentioned manDB, I have never paid enough attention to man system. How it is stored, how it is used, now I am curious, gonna dig more
– Tiina
Jan 14 at 6:38
add a comment |
Is it possible to look for all commands in CentOS?
lists all commands so I could use grep to filter what I am looking for?
That is what apropos
is for.
apropos - search the manual page names and descriptions
...
Each manual page has a short description available within it.
apropos searches the descriptions for instances of keyword.
keyword is usually a regular expression, as if (-r) was used, or may
contain wildcards (-w), or match the exact keyword (-e). Using these
options, it may be necessary to quote the keyword or escape () the
special characters to stop the shell from interpreting them.
The standard matching rules allow matches to be made against the page
name and word boundaries in the description.
The database searched by apropos is updated by the mandb program.
Depending on your installation, this may be run by a periodic cron
job, or may need to be run manually after new manual pages have been
installed.
Source apropos(1) - Linux manual page
Examples:
The following example demonstrates the output of the apropos command
with an regexp keyword (abc.n) and a regular keyword:
$ apropos abc.n xzless
XTestGrabControl (3) - XTest extension functions
xzless (1) - view xz or lzma compressed (text) files
In this example, apropos is used to search for the keywords (with an
regexp .) "abc.n" and xzless, and apropos returns the indicated man
pages that include the keywords.
Source apropos (Unix) - Wikipedia
Is it possible to look for all commands in CentOS?
lists all commands so I could use grep to filter what I am looking for?
That is what apropos
is for.
apropos - search the manual page names and descriptions
...
Each manual page has a short description available within it.
apropos searches the descriptions for instances of keyword.
keyword is usually a regular expression, as if (-r) was used, or may
contain wildcards (-w), or match the exact keyword (-e). Using these
options, it may be necessary to quote the keyword or escape () the
special characters to stop the shell from interpreting them.
The standard matching rules allow matches to be made against the page
name and word boundaries in the description.
The database searched by apropos is updated by the mandb program.
Depending on your installation, this may be run by a periodic cron
job, or may need to be run manually after new manual pages have been
installed.
Source apropos(1) - Linux manual page
Examples:
The following example demonstrates the output of the apropos command
with an regexp keyword (abc.n) and a regular keyword:
$ apropos abc.n xzless
XTestGrabControl (3) - XTest extension functions
xzless (1) - view xz or lzma compressed (text) files
In this example, apropos is used to search for the keywords (with an
regexp .) "abc.n" and xzless, and apropos returns the indicated man
pages that include the keywords.
Source apropos (Unix) - Wikipedia
answered Jan 13 at 9:23
DavidPostill♦DavidPostill
105k25228263
105k25228263
very handy and useful tool, wonder why it is called apropos. You mentioned manDB, I have never paid enough attention to man system. How it is stored, how it is used, now I am curious, gonna dig more
– Tiina
Jan 14 at 6:38
add a comment |
very handy and useful tool, wonder why it is called apropos. You mentioned manDB, I have never paid enough attention to man system. How it is stored, how it is used, now I am curious, gonna dig more
– Tiina
Jan 14 at 6:38
very handy and useful tool, wonder why it is called apropos. You mentioned manDB, I have never paid enough attention to man system. How it is stored, how it is used, now I am curious, gonna dig more
– Tiina
Jan 14 at 6:38
very handy and useful tool, wonder why it is called apropos. You mentioned manDB, I have never paid enough attention to man system. How it is stored, how it is used, now I am curious, gonna dig more
– Tiina
Jan 14 at 6:38
add a comment |
You can use your PATH variable and list content of all folders in it
`LIST = ""
for i in $(echo $PATH | tr ":") do
FOLDER = ls -a $i
LIST = "$LIST $FOLDER"
done
echo $LIST`
add a comment |
You can use your PATH variable and list content of all folders in it
`LIST = ""
for i in $(echo $PATH | tr ":") do
FOLDER = ls -a $i
LIST = "$LIST $FOLDER"
done
echo $LIST`
add a comment |
You can use your PATH variable and list content of all folders in it
`LIST = ""
for i in $(echo $PATH | tr ":") do
FOLDER = ls -a $i
LIST = "$LIST $FOLDER"
done
echo $LIST`
You can use your PATH variable and list content of all folders in it
`LIST = ""
for i in $(echo $PATH | tr ":") do
FOLDER = ls -a $i
LIST = "$LIST $FOLDER"
done
echo $LIST`
answered Jan 13 at 7:52
Jáchym TomášekJáchym Tomášek
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- 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%2fsuperuser.com%2fquestions%2f1393694%2fis-there-a-way-to-look-for-all-commands-in-centos%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