mirror of https://github.com/CrimsonTome/tldr.git
Merge pull request #225 from egilkh/change-formatting
Make tcpdump, wall and useradd match formatting.waldyrious/alt-syntax
commit
91f359a074
|
@ -22,8 +22,7 @@
|
||||||
|
|
||||||
`tcpdump net {{192.168.1.0/24}}`
|
`tcpdump net {{192.168.1.0/24}}`
|
||||||
|
|
||||||
- capture all traffic except traffic over port 22 and save to a dump file with today's date
|
- capture all traffic except traffic over port 22 and save to a dump file
|
||||||
|
|
||||||
|
`tcpdump -w dumpfile.pcap not port 22`
|
||||||
|
|
||||||
```
|
|
||||||
tcpdump -w dumpfile.`date +%Y.%m.%d-%H.%M`.pcap not port 22
|
|
||||||
```
|
|
||||||
|
|
|
@ -4,16 +4,17 @@
|
||||||
|
|
||||||
- Create new user
|
- Create new user
|
||||||
|
|
||||||
`useradd {{name}}`
|
`useradd {{name}}`
|
||||||
|
|
||||||
- Create new user with a default home directory
|
- Create new user with a default home directory
|
||||||
|
|
||||||
`useradd -m {{name}}`
|
`useradd -m {{name}}`
|
||||||
|
|
||||||
- Create new user with specified shell
|
- Create new user with specified shell
|
||||||
|
|
||||||
`useradd -s {{/path/to/shell}} {{name}}`
|
`useradd -s {{/path/to/shell}} {{name}}`
|
||||||
|
|
||||||
- Create new user with supplementary groups (mind the lack of whitespace)
|
- Create new user with supplementary groups (mind the lack of whitespace)
|
||||||
|
|
||||||
`useradd -G {{group1,group2}} {{name}}`
|
`useradd -G {{group1,group2}} {{name}}`
|
||||||
|
|
||||||
|
|
|
@ -4,10 +4,14 @@
|
||||||
> only available to super-user
|
> only available to super-user
|
||||||
|
|
||||||
- send a message
|
- send a message
|
||||||
|
|
||||||
`echo "{{message}}" | wall`
|
`echo "{{message}}" | wall`
|
||||||
|
|
||||||
- send a message from a file
|
- send a message from a file
|
||||||
|
|
||||||
`wall {{file}}`
|
`wall {{file}}`
|
||||||
|
|
||||||
- send a message with timeout (default 300)
|
- send a message with timeout (default 300)
|
||||||
|
|
||||||
`wall -t {{seconds}} {{file}}`
|
`wall -t {{seconds}} {{file}}`
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue