From dac29ac7e02d5ed89ceef9d28ef4fd457c310cd5 Mon Sep 17 00:00:00 2001 From: lbonanomi <5369016+lbonanomi@users.noreply.github.com> Date: Fri, 19 Apr 2019 02:29:16 -0400 Subject: [PATCH] utmpdump: add page (#2931) --- pages/linux/utmpdump.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 pages/linux/utmpdump.md diff --git a/pages/linux/utmpdump.md b/pages/linux/utmpdump.md new file mode 100644 index 0000000000..b264cb9487 --- /dev/null +++ b/pages/linux/utmpdump.md @@ -0,0 +1,11 @@ +# utmpdump + +> Dump and load btmp, utmp and wtmp accounting files. + +- Dump the `/var/log/wtmp` file to the standard output as plain text: + +`utmpdump {{/var/log/wtmp}}` + +- Load a previously dumped file into `/var/log/wtmp`: + +`utmpdump -r {{dumpfile}} > {{/var/log/wtmp}}`