m*******s 发帖数: 6 | 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! |
m*****e 发帖数: 4193 | 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!
|
yy 发帖数: 45 | 3 I think it might be "tail" instead of last.
tail -n 100 log_file > ~/
【在 m*****e 的大作中提到】 : last -n 100 log_file > ~/
|
m*******s 发帖数: 6 | 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 > ~/
|
m*******s 发帖数: 6 | 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 > ~/
|