upgrade ubuntu 16.04 to 20.04
sudo apt update && sudo apt upgrade sudo do-release-upgrade
Here is what the above code is Doing:
1. Update the package list
2. Upgrade all packages
3. Run the upgrade tool
sudo apt update && sudo apt upgrade sudo do-release-upgrade
Here is what the above code is Doing:
1. Update the package list
2. Upgrade all packages
3. Run the upgrade tool
unrar x -e part1.rar Here is what the above code is Doing: 1. We’re using the unrar command to extract the contents of the rar file. 2. The -e flag tells unrar to extract the contents of the rar file. 3. The -x flag tells unrar to extract the contents of the rar file to…
vim scp://user@remotesystem//path_to_file Here is what the above code is Doing: 1. Open the file in vim 2. Save the file 3. Copy the file to the remote system
sudo apt-get install php7.4-fpm php7.4-cli php7.4-mysql php7.4-gd php7.4-imagick php7.4-recode php7.4-tidy php7.4-xmlrpc Here is what the above code is Doing: 1. We’re installing the PHP 7.4 FPM package, which is the FastCGI Process Manager for PHP. 2. We’re installing the PHP 7.4 CLI package, which is the command-line interface for PHP. 3. We’re installing the PHP…
curl –cert-status -v https://www.google.com 2>&1 | awk ‘BEGIN { cert=0 } /^\* Server certificate:/ { cert=1 } /^\*/ { if (cert) print }’ Here is what the above code is Doing: 1. We’re using the –cert-status option to get the certificate status. 2. We’re using the -v option to get verbose output. 3. We’re using…
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.8.0/kind-$(uname)-amd64 chmod +x ./kind mv ./kind /some-dir-in-your-PATH/kind Here is what the above code is Doing: 1. Download the latest release of kind 2. Make it executable 3. Move it to a directory in your PATH Now, you can run kind from anywhere.
#!/bin/bash DIR=”$( cd “$( dirname “${BASH_SOURCE[0]}” )” >/dev/null 2>&1 && pwd )” Here is what the above code is Doing: 1. The first line is a shebang. It tells the shell what program to use to interpret the script. 2. The second line is a comment. 3. The third line is a variable assignment. It…