Linux CLI Cheat Sheet

Useful CLI Shortcus: CTRL + L Clear CLI Screen CTRL + C SIGINT Signal Interrupt CTRL + D ENDOFSTREAM Signal Interrupt CTRL + W Delete Word Little CLI Warm up pwd # print working directory cd path # change working directory cd . # current folder cd .. # parent folder cd / # selected folder cd ~ # home directory ./my-proc # run my-proc process mkdir folderName # create folder touch file # create file echo "Hello" > fileName # Write Hello to file (> mean direction) echo $?...

January 15 2023 · 5 min · brkzr

Docker CLI Cheat Sheet

Commonly used docker commands: General Commands docker --help # first always ask help from docker --help !!! docker system prune # prune all system (use it carefully !) docker version # docker version (-v) docker stats # stats of running container docker top <containerID> # show process of container docker logs <containerID> # show logs of container docker port <containerID> # show mapped port of container Images & Docker Hub docker search <imageName> # search an image in Docker Hub....

December 30 2022 · 2 min · brkzr