# linux_cmds **Repository Path**: souththree/linux_cmds ## Basic Information - **Project Name**: linux_cmds - **Description**: No description available - **Primary Language**: Shell - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-09-05 - **Last Updated**: 2025-01-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # cmds ## Linux ### CPU #### 1. top #### 2. proc/cpuinfo ```shell cat /proc/cpuinfo ``` #### 3. lscpu #### 4. pidstat #### 5. perf ```shell perf top -g -p 94755 ``` #### 6. dstat #### 7. vmstat #### 8. proc stat ```shell cat /proc/statst ``` #### 9. strace ```shell strace -tt -T -p 94755 ``` ### Memory #### 1. free ```shell free -hory ``` ### I/O #### 1. df ```sh df -h df -i ``` #### 2. du ```shell du -sh du -sh * ``` #### 3. atop ```shell atop atop -r /var/log/atop/atop_20240907 ``` #### 4. dmesg ```shell dmesg ``` #### 5. journalctl ```shell journalctl -u docker.service ``` #### 6. vmstat #### 7. lsof #### 8. iostat #### 9. iotop #### 10. pidstat #### 11. strace #### 12. du ### network #### 1. tcpdump #### 2. ip ```shell ip -s addr show eth0 ``` #### 3. ifconfig #### 4. ss #### 5. netstat #### 6. ping #### 7. tracert #### 8. nslookup #### 9. dig #### 10. telnet ## containerd ### images ```shell ctr images ls ctr images pull docker.io/library/nginx:latest https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 ctr image pull docker.io/library/nginx:latest ctr images tag docker.io/library/nginx:latest mynginx ``` ### container ```shell ctr c ls ctr c create docker.io/library/hello-world:latest hello-world ctr c info hello-world ctr c create --mount type=bind,src=/tmp,dst=/host,options=rbind:ro docker.io/library/nginx:latest nginx-test ``` ### task ```shell ctr t ls ctr t start hello-world ctr t start --detach hello-world ctr t exec --exec-id test1 nginx-test bash ctr t exec --exec-id test1 nginx-test curl 127.0.0.1:80 ctr t exec -t --exec-id curl1 nginx-test /bin/bash ctr t attach nginx-test ctr t kill -s 9 nginx-test ``` ### run ```shell ctr run --detach --mount type=bind,src=/tmp,dst=/host,options=rbind:ro docker.io/library/nginx:latest nginx-mount ``` ## kubernetes