caophuong2012 / til

What I've learned today
0 stars 0 forks source link

Internal vs External command #29

Open caophuong2012 opened 7 years ago

caophuong2012 commented 7 years ago

UNIX commands are classified into two types:

Internal command (like cd, fg):

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.