# free | tr -s ' ' | sed '/^Mem/!d' | cut -d" " -f2
1048752
1048752
tr
-s, --squeeze-repeats
replace each input sequence of a repeated character that is listed in SET1 with a
single occurrence of that character
replace each input sequence of a repeated character that is listed in SET1 with a
single occurrence of that character
cut
-d, --delimiter=DELIM
use DELIM instead of TAB for field delimiter
use DELIM instead of TAB for field delimiter
-f, --fields=LIST
select only these fields; also print any line that contains no delimiter character,
unless the -s option is specified
select only these fields; also print any line that contains no delimiter character,
unless the -s option is specified
sed
/regexp/
Match lines matching the regular expression regexp.
Match lines matching the regular expression regexp.
'서버관리' 카테고리의 다른 글
[sendmail] 여러 도메인에서 동일한 계정사용하기 (0) | 2012.11.20 |
---|---|
[sendmail] domainalias 설정 (0) | 2012.11.20 |
total 메모리를 구해보자 (0) | 2012.11.19 |
/etc/hosts 아이피로 sort 하기 (0) | 2012.11.19 |
ping 응답하지 않게 설정 (0) | 2012.11.19 |
tomcat download (0) | 2012.11.19 |
WRITTEN BY
- 김병국
유용했던 자료를 기록해 두었습니다. 도움이 되시길~~~ Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you fun
받은 트랙백이 없고
,
댓글이 없습니다.