Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Commands

Status
Not open for further replies.

biglebowski

Technical User
Jan 29, 2004
3,117
GB
Is there a listing anywhere of all the commands available in Linux kernel?

Thanks.

Are you suggesting coconuts migrate?
 
If that's really the question you want to ask, you can find the list of system calls in [tt]/usr/include/asm/unistd.h[/tt].


If you're asking about commands you can use from the command line, then no, such a list does not and cannot exist. Why?

I just created a file called [tt]feeblix[/tt] in ~/bin. Its executable bit is set, and its contents are:
Code:
#! /bin/sh
echo 'FEEEEEEBLIX!!!!!'

That is now an available command. You can download it and install it and run it for yourself. A complete list of all possible commands would have to take that into account. I sincerely doubt that any list does.

It also doesn't take into account the millions of useful programs that people have written and made available, but aren't noticed by your distribution, for example. That doesn't stop you from downloading and using them, though.


A command is, in its most common form, just a program. You can make new ones every day.


To find a list of commands available to you at a given time, if you're using bash, try:
Code:
ls /{,usr/{,local/}bin
help
alias
set -f

You can always install more, though.
 
Whoops.

The line
Code:
ls /{,usr/{,local/}bin
should read
Code:
ls /{,usr/{,local/}}bin

That is, i forgot a curly brace.
 
Whoops again.

Instead of
Code:
set -f
use
Code:
declare -f

Sorry. I gotta start checking before I hit submit...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top