Posts

Docker all command

  ###### Docker All Command ##### ###### Docker All Command ##### install docker = docker.io pull image = docker pull <image name> push image = docker push username/newimagename version check = docker --version ,docker -v, docker version Run container = docker run -dit --name <container name> -p 82:80 <imsge name> inside container= docker exec -it <continer id> /bin/bash kill container = docker kill <continer id> stop container = docker stop <container id> start container = docker start <continer id> container list = docker ps -a image list = docker images remove container= docker rm <container id> forceily remove = docker rm -f allcontainer remove docker rm -f $<sudo docker ps -a -q> remmove images = docker rmi <image name> detail of contner docker inspect <container id> continer to image docker commit <contained id> <dockerhub username/image nam...

Easy way to completely uninstall python

The process is only for Windows OS   1) run the following command from cmd   pip list // list out the all the package   pip freeze > requirements.txt // save to a fle   pip uninstall -r requirements.txt -y // uninstall from the file   2) then run > appwiz.cpl > uninstall the python

Linux Basic Command Collection 1

##################################################################################### Basic command #####################################################################################  sudo su - // instantly gets root rights  ssh-keygen // generate both ssh private and public key  cat ~/.ssh/id_rsa // read default ssh private key  cat ~/.ssh/id_rsa.pub // read default ssh public key  pwd // see the current path   ls -al // to see all file and directory whatever attribute   env // see all environment variable and the corresponding value  man [command name] //see all about the command #################################################################################### linux permission #################################################################################### There are 3 type of patten #_ _ = owner , _#_ = group , _ _ # = other  There are 3 type of permission 1 = execute , 2 = write , 4= read   i...