01 2023 档案
摘要:show property systemctl show -p Wants multi-user.target --no-pager
阅读全文
摘要:-f filename Take password to use from file sshpass -f password ssh intrinsic pmap --version -d number Use number as file descriptor for getting passwo
阅读全文
摘要:-a name 替换command程序名 作为第0个参数 -c Execute COMMAND with an empty environment -l Place a dash in the zeroth argument to COMMAND Execute command, replacing
阅读全文
摘要:'@anaconda' means that the package was installed by the Anaconda installer. dnf upgrade --repo update* --exclude kernel* 下载源码rpm包 dnf download --sourc
阅读全文
摘要:全屏: 到clipboard fn + print screen 保存到 C:\Users\Memento\Pictures\Screenshots fn + win + print screen f Snipping Tool win + shift + s browser f12 -> ctrl
阅读全文
摘要:两个rpm包: ansible ansible-core 安装两个pip依赖: ansible ansible-core dnf repoquery --requires ansible dnf repoquery --requires ansible-core rpm -q --requires
阅读全文
摘要:Operation mode: -A --catenate concatenate 追加模式, 不能是压缩的 tar -A a.tar -vf b.tar 追加a.tar到b.tar后面 -c --create 创建模式, 目录默认递归, --no-recursion不对目录递归 tar cf c.
阅读全文
摘要:Document: Fedora Quick Docs :: Fedora Docs (fedoraproject.org) Don't show package suggestion dnf remove PackageKit-command-not-found Disable the GNOME
阅读全文
摘要:bash [options] [command_string | file] -c If then -c option is present, then commands are read from the first non-option argument command_string. If t
阅读全文
摘要:for param #!/usr/bin/env -vS bash for param;do echo $param done for ${!i} #!/usr/bin/env -vS bash for ((i=1;i<=$#;++i)); do echo ${!i} done $* $@ shif
阅读全文
摘要:默认网关: ip route show 0.0.0.0/0 | grep -oP 'via \K\S+' f 默认网卡: awk '$2==00000000{print $1}' /proc/net/route d 默认出口IP: ip route get 1.1.1.1 | grep -oP 's
阅读全文
摘要:-u -o nounset Treat unset variables as an error when substitutin -e -o errexit Exit immediately if a command exits with a non-zero status
阅读全文
摘要:ip -details link show type在第三行, loopback 物理 wifi等没有type ip -details -json link show | jq --join-output ' .[] | if .ifname != null then .ifname, " ", i
阅读全文
摘要:ip link add dev dummy0 type dummy 查看dummy的ARGS 添加IP ip addr add 192.168.8.99 dev dummy0 dummy 接口的工作方式和 loopback 接口类似,但是你可以创建任意多的 dummy 接口。它提供路由数据包的功能,
阅读全文
摘要:readlink 默认检查参数是否存在, realpath不会检查 readlink 直接读取非symlink报错, 读取symlink只解析第一级symlink realpath 可直接解析symlink和非symlink, 解析symlink, 会解析所有symlink readlink -f
阅读全文
摘要:dnf install iproute-tc 需要额外安装 kernel-modules-extra dnf install kernel-modules-extra-$(name -r) 加载内核模块 modprobe sch_netem && lsmod | grep sch_netem How
阅读全文
摘要:确保sandbox_image存在 访问localhost的kube-apiserver, 必须加https
阅读全文
摘要:RedHat: cp ca-bundle.crt /etc/pki/ca-trust/source/anchors/ update-ca-trust Ubuntu: cp ca-bundle.crt /usr/local/share/ca-certificates/ update-ca-certif
阅读全文