root💀senseicat:~#

Hack. Eat. Sleep. Repeat!!!


Project maintained by SENSEiXENUS Hosted on GitHub Pages — Theme by mattgraham

Bash Scripting

Bash


Bash manual


What is a shell?



SHELL SYNTAX


#script
- Reads it from a file or if it is passed as an argument with `-c`  or from the user terminal
- Breaks the input into words and operators, obeying the quoting rules described in Quoting. These tokens are separated by metacharacters.
- Parses the tokens into simple and compound commands
- Performs the various shell expansions (see Shell Expansions), breaking the expanded tokens into lists of filenames
- Performs any necessary redirections
- Optionally waits for the command to complete and collects its exit status

image

- Escape Character
- Single Quotes
- Double quotes
- Ansi-c Quoting
- Locale-Specific Translation

Comments



SHELL COMMANDS



if
fi
then
elseif
time
for
in
until
while
do
done
case
esac
coproc
select
function
{
}
[[
]]
!
ls|base64