Update Linux.md

This commit is contained in:
fighterhit 2018-07-30 15:26:33 +08:00 committed by GitHub
parent e525c61651
commit 8a42a419be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1078,7 +1078,7 @@ dmtsai pts/0 192.168.1.100 Thu Jul 9 17:23 - 23:36 (06:12)
dmtsai pts/0 192.168.1.100 Thu Jul 9 08:02 - 08:17 (00:14)
dmtsai tty1 Fri May 29 11:55 - 12:11 (00:15)
$ last -n 5 | awk '{print $1 "\t" $3}
$ last -n 5 | awk '{print $1 "\t" $3}'
```
可以根据字段的某些条件进行匹配,例如匹配字段小于某个值的那一行数据。