[Shell] Find
Find it and do what you want
It’s safe to say that the find
command in Linux is one of the must-know operations for backend developers, unless you are using a Windows-server
It’s safe to say that the find
command in Linux is one of the must-know operations for backend developers, unless you are using a Windows-server
그들이 parent process로부터 적절하게 정리되지 않은 dead process
이다SIGCHLD
signal을 받는다wait() 시스템 콜
을 호출wait()
이 호출 된 후, zombie process는 완전히 메모리부터 제거ps
and htop
- listeing and finding proceesshtop
프로그램은 더 유연하고 사용하기 쉬움ss
and netstat
- what ports is that process usingnetstat
은 old way이고 요즘 배포판은 ss
가 많이 적용ss -ntaupe
ss -ntpl
: listening port만 찾기 위함-n
: lists processing using numeric address-t
: list TCP connections-a
: list all connections listening and establised-u
: lists UDP connections-p
: shows the process using the socket - probably the most useful-e
: shows some extened information like the uiddf - report file system disk space usage
df [OPTION]…[FILE]
df -TH
df -T /home/bastion
# 년월일 형태 $ date +%Y%m%d 20190212
# %를 지원하지 않는 환경(ex: crontab)에서는 특수기호로 입력 $ date +\%Y\%m\%d 20190212
# 년월일 시간 출력 $ date +”%Y%m%d %H:%M:%S” 20190212 08:46:53 # 주차 계산 $ date +%W 06
- **일자 변경**
# 1일 전 $ date +%Y-%m-%d -d ‘1 days ago’ 2019-02-11
# 1일 후 $ date +%Y-%m-%d -d ‘+1days’ 2019-02-13
# 20190101 일자 지정후 1일 추가 $ date +%Y-%m-%d -d ‘20190101 +1days’ 2019-01-02 ```
print
Formatsprintf "%s %s\n", "don't", "panic"
printf "%2$s %1$s\n", "panic", "don't"