Open caophuong2012 opened 7 years ago
UNIX commands are classified into two types:
Internal command (like cd, fg):
Built into the shell
No process needs to be spawned to executing it
External command (like ls, cat):
To check a command is internal or external:
$ type cd cd is a shell builtin $ type ls ls is an alias for ls --color=tty
Internal vs External command: The big difference between the two types is performance, then we should try to use internal command if it's available.
UNIX commands are classified into two types:
Internal command (like cd, fg):
Built into the shell
No process needs to be spawned to executing it
External command (like ls, cat):
To check a command is internal or external:
Internal vs External command: The big difference between the two types is performance, then we should try to use internal command if it's available.