mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-12 04:58:52 +00:00
Update cheatsheets
This commit is contained in:
25
shc
Normal file
25
shc
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# shc
|
||||
|
||||
> Generic shell script compiler.
|
||||
> More information: <https://manned.org/shc>.
|
||||
|
||||
- Compile a shell script:
|
||||
|
||||
`shc -f {{script}}`
|
||||
|
||||
- Compile a shell script and specify an output binary file:
|
||||
|
||||
`shc -f {{script}} -o {{binary}}`
|
||||
|
||||
- Compile a shell script and set an expiration date for the executable:
|
||||
|
||||
`shc -f {{script}} -e {{dd/mm/yyyy}}`
|
||||
|
||||
- Compile a shell script and set a message to display upon expiration:
|
||||
|
||||
`shc -f {{script}} -e {{dd/mm/yyyy}} -m "{{Please contact your provider}}"`
|
||||
Reference in New Issue
Block a user