avatar
m*s
1
My dear friend, recently I was frustated by bioinformatic homework. It is abut
unix, so I come here to get help.
write a command that copies the last 100 lines of the one log file to a file
in your home directory.
Thanks a lot!
avatar
m*e
2
last -n 100 log_file > ~/

【在 m*******s 的大作中提到】
: My dear friend, recently I was frustated by bioinformatic homework. It is abut
: unix, so I come here to get help.
: write a command that copies the last 100 lines of the one log file to a file
: in your home directory.
: Thanks a lot!

avatar
yy
3
I think it might be "tail" instead of last.
tail -n 100 log_file > ~/

【在 m*****e 的大作中提到】
: last -n 100 log_file > ~/
avatar
m*s
4
Thanks, it works! When I open the new file (the oringinal file is
access_log)in my home directory and try to read it, it says "wtmp begins Tue
Dec 21 17:12:55 2004", what is means? Thanks!

abut
file

【在 m*****e 的大作中提到】
: last -n 100 log_file > ~/
avatar
m*s
5
Yeah, the tail command works. Thanks!

is abut
file

【在 yy 的大作中提到】
: I think it might be "tail" instead of last.
: tail -n 100 log_file > ~/

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。