Coggle requires JavaScript to display documents.
dir -v
cd -
pushd ~/Downloads
popd
popd +n
systemctl
sudo systemctl start nginx
sudo systemctl stop nginx
sudo systemctl enable nginx
sudo systemctl disable nginx
sudo systemctl status nginx
export NEW_VARIABLE="The export command"
NEW_VARIABLE="The export command" export NEW_VARIABLE
unset NEW_VARIABLE
printenv
printenv VARIABLE_NAME
proc
ps aux | grep mysql
uptime
top
htop
apt install <package-name>
apt remove <package-name>
apt purge <package-name>
apt update # update information
/etc/apt/sources.list
/etc/apt/sources.list.d
apt upgrade # install packages
apt update
apt install <specific-package-name>
apt search <package-name>
apt show <package-name>
apt-file update # creates database apt-file search /bin/bash
$ sudo apt update && sudo apt upgrade -y
$ sudo apt update && sudo apt-get dist-upgrade
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove
modprobe
docker ps
docker logs
docker logs agent
sudo systemctl stop docker docker.socket containerd
# how to remove docker completly from ubuntu sudo apt-get purge docker-engine sudo apt-get autoremove --purge docker-engine rm -rf /var/lib/docker # This deletes all images, containers, and volumes
docker images
docker pull hello-world
docker --version
docker version
docker run <image_name> docker container run <image_name>
docker exec
docker container create ... docker create ...
... <image_name>
docker container ls -a
docker container start c6c7b4c22dfa
docker build .
docker build -f /path/to/my/Dockerfile .
docker build -t [repository]:[tag] .
FROM ubuntu:22.10 LABEL author=HyperUser ENTRYPOINT ["/bin/bash"]
git rm . --cached git add . git commit -m ".gitignore is now working" git push
echo "# test" >> README.md git init git add README.md git commit -m "first commit" git branch -M main git remote add origin https://github.com/roblebob/test.git git push -u origin main
git clone https://github.com/roblebob/test --recursive cd test/ git init git remote add origin https://github.com/roblebob/test.git git push -u origin master
git submodule add https://github.com/WeAreROLI/JUCE JUCE --recursive
git submodule deinit libs/JUCE git rm libs/JUCE
git submodule update --remote --merge
git submodule update --init --recursive
git status
git log git log --oneline git log -p -s git log --stat git log --patch git log --decorate git log
git log --oneline --decorate --graph --all
git diff
git diff --staged git diff --cached
git config --global core.editor <...>
git reset HEAD <file>
git tag -a <nameOfTag=v1.0> <SHA>
git branch <name> <SHA>
git checkout <name>
git checkout -b <name>
git commit --amend
git revert <SHA>
git reset <reference-to-commit>
git reset --soft HEAD^
git reset --mixed HEAD^
git reset --hard HEAD^
git remote set-url origin <URL>
git remote remove origin git remote add origin <URL>
.github/workflows/<job>.yaml
${{ ... }}
echo ${{ env.VARIABLE }}
$VARNAME
echo $VARIABLE
$env:VARIABLE_NAME
name: environment_variable_tutorial on: [push] env: # This custom environment variable is available to all the jobs and steps TOPIC: Envs and secrets jobs: job1: env: # This custom environment variable is available for all the steps section: Dev tools runs-on: ubuntu-latest steps: - name: step 1 env: # This custom environment variable is available to only this specific step platform: the platform # Referencing the environment variables run: echo "Welcome to the ${{ env.TOPIC }} topic from $section section at $platform"
[a-z]
[A-Z]
[0-9]
_
steps: - name: Encrypted secret for repository with: # We can configure the secret to be set as an input secret: ${{ secrets.SECRET_VALUE }} env: # Or we can configure the secret as an environment variable secret: ${{ secrets.SECRET_VALUE }}