using ip
# ip link set dev <interface> down
ip link set dev eth0 down
# ip link set dev <interface> up
ip link set dev eth0 up
using ipconfig
# /sbin/ifconfig <interface> up
# /sbin/ifconfig <interface> down
Welcome to my world
# ip link set dev <interface> down
ip link set dev eth0 down
# ip link set dev <interface> up
ip link set dev eth0 up
# /sbin/ifconfig <interface> up
# /sbin/ifconfig <interface> down
ceph osd crush add-bucket left rack
ceph osd crush add-bucket right rack
ceph osd crush move left root=default
ceph osd crush move right root=default
ceph osd crush move node-1 rack=right
ceph osd crush move node-2 rack=right
ceph osd crush move node-3 rack=right
ceph osd crush move node-4 rack=left
ceph osd crush move node-5 rack=left
ceph osd crush move node-6 rack=left
ceph osd tree
ceph osd crush move node-1 root=default
ceph osd crush move node-2 root=default
ceph osd crush move node-3 root=default
ceph osd crush move node-4 root=default
ceph osd crush move node-5 root=default
ceph osd crush move node-6 root=default
getent passwd | awk -F: '{ print $1 }' | sudo xargs -n1 crontab -l -u | grep -v '^#' | grep -v '^no crontab for'
journalctl --disk-usage
journalctl --vacuum-size=1G
--vacuum-size=BYTES Reduce disk usage below specified size
--vacuum-files=INT Leave only the specified number of journal files
--vacuum-time=TIME Remove journal files older than specified time
journcalctl --file /var/log/.../dsdsdsdsdsdsdsds.journal~
sudo journalctl -e
journalctl -e -u certbot.service
journalctl -xeu redis-server.service
journalctl --list-boots
journalctl -p err -b
journalctl -k -e
systemctl list-unit-files
systemctl --failed
# or
systemctl list-units --state=failed
journalctl -xb
Display a list of messages:
ceph crash ls
read a message:
ceph crash info <id>
mark message as read
ceph crash archive <id>
or mark all as read
ceph crash archive-all
Add a directory to the path, but only if it exists.
function add_path_maybe -d "Add a directory to the path, but only if it exists" # If the path exists... if test -d $argv[1] # ...and if it's not already in the PATH... if not contains $argv[1] $PATH # ...push it to the start of the path. set PATH $argv[1] $PATH end end end
Failed during configuration: Have not found any log file for sshd jail
open or create /etc/fail2ban/jail.local
add to [sshd]
section (where you also enable it) a new line backend = systemd
That is a pretty annoying error message. To get rid of it
apt install pve-kernel-helper
The aswer is you can check the used size and you can shrink the used space.
journalctl --disk-usage journalctl --vacuum-size=1G
Other Options are
--vacuum-size=BYTES Reduce disk usage below specified size --vacuum-files=INT Leave only the specified number of journal files --vacuum-time=TIME Remove journal files older than specified time
Some commands for extended zpool status
ZPOOL_SCRIPTS_AS_ROOT=1 zpool status -c health ZPOOL_SCRIPTS_AS_ROOT=1 zpool status -c hours_on ZPOOL_SCRIPTS_AS_ROOT=1 zpool status -c lsblk ZPOOL_SCRIPTS_AS_ROOT=1 zpool status -c smart_test ZPOOL_SCRIPTS_AS_ROOT=1 zpool status -c temp ZPOOL_SCRIPTS_AS_ROOT=1 zpool status -c upath