-
Notifications
You must be signed in to change notification settings - Fork 0
Quick start guide for bash
Mahdi Qiamast edited this page Feb 8, 2023
·
1 revision
Concept | Description |
---|---|
Command | A instruction that the shell executes |
Argument | Information passed to a command to modify its behavior |
Option | A flag used to modify the behavior of a command |
- Create a new file with
.sh
extension - Add commands to the file
- Make the file executable with
chmod +x <file>
- Run the file with
./<file>
- Use
#
to add comments to your script - Use options like
-l
or--long
to modify the behavior of commands - Use command substitution with
$(command)
to include the output of a command in another command - Use environment variables like
$HOME
to access information about the system.