From 6ebb0b550b1b4c430bc47c0f91f02bee996bdcad Mon Sep 17 00:00:00 2001 From: egilkh Date: Mon, 18 Aug 2014 08:22:39 +0200 Subject: [PATCH] Make tcpdump, wall and useradd match formatting. --- pages/common/tcpdump.md | 5 ++--- pages/common/useradd.md | 9 +++++---- pages/linux/wall.md | 4 ++++ 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/pages/common/tcpdump.md b/pages/common/tcpdump.md index d1600ebf97..cec7c95df7 100644 --- a/pages/common/tcpdump.md +++ b/pages/common/tcpdump.md @@ -24,6 +24,5 @@ - 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` + diff --git a/pages/common/useradd.md b/pages/common/useradd.md index b436a9168a..755c3071b7 100644 --- a/pages/common/useradd.md +++ b/pages/common/useradd.md @@ -4,16 +4,17 @@ - Create new user - `useradd {{name}}` +`useradd {{name}}` - Create new user with a default home directory - `useradd -m {{name}}` +`useradd -m {{name}}` - 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) - `useradd -G {{group1,group2}} {{name}}` +`useradd -G {{group1,group2}} {{name}}` + diff --git a/pages/linux/wall.md b/pages/linux/wall.md index b99a5fd137..faeb51031f 100644 --- a/pages/linux/wall.md +++ b/pages/linux/wall.md @@ -4,10 +4,14 @@ > only available to super-user - send a message + `echo "{{message}}" | wall` - send a message from a file + `wall {{file}}` - send a message with timeout (default 300) + `wall -t {{seconds}} {{file}}` +