Wednesday, 25 December 2013

How to find any command type shell buliten or other

Hello friends I am Deepak Saini and today i am show you how to find the type of any command.

Lets start
We are using type command for this
How basicaly we use this command
syntax:-type <command name>
 
Working of type command 
The type command is a shell builtin that displays the kind of command the shell will execute, given a particular command name.

 Type commands options
1 -a
2 -p
3 -t


So now we are discus about these options
1 -a :-The -a option can be used to find out if given command is disk file, alias, keyword or function. It will display all of the places that contains an executable available including aliases, builtins, and functions.
How to use
syntax:- type -a <command name >



2 -p :- The -p option is used to find of the name of the disk file (external command) would be executed by the shell. It will return nothing if it is not a disk file.

3 -t :- If the -t option is used, it will print a single word which is one of the following
  • alias (command is shell alias)
  • keyword (command is shell reserved word)
  • function (command is shell function)
  • builtin (command is shell builtin)
  • file (command is disk file)


 Thanks for reading and Sorry for R.I.P english _/\_ jai hind

0 comments:

Post a Comment