Difference between revisions of "Bash"

From wikieduonline
Jump to navigation Jump to search
 
(32 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Draft}}
+
https://en.wikipedia.org/wiki/Bash_(Unix_shell) ([[1989]]) [[Unix shell]]
  
https://en.wikipedia.org/wiki/Bash_(Unix_shell) (1989)
 
  
* [[Bash History]]
+
* macOS installation: <code>[[brew install bash]]</code>
* [[alias]]
+
 
 +
 
 +
* [[Bash history]]
 +
* [[Bash: alias|alias]]
 
* <code>[[function]] { }</code>
 
* <code>[[function]] { }</code>
* <code>[[&&]]</code> and <code>||</code> operator
+
* <code>[[&&]]</code> and <code>||</code> [[operator]]
 
* <code>#!</code> ([[shebang (Unix)]])
 
* <code>#!</code> ([[shebang (Unix)]])
* <code>[[for]]</code> and <code>[[while]]</code>. See also: [[Use loops in task (Ansible)]]
+
* <code>[[for]]</code>, <code>[[while]]</code> and <code>[[until]]</code>. See also: [[Use loops in task (Ansible)]]
 
* <code>[[source]]</code> and <code>.</code> for [[includes]]
 
* <code>[[source]]</code> and <code>.</code> for [[includes]]
 
* <code>[[set]]</code>
 
* <code>[[set]]</code>
 
* [[Autocompletion]]
 
* [[Autocompletion]]
* <code>/lib/lsb/init-functions</code>
+
* <code>[[/lib/lsb/]]init-functions</code>
* <code>[[shift]]</code> built-in
 
 
* <code>[[exit]]</code> , <code>[[return]]</code><ref>https://stackoverflow.com/questions/4419952/difference-between-return-and-exit-in-bash-functions</ref> and <code>$?</code>
 
* <code>[[exit]]</code> , <code>[[return]]</code><ref>https://stackoverflow.com/questions/4419952/difference-between-return-and-exit-in-bash-functions</ref> and <code>$?</code>
 
* <code>[[.bashrc]]</code>, <code>[[.bash_profile]]</code><ref>https://apple.stackexchange.com/a/51038</ref>
 
* <code>[[.bashrc]]</code>, <code>[[.bash_profile]]</code><ref>https://apple.stackexchange.com/a/51038</ref>
* Bash [[builtin]] functions: <code>[[complete]]</code>
+
* Bash [[builtin]] functions: <code>[[complete]]</code>, <code>[[shift]]</code>, <code>[[disown]]</code>
 
* [[Brace expansion]]<ref>https://www.cyberciti.biz/faq/explain-brace-expansion-in-cp-mv-bash-shell-commands/</ref>
 
* [[Brace expansion]]<ref>https://www.cyberciti.biz/faq/explain-brace-expansion-in-cp-mv-bash-shell-commands/</ref>
 
* [[Ctrl+z]] + [[bg]]
 
* [[Ctrl+z]] + [[bg]]
* [[PS1]]
+
* [[Variable]]: <code>[[PS1]]</code>, [[PATH]]
 
* Arrays https://kb.novaordis.com/index.php/Bash_Arrays
 
* Arrays https://kb.novaordis.com/index.php/Bash_Arrays
 +
* <code>[[shopt]]</code>
 +
* <code>[[trap]]</code>
 +
* <code>[[eval]]</code>
 +
* <code>[[dirname]]</code>
 +
* [[Bash -c]]
 +
* <code>bash --login</code>
  
 
== Activities ==
 
== Activities ==
# Read ''What is the difference between .bash_profile and .bashrc?'', https://apple.stackexchange.com/a/51038
+
# Read ''What is the difference between [[.bash_profile]] and [[.bashrc]]?'', https://apple.stackexchange.com/a/51038
 
# Read https://j.ludost.net/blog/archives/2019/12/09/shell_wildcards_considered_dangerous/index.html
 
# Read https://j.ludost.net/blog/archives/2019/12/09/shell_wildcards_considered_dangerous/index.html
 +
# Read https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html
  
 
== Related terms ==
 
== Related terms ==
* <code>[[sed]]</code>
+
* <code>[[sed]], [[awk]]</code>
* <code>[[awk]]</code>
 
 
* [[variable]]
 
* [[variable]]
 +
* [[readlink]]
 +
* [[Windows Subsystem for Linux (WLS)]]
 +
* [[fzf]]
 +
* [[pushd]], [[popd]]
 +
* [[space in Bash commands]]
  
 
== See also ==
 
== See also ==
 
* {{Bash}}
 
* {{Bash}}
 
* {{shells}}
 
* {{shells}}
* {{C}}
 
* {{stdin}}
 
* {{IaC}}
 
  
[[Category:Computing]]
 
[[Category:programming]]
 
 
[[Category:Shells]]
 
[[Category:Shells]]
 +
[[Category:Bash]]

Latest revision as of 15:57, 18 February 2024

https://en.wikipedia.org/wiki/Bash_(Unix_shell) (1989) Unix shell



Activities[edit]

  1. Read What is the difference between .bash_profile and .bashrc?, https://apple.stackexchange.com/a/51038
  2. Read https://j.ludost.net/blog/archives/2019/12/09/shell_wildcards_considered_dangerous/index.html
  3. Read https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html

Related terms[edit]

See also[edit]

  • https://stackoverflow.com/questions/4419952/difference-between-return-and-exit-in-bash-functions
  • https://apple.stackexchange.com/a/51038
  • https://www.cyberciti.biz/faq/explain-brace-expansion-in-cp-mv-bash-shell-commands/
  • Advertising: