commands in shell?
How do I find out what commands are instald in a bash shell?
Some of them got man pages but are not installed and wise versa and some got an own program in bin etc and some do not. And then its probebly a diffrence in linux/unix etc and all the versions. I want a command that lists all the commands. thanks. This would be helpfull for me. |
Open a console and enter this command: man bash. That will list all the commands that bash uses, complete with command options.
|
You are missing something. There is bash, which is a shell and a scripting language interpreter and has some embedded commands and there are many Command Line commands, which will run in any shell, bash, sh, tcsh.... and are under a bin ore sbin folder.
try "man bash" to find out how bash works. For the other commands, the most important ls, du, rm, etc... are the GNU core utilities and in most cases are packed in a package called coreutils. All the others command line commands are in other packages. Use your distro's packet manager to find them out. You may search for commands by using the apropos command. try Code:
apropos dvd If you are asking, can somebody tell me a way to list all the command line commands, I think the answer will be no. |
thanks perfect circle
Thats what i suspected. Its hard to findout where the command commes from bash, bin, package etc. If its installed and if its dubble installed with diffrent versions? Witch one is used? etc I think I got a step lerningcurve here. thanks again |
if you install that same version of a command under the same path, the the old executable will be probably overwritten be because they have the same name. In any other chance the one that is default executed depend of the path. In my system the path is:
Code:
skalkoto@darkstar:~$ printenv PATH /usr/local/bin and /usr/bin, the one in /usr/local/bin will be executed, unless you use a fullpath: "/usr/bin/ls". There is also the "which" command that will tell you which command will be executed when you type only the command name in a terminal: Code:
skalkoto@darkstar:~$ which ls Code:
LC_ALL=el_GR /usr/bin/winword Code:
skalkoto@darkstar:~$ cat /usr/local/bin/winword |
Quote:
Certainly, apropos (or man -k) and google will be much more helpful |
Quote:
|
what would you mean exactly, by a GUI command?
|
I mean a command that needs X-Server, like firefox.
A command that is useless unless you run X-Window |
If you have a directory full of executables (ie either binaries or scripts), I am not sure how you would search them based on whether they were dependent on X-windows---or on anything else for that matter.
What is the root problem here---what swamp are we trying to drain? |
All times are GMT -5. The time now is 07:57 PM. |