lvresize -L +485G --resizefs /dev/fedora/root
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
stat -c %S -f . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
VBoxManage internalcommands createrawvmdk -filename sda.vmdk -rawdisk /dev/sda |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# f -> Requests ssh to go to background just before command execution | |
# C -> Requests compression of all data | |
# q -> Quiet mode | |
# N -> Do not execute a remote command | |
# p -> Port to connect to on the remote host | |
sudo ssh -D 1984 -f -C -q -N -p 22 username@servername |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
firewall-cmd --zone=internal --add-port=0-65535/tcp --permanent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# apt install -y smartmontools | |
DISK_DRIVE=sdc | |
sudo smartctl -a /dev/$DISK_DRIVE -d sat | grep Power_On_Hours |
watch [options] command
Reload a file periodically
hdparm [options] device
-Tt
- check drive read timings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo nmap -sS -p 22 192.168.10.0/24 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PACKAGE=linux-u-boot-orangepione-next | |
sudo apt-mark hold $PACKAGE |