IA/System Admin
[tip] 명령어 빈도(linux계열)
kiostory
2019. 3. 18. 23:57
사용한 명령어의 빈도를 확인하고자 할때.
Administrator:~ $ history |awk '{a[$2]++}END{for(i in a){print a[i]" "i}}' |sort -nr
12 ls
9 cd
6 pwd
3 man
3 id
2 python
2 ntpq
2 mkdir
2 history
2 chronyc
2 cat
1 uname
1 su
1 clear
1 chronyd