ZNS Isolation with Linux Container
Linux Shell Commands
Jw._.K
2022. 6. 23. 18:25
Linux 환경 내에서 작업하며 사용한 명령어들 아카이브.
개인적인 용도로 기록하는 거라 가독성이 떨어질 수 있음.
grep [option] [string] : 원하는 문자열/정규식을 표현한 행을 출력하는 명령어
https://www.gnu.org/software/grep/manual/grep.html
ps: 현재 실행중인 프로세스 목록과 상태를 보여줌
-A, -e: 모든 프로세스 목록
-p pidlist: pidlist에 있는 pid들의 목록 보여줌, p, --pid와 동일.
-f: full-format listing.
grep과 연동하면 원하는 이름의 프로세스를 볼 수 있음.
https://man7.org/linux/man-pages/man1/ps.1.html
ssh: ssh 서버 명령어.
-x: Disables X11 forwarding
X11 forwarding: 그래픽 인터페이스와 Display Server 사이의 통신 프로토콜
-L: [bind_address:]port:host:hostport
-f: Requests ssh to go background just before command execution
-N: Do not execute a remote command->for just forwarding ports
-T: Disalbe pseudo-terminal allocation
apt vs apt-get
apt가 조금 더 깔끔한 인터페이스를 제공하고, apt-get이 오래되어서 옵션이 좀 더 많다. 기능은 동일함.