<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Shell_builtin</id>
	<title>Shell builtin - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Shell_builtin"/>
	<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Shell_builtin&amp;action=history"/>
	<updated>2026-10-26T18:03:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://debianws.lexgopc.com/wiki143/index.php?title=Shell_builtin&amp;diff=2135530&amp;oldid=prev</id>
		<title>imported&gt;THEDUMOX: Adding local short description: &quot;Computer function&quot;, overriding Wikidata description &quot;command or a function, called from a shell&quot;</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Shell_builtin&amp;diff=2135530&amp;oldid=prev"/>
		<updated>2025-05-13T23:47:54Z</updated>

		<summary type="html">&lt;p&gt;Adding local &lt;a href=&quot;https://en.wikipedia.org/wiki/Short_description&quot; class=&quot;extiw&quot; title=&quot;wikipedia:Short description&quot;&gt;short description&lt;/a&gt;: &amp;quot;Computer function&amp;quot;, overriding Wikidata description &amp;quot;command or a function, called from a shell&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Computer function}}&lt;br /&gt;
In computing, a &amp;#039;&amp;#039;&amp;#039;shell builtin&amp;#039;&amp;#039;&amp;#039; is a [[Command (computing)|command]] or a [[Subroutine|function]], exposed by a [[Shell (computing)|shell]], that is implemented in the shell itself, instead of an external [[computer program|program]] which the shell would load and execute.&amp;lt;ref&amp;gt;[http://pubs.opengroup.org/onlinepubs/9699919799//utilities/V3_chap02.html#tag_18_09 POSIX standard: Shell Commands]&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{cite book |last1=Tansley |first1=David |title=Linux and Unix shell programming |date=2000 |publisher=Addison-Wesley |location=Harlow |isbn=9780201674729 |chapter=24. Shell built-in commands}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{cite book |last1=Sobell |first1=Mark G. |title=A Practical Guide to Red Hat Linux 8 |date=2003 |pages=161–162 |chapter-url=https://books.google.com/books?id=7ExfDfcLZXsC&amp;amp;dq=shell+built-in+commands&amp;amp;pg=PA162 |chapter=Built-ins}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{cite book |author1=Albing, Carl |author2=Vossen, JP |author3=Newham, Cameron |title=Bash Cookbook |publisher=O&amp;#039;Reilly Media |isbn=9780596554705 |pages=13–15 |chapter-url=https://books.google.com/books?id=Qu6H8fnAvGoC&amp;amp;dq=shell+built-in+commands&amp;amp;pg=PA14 |chapter=1.7. Using or Replacing Built-ins and External Commands}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A shell builtin starts faster than an external program because there is no program loading overhead. However, its implementation code is in the shell program, and thus modifying it requires modifying the shell. Therefore, a shell builtin is usually only used for simple, almost trivial, commands, such as text output.&lt;br /&gt;
&lt;br /&gt;
Some commands must be implemented as builtins due to the nature of the [[operating system]]. &lt;br /&gt;
Notably, the &amp;lt;code&amp;gt;[[cd (command)|cd]]&amp;lt;/code&amp;gt; command, which changes the [[working directory]] of the shell is often a builtin since a program runs in a separate [[Process (computing)|process]] and working directory is specific to each process. Running &amp;lt;code&amp;gt;cd&amp;lt;/code&amp;gt; as an external program would not affect the working directory of the shell that loaded it.&amp;lt;ref&amp;gt;{{cite book |last1=Kuhn |first1=Darl |last2=Kim |first2=Charles |last3=Lopuz |first3=Bernard |title=Linux and Solaris Recipes for Oracle DBAs |date=2015 |publisher=Apress |location=Berkeley, CA |isbn=9781484212547 |pages=47 |edition=2nd |url=https://books.google.com/books?id=p-wLCwAAQBAJ&amp;amp;dq=shell+built-in+commands&amp;amp;pg=PA46}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* {{Annotated link|BusyBox}}&lt;br /&gt;
* {{Annotated link|Internal DOS command}}&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{Reflist}}&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
* [http://pubs.opengroup.org/onlinepubs/9699919799//utilities/V3_chap02.html#tag_18_14 List of special shell builtin commands]&lt;br /&gt;
* [http://www.computerhope.com/jargon/i/intecomm.htm List of MS-DOS internal commands]&lt;br /&gt;
&lt;br /&gt;
{{Unix commands}}&lt;br /&gt;
{{Windows commands}}&lt;br /&gt;
&lt;br /&gt;
{{DEFAULTSORT:Shell Builtin}}&lt;br /&gt;
[[Category:Command shells]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Operating-system-stub}}&lt;/div&gt;</summary>
		<author><name>imported&gt;THEDUMOX</name></author>
	</entry>
</feed>