Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 See also  





2 References  





3 External links  














Shell builtin






Čeština
Italiano
Português
Українська

 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


In computing, a shell builtin is a command or a function, called from a shell, that is executed directly in the shell itself, instead of an external executable program which the shell would load and execute.[1][2][3][4]

Shell builtins work significantly faster than external programs, because there is no program loading overhead. However, their code is inherently present in the shell, and thus modifying or updating them requires modifications to the shell. Therefore, shell builtins are usually used for simple, almost trivial, functions, such as text output. Because of the nature of some operating systems, some functions of the systems must necessarily be implemented as shell builtins. The most notable example is the cd command, which changes the working directory of the shell. Since each executable program runs in a separate process, and working directories are specific to each process, loading cd as an external program would not affect the working directory of the shell that loaded it.[5]

See also

[edit]

References

[edit]
  • ^ Tansley, David (2000). "24. Shell built-in commands". Linux and Unix shell programming. Harlow: Addison-Wesley. ISBN 9780201674729.
  • ^ Sobell, Mark G. (2003). "Built-ins". A Practical Guide to Red Hat Linux 8. pp. 161–162.
  • ^ Albing, Carl; Vossen, JP; Newham, Cameron. "1.7. Using or Replacing Built-ins and External Commands". Bash Cookbook. O'Reilly Media. pp. 13–15. ISBN 9780596554705.
  • ^ Kuhn, Darl; Kim, Charles; Lopuz, Bernard (2015). Linux and Solaris Recipes for Oracle DBAs (2nd ed.). Berkeley, CA: Apress. p. 47. ISBN 9781484212547.
  • [edit]


  • t
  • e

  • Retrieved from "https://en.wikipedia.org/w/index.php?title=Shell_builtin&oldid=1182618266"

    Categories: 
    Windows commands
    Command shells
    Operating system stubs
    Hidden category: 
    All stub articles
     



    This page was last edited on 30 October 2023, at 10:47 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki