$conf['savedir'] = '/app/www/public/data'; tricks:shell [DokuWiki]

Site Tools


tricks:shell

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tricks:shell [2021/02/12 08:22] – created joelegtricks:shell [2023/05/30 22:32] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Shell tricks ====== ====== Shell tricks ======
 +{{tag>shell linux tricks}}
 ===== Sudo privilege escalation ===== ===== Sudo privilege escalation =====
 <code bash> <code bash>
Line 6: Line 7:
     exit $?     exit $?
 fi fi
 +</code>
 +
 +===== Posix Documentation =====
 +[[https://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html]]
 +==== Parameter expansion ====
 +[[https://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_06_02 | Section 2.6.2 of the documentation]]\\
 +Expansion can differ depending on parameter value and set status and possibly assign.
 +Substitution can also provide string length and prefix/suffix patterns.
 +===== Useful templates =====
 +==== 7zip compression ====
 +<code bash>
 +7z a -t7z [OUTPUT FILE].7z -m0=lzma2 -mx=9 [INPUT FILE]
 </code> </code>
tricks/shell.1613118148.txt.gz · Last modified: 2023/05/30 22:32 (external edit)