본문 바로가기

Cloud

검색하기
Cloud
프로필사진 Firewall

  • 분류 전체보기 (85)
    • 윈도우 (6)
    • 리눅스 (30)
    • 유닉스 (1)
    • 클라우드 (18)
    • 네트워크 (8)
    • IT기기 (2)
    • 생활 (4)
    • 인프라관리-코드 (5)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2026/01   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Tags
  • fdisk
  • DISK
  • 센토스
  • Linux
  • centos
  • Windows
  • 아마존
  • nvme
  • mysql
  • resize2fs
  • xen
  • port
  • VPN
  • x-forward-for
  • EC2
  • DELETE
  • Query
  • x-real-ip
  • terraform
  • ubuntu
  • EBS
  • 리눅스
  • AWS
  • deragistration
  • ntp
  • awscli
  • RDS
  • onpromise
  • Error
  • 인스턴스타입
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록awk (1)

Cloud

시스템에 특정 확장자의 용량 총합 확인

find /data -type f -name "*.apk" -ls | awk '{ result += $7 } END { print result }' find /data -type f -name "*.apk" -ls 앞의 find 는 경로 파일이름을 지정하는 것이고 -ls 는 ls 방식으로 출력함을 표기 | awk '{ result += $7 } END { print result }' 파이프 다음의 aws 는 7번째 칸을 result 로 선언하고 + 로 합침 END 선언하고 result 를 출력함. 이렇게 xargs 를 줘도 됨. ls | xargs du -sh

리눅스 2019. 1. 17. 16:22
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바