add user to docker group
$ sudo groupadd docker $ sudo usermod -aG docker $USER $ newgrp docker
Here is what the above code is Doing:
1. Create a docker group.
2. Add your user to the docker group.
3. Activate the changes to groups.
$ sudo groupadd docker $ sudo usermod -aG docker $USER $ newgrp docker
Here is what the above code is Doing:
1. Create a docker group.
2. Add your user to the docker group.
3. Activate the changes to groups.
# Download tor browser launcher sudo add-apt-repository ppa:micahflee/ppa sudo apt update sudo apt install torbrowser-launcher Here is what the above code is Doing: 1. Add the Tor Browser Launcher PPA to your system’s software sources. 2. Update your system’s software sources. 3. Install the Tor Browser Launcher package.
#for all git reset #for a file git reset filename.txt Here is what the above code is Doing: 1. git reset –hard HEAD~1 – This will reset the current branch to the previous commit. – The –hard flag will reset the working directory to match the commit. – HEAD~1 means the commit before HEAD. 2….
cd WebDev; touch test.txt use ; to seperate commands Here is what the above code is Doing: 1. Create a new directory called WebDev 2. Change directory to WebDev 3. Create a new file called test.txt
sudo deluser Here is what the above code is Doing: 1. We’re importing the os module, which contains functions for interacting with the operating system. 2. We’re importing the sys module, which contains functions and objects that can be used to manipulate different parts of the Python runtime environment. 3. We’re creating a variable called…
# First fetch all new_remote refs git fetch new_remote # Then git checkout -b –track new_remote/ Here is what the above code is Doing: 1. git fetch new_remote This fetches all the new_remote’s branches and stores them in your local repo. You can see them by running git branch -a. You’ll see something like this:…
ip link show Here is what the above code is Doing: 1. We’re importing the subprocess module, which allows us to run shell commands. 2. We’re creating a variable called “command” and assigning it the value of the shell command we want to run. 3. We’re running the shell command using the subprocess.check_output() function. 4….