Zip
sudo apt -qq update
sudo apt install -y zip unzip
unzip -V
zip -V
|
Compress
|
Compress |
|---|
cd /etc/nginx
zip -r chorke-nginx-academia.prod.2024-06-28T2023.zip sites-enabled
zip -r chorke-nginx-academia.prod.2024-06-28T2023.zip sites-enabled -x default
|
Decompress
|
Decompress |
|---|
unzip -l chorke-nginx-academia.prod.2024-06-28T2023.zip
unzip chorke-nginx-academia.prod.2024-06-28T2023.zip
unzip chorke-nginx-academia.prod.2024-06-28T2023.zip -d chorke-nginx-academia-production
|
Commands
|
Commands | |
|---|---|
-r: Recursive child folder
-x: Exclude file from the archive
-l: List the contents of the archive
-f: Specifies the name of the archive
|
|
DateTime Format
|
DateTime Format | |
|---|---|
echo "$(TZ=UTC-8 date +'%Y-%m-%dT%H%M')"
echo "$(TZ=UTC-8 date +'%FT%H%M')"
BKP_DATE_N_TIME="$(TZ=UTC-8 date +'%FT%H%M')"
:'
2025-10-10T1010
├─ 2025-10-21
│ ├─ 2025 « %Y
│ ├─ 10 « %m
│ └─ 10 « %d
└─ T1010
├─ T « Time
├─ 10 « %H
└─ 10 « %M
'
|
|
References
|
References | ||
|---|---|---|