관련 서적 / 강의 / 자료
df
- “disk free” command
- total disk size, space used, space available, usage percentage, partition the disk is mounted on
$ df -h
Filesystem Size Used Avail Use% Mounted on
overlay 825G 149G 676G 19% /
tmpfs 64M 0 64M 0% /dev
tmpfs 189G 0 189G 0% /sys/fs/cgroup
/dev/sda4 825G 149G 676G 19% /etc/hosts
shm 64M 0 64M 0% /dev/shm
tmpfs 189G 40K 189G 1% /workspace/.kube/config
tmpfs 189G 12K 189G 1% /run/secrets/kubernetes.io/serviceaccount
tmpfs 189G 0 189G 0% /proc/acpi
tmpfs 189G 0 189G 0% /proc/scsi
tmpfs 189G 0 189G 0% /sys/firmware
du
- disk usage
- the size of a given directory or subdirectory
# 뎁스 1 디렉토리들의 disk util (-h: human readable)
$ du -h --max-depth=1
$ du -h --max-depth=1 2>/dev/null
find
# 현재 디렉토리에서 모든 디렉토리 찾기
$ find . -type d
# 현재 디렉토리에서 test가 들어가는 디렉토리 찾기
$ find . -name "*test*" -type d
# 현재 디렉토리에서 모든 파일 찾기
$ find . -type f
$ find . -mtime +1
envsubst
# welcome.txt
Hello user $USER in $DESKTOP_SESSION. It's time to say $HELLO!
$ export HELLO="good morning"
$ envsubst < welcome.txt
Hello user joe in Lubuntu. It's time to say good morning!