first commit
This commit is contained in:
19
BashScriptFile.md
Executable file
19
BashScriptFile.md
Executable file
@@ -0,0 +1,19 @@
|
||||
## Basic bash script
|
||||
```
|
||||
#!/bin/bash
|
||||
|
||||
# declare STRING variable
|
||||
STRING="Hello World"
|
||||
|
||||
#print variable on a screen
|
||||
echo $STRING
|
||||
```
|
||||
|
||||
## Backup bash script
|
||||
|
||||
```
|
||||
#!/bin/bash
|
||||
tar -czf backup.tar.gz /home/app/data
|
||||
```
|
||||
|
||||
[Bash Scripting Tutorial](https://linuxconfig.org/bash-scripting-tutorial)
|
||||
Reference in New Issue
Block a user