Linux command
utmpdump 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Dump
utmpdump /var/log/wtmp
Example
utmpdump /var/log/btmp
Follow
utmpdump -f /var/log/wtmp
Example
utmpdump -o output.txt /var/log/wtmp
Reverse
utmpdump -r dumpfile > /var/log/wtmp
说明
utmpdump dumps UTMP and WTMP files in raw format for examination and debugging. It can also reverse the process to write edited login information back to the accounting files.
参数
- -f, --follow
- Output appended data as the file grows
- -o, --output FILE
- Write output to specified file instead of stdout
- -r, --reverse
- Undump; write edited login information back to utmp/wtmp files
- -h, --help
- Display help text and exit
- -V, --version
- Print version and exit
FAQ
What is the utmpdump command used for?
utmpdump dumps UTMP and WTMP files in raw format for examination and debugging. It can also reverse the process to write edited login information back to the accounting files.
How do I run a basic utmpdump example?
Run `utmpdump /var/log/wtmp` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -f, --follow do in utmpdump?
Output appended data as the file grows