Jar: Difference between revisions
Jump to navigation
Jump to search
Created page with " jar --version ==Compress== <syntaxhighlight lang="bash"> cd /etc/nginx jar -cvf chorke-nginx_academia-production-D20240628-T2023-ZP0800.jar sites-enabled </syntaxhighlight> ==Decompress== <syntaxhighlight lang="bash"> jar -tvf chorke-nginx_academia-production-D20240628-T2023-ZP0800.jar jar -xvf chorke-nginx_academia-production-D20240628-T2023-ZP0800.jar jar -xvf chorke-nginx_academia-production-D20240628-T2023-ZP0800.jar chorke-nginx-academia-production </syntaxhighli..." |
|||
| Line 77: | Line 77: | ||
* [[Disk Performance]] | * [[Disk Performance]] | ||
* [[Google Cloud CLI]] | * [[Google Cloud CLI]] | ||
* [[LXC/Logrotate|LXC » Logrotate]] | |||
* [[Free Up RAM]] | * [[Free Up RAM]] | ||
* [[AWS CLI]] | * [[AWS CLI]] | ||
Revision as of 17:05, 30 June 2025
jar --version
Compress
cd /etc/nginx
jar -cvf chorke-nginx_academia-production-D20240628-T2023-ZP0800.jar sites-enabled
Decompress
jar -tvf chorke-nginx_academia-production-D20240628-T2023-ZP0800.jar
jar -xvf chorke-nginx_academia-production-D20240628-T2023-ZP0800.jar
jar -xvf chorke-nginx_academia-production-D20240628-T2023-ZP0800.jar chorke-nginx-academia-production
Explanation
-c: Create a new archive -x: Extract the archive -u: Update the archive -v: Verbosely list files processed -t: List the contents of the archive -f: Specifies the name of the archive
DateTime Format
echo "$(date +'D%Y%m%d-T%H%M')-Z$(date +'%z'|tr '+-' 'PM')"
:'
D20240628-T2023-ZP0800
├─ D20240628
│ ├─ D « Date
│ ├─ 2024 « %Y
│ ├─ 06 « %m
│ └─ 28 « %d
├─ -T2023
│ ├─ - « -
│ ├─ T « Time
│ ├─ 20 « %H
│ └─ 23 « %M
└─ -ZP0800
├─ - « -
├─ Z « Zone
├─ P « {P: Plus (+), M:Minus (-)}
└─ 0800 « Time Offset
'
References
|
| ||