Last active
April 29, 2020 07:30
-
-
Save nikhilgeo/cf07c586dba4b76856bf0b2a2abdf3c0 to your computer and use it in GitHub Desktop.
Revisions
-
nikhilgeo renamed this gist
Apr 29, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
nikhilgeo revised this gist
Apr 29, 2020 . 1 changed file with 6 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,14 @@ Linux ----- >> safe search for text in all files e.g search for clean_up( in all the files recursive. ``` $ grep -nre clean_up\( --exclude-dir={proc,dev,lib,sys} ``` >> search for file and don't get into other filesystems ``` $ find . -xdev -name file_name* ``` Docker -
nikhilgeo revised this gist
Apr 29, 2020 . 1 changed file with 15 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,29 +1,41 @@ Linux ----- >> safe search for text in all files e.g search for clean_up( in all the files recursive. ```$ grep -nre clean_up\( --exclude-dir={proc,dev,lib,sys}``` >> search for file and don't get into other filesystems ```$ find . -xdev -name file_name*``` Docker ------ >> Run a docker container and get bash ``` $ docker run -it ubuntu:18.04 bash ``` >> Get shell of a running container ``` $ docker exec -it [container-name/id] bash ``` >> Remove all the container images ``` $ docker rmi -f $(docker images -a -q) ``` >> Stop and remove all containers ``` $ docker stop $(docker ps -a -q) $ docker rm $(docker ps -a -q) ``` >> list all the containers ``` $ docker container ls -a ``` >> Delete container ``` $ docker rm -v containername ``` -
nikhilgeo renamed this gist
Apr 29, 2020 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -23,4 +23,7 @@ $ docker stop $(docker ps -a -q) $ docker rm $(docker ps -a -q) >> list all the containers $ docker container ls -a >> Delete container $ docker rm -v containername -
nikhilgeo revised this gist
Dec 11, 2019 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,6 +12,9 @@ Docker >> Run a docker container and get bash $ docker run -it ubuntu:18.04 bash >> Get shell of a running container $ docker exec -it [container-name/id] bash >> Remove all the container images $ docker rmi -f $(docker images -a -q) -
nikhilgeo revised this gist
Dec 11, 2019 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,8 +12,12 @@ Docker >> Run a docker container and get bash $ docker run -it ubuntu:18.04 bash >> Remove all the container images $ docker rmi -f $(docker images -a -q) >> Stop and remove all containers $ docker stop $(docker ps -a -q) $ docker rm $(docker ps -a -q) >> list all the containers $ docker container ls -a -
nikhilgeo revised this gist
Dec 11, 2019 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,4 +13,7 @@ Docker $ docker run -it ubuntu:18.04 bash >> Remove all the container images - Ubuntu $ docker rmi -f $(docker images -a -q) >> list all the containers $ docker container ls -a -
nikhilgeo revised this gist
Dec 4, 2019 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,6 +3,9 @@ Linux >> safe search for text in all files e.g search for clean_up( in all the files recursive. $ grep -nre clean_up\( --exclude-dir={proc,dev,lib,sys} >> search for file and don't get into other filesystems $ find . -xdev -name file_name* Docker ------ -
nikhilgeo revised this gist
Dec 4, 2019 . 1 changed file with 12 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,13 @@ Linux ----- >> safe search for text in all files e.g search for clean_up( in all the files recursive. $ grep -nre clean_up\( --exclude-dir={proc,dev,lib,sys} Docker ------ >> Run a docker container and get bash $ docker run -it ubuntu:18.04 bash >> Remove all the container images - Ubuntu $ docker rmi -f $(docker images -a -q) -
nikhilgeo revised this gist
Nov 26, 2019 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,2 +1,5 @@ Run a docker container and get bash docker run -it ubuntu:18.04 bash Remove all the container images - Ubuntu docker rmi -f $(docker images -a -q) -
nikhilgeo created this gist
Sep 13, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ Remove all the container images - Ubuntu docker rmi -f $(docker images -a -q)