Command
Software | Categoría | Command |
---|---|---|
Debian \ Proxmox | Get EFI status | ls /sys/firmware/efi/ |
Get NVME firmware revision | apt-get install nvme-cli nvme list | |
Get real time bandwidth | apt install nload nload | |
Get SATA Link Speed | grep -i sata | grep 'link up' | |
Get temp | apt-get install lm-sensors watch sensors | |
Monitor processor and memory | apt-get install htop htop | |
Network test | apt-get install python-pip pip install speedtest-cli speedtest-cli | |
git | branch | git branch my-feature git branch -d my-feature git branch -D my-feature |
remote | git remote add origin git@github.com:<username>/<project>.git git remote -v git remote set-url origin http://ip/root/repo.git | |
diff | git diff master..my-feature git diff git diff --cached | |
other | git push origin master git pull origin master git fetch git commit --amend -m "new commit title" git commit -m "commit title" git init git status git log git checkout my-feature git merge my-feature git add git clone http://ip/root/repo.git git add . git push http://ip/root/repo.git master git checkout master && git fetch && git reset --hard master && git status git repack -a -d --depth=250 --window=250 git checkout master && git pull origin | |
Gitlab | gitlab-ctl | gitlab-ctl reconfigure gitlab-ctl restart |
gitlab-rake | gitlab-rake gitlab:backup:create gitlab-rake gitlab:backup:restore BACKUP=$BACKUP_PATH force=yes | |
Storage | Smartmontools | smartctl -s on -a /dev/sdX smartctl -t short /dev/sdX smartctl -t long /dev/sdX smartctl -l selftest /dev/sdX |
ZFS on Linux | zpool status zpool status tank zpool status -v tank zpool create -o ashift=13 tank sda -f zpool status -x zpool import tank -f zpool clear tank zpool scrub tank zpool scrub -s tank zpool destroy tank | |
Windows | Diskpart | list disk select disk x clean rescan list partition |
git | for /f "tokens=*" %a in ('dir /ad /b') do cd %a & git status & cd .. | |
ipconfig | ipconfig /all ipconfig /flushdns |