Saturday, July 22, 2017

▷ Filesystem usage over 60 % (사용율이 60% 이상)

[ To find filesystem usage ]


# df | awk 'NF==1 { printf("%s ",$0) }; NF==5 { print $0 }; NF>=6 { print $0 }' | sed -n '2,$ p' | tr -d '%' | awk '$5>=60 { print $NF, $5 "%" }'

/ 82%
/apps 63%


Comment.
- sed -n '2,$ p' : print without header
- tr -d '%': delete % char
- tr -cd '%': delete all char except %

No comments:

Post a Comment

◈ Recent Post

▷ UITest demo with TestOne (Mobile, Keypad and Drag until found tip)

[ UITest Demo Environment ] 1. UITest Solution: TestOne 2. Description 데모 설명    How to use keypad, and to drag until found.     키패드를...

◈ Popular Posts