1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-06 16:15:49 +02:00

Make tcpdump, wall and useradd match formatting.

This commit is contained in:
egilkh 2014-08-18 08:22:39 +02:00 committed by Egil Hanger
parent 7aa0d1f429
commit 6ebb0b550b
3 changed files with 11 additions and 7 deletions

View file

@ -24,6 +24,5 @@
- 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 with today's date
``` `tcpdump -w dumpfile.`date +%Y.%m.%d-%H.%M`.pcap not port 22`
tcpdump -w dumpfile.`date +%Y.%m.%d-%H.%M`.pcap not port 22
```

View file

@ -17,3 +17,4 @@
- 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}}`

View file

@ -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}}`