mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 08:42:08 +02:00
Fixed annoyingly incorrect file syntaxes
This commit is contained in:
parent
cce44d1ab1
commit
b755e726c8
6 changed files with 16 additions and 17 deletions
|
@ -2,18 +2,18 @@
|
||||||
|
|
||||||
> passwd is a tool used to change a user's password.
|
> passwd is a tool used to change a user's password.
|
||||||
|
|
||||||
* Change the password of the current user
|
- Change the password of the current user
|
||||||
|
|
||||||
`passwd {{new password}}`
|
`passwd {{new password}}`
|
||||||
|
|
||||||
* Change the password of the specified user
|
- Change the password of the specified user
|
||||||
|
|
||||||
`passwd {{username}} {{new password}}`
|
`passwd {{username}} {{new password}}`
|
||||||
|
|
||||||
* Get the current statuts of the user
|
- Get the current statuts of the user
|
||||||
|
|
||||||
`passwd -S`
|
`passwd -S`
|
||||||
|
|
||||||
* Make the password of the account blank (it will set the named account passwordless)
|
- Make the password of the account blank (it will set the named account passwordless)
|
||||||
|
|
||||||
`passwd -d`
|
`passwd -d`
|
||||||
|
|
|
@ -8,12 +8,12 @@
|
||||||
|
|
||||||
- Execute a highstate on all connected minions:
|
- Execute a highstate on all connected minions:
|
||||||
|
|
||||||
`salt '*' state.highstate
|
`salt '*' state.highstate`
|
||||||
|
|
||||||
- Upgrade packages using the OS package manager (apt, yum, brew) on a subset of minions
|
- Upgrade packages using the OS package manager (apt, yum, brew) on a subset of minions
|
||||||
|
|
||||||
`salt '*.domain.com' pkg.upgrade
|
`salt '*.domain.com' pkg.upgrade`
|
||||||
|
|
||||||
- Execute an arbitrary command on a particular minion:
|
- Execute an arbitrary command on a particular minion:
|
||||||
|
|
||||||
`salt '{{minion_id}}' cmd.run "ls "
|
`salt '{{minion_id}}' cmd.run "ls "`
|
||||||
|
|
|
@ -6,8 +6,7 @@
|
||||||
|
|
||||||
`sed 's/{{find}}/{{replace}}/g' {{filename}}`
|
`sed 's/{{find}}/{{replace}}/g' {{filename}}`
|
||||||
|
|
||||||
- replace all occurrences of a string in a file, and overwrite the file
|
- replace all occurrences of a string in a file, and overwrite the file contents
|
||||||
contents
|
|
||||||
|
|
||||||
`sed -i 's/{{find}}/{{replace}}/g' {{filename}}`
|
`sed -i 's/{{find}}/{{replace}}/g' {{filename}}`
|
||||||
|
|
||||||
|
|
|
@ -2,14 +2,14 @@
|
||||||
|
|
||||||
> Change a file access and modification times (atime, mtime)
|
> Change a file access and modification times (atime, mtime)
|
||||||
|
|
||||||
- Create a new empty file(s) or change the times for existing file(s) to current time.`
|
- Create a new empty file(s) or change the times for existing file(s) to current time.
|
||||||
|
|
||||||
`touch {{filename}}`
|
`touch {{filename}}`
|
||||||
|
|
||||||
- Set the times on a file to those specified
|
- Set the times on a file to those specified
|
||||||
|
|
||||||
`touch -t 201412250801.59 {{filename}}
|
`touch -t 201412250801.59 {{filename}}`
|
||||||
`touch -t {{YYYYMMDDHHMM.SS}} {{filename}}
|
`touch -t {{YYYYMMDDHHMM.SS}} {{filename}}`
|
||||||
|
|
||||||
- Set the times on a file to match those on second file
|
- Set the times on a file to match those on second file
|
||||||
|
|
||||||
|
|
|
@ -4,16 +4,16 @@
|
||||||
|
|
||||||
- Simply convert RAW files to jpg.
|
- Simply convert RAW files to jpg.
|
||||||
|
|
||||||
``ufraw-batch --out-type=jpg {{input-file(s)}}``
|
`ufraw-batch --out-type=jpg {{input-file(s)}}`
|
||||||
|
|
||||||
- Simply convert RAW files to png.
|
- Simply convert RAW files to png.
|
||||||
|
|
||||||
``ufraw-batch --out-type=png {{input-file(s)}}``
|
`ufraw-batch --out-type=png {{input-file(s)}}`
|
||||||
|
|
||||||
- Extract the preview image from the raw file.
|
- Extract the preview image from the raw file.
|
||||||
|
|
||||||
``ufraw-batch --embedded-image {{input-file(s)}}``
|
`ufraw-batch --embedded-image {{input-file(s)}}`
|
||||||
|
|
||||||
- Save the file with size up to the given maximums MAX1 and MAX2.
|
- Save the file with size up to the given maximums MAX1 and MAX2.
|
||||||
|
|
||||||
``ufraw-batch --size=MAX1,MAX2 {{input-file(s)}}``
|
`ufraw-batch --size=MAX1,MAX2 {{input-file(s)}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue