01 2023 档案

摘要:show property systemctl show -p Wants multi-user.target --no-pager 阅读全文
posted @ 2023-01-28 16:11 ascertain 阅读(5) 评论(0) 推荐(0) 编辑
摘要:-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 阅读全文
posted @ 2023-01-27 21:58 ascertain 阅读(45) 评论(0) 推荐(0) 编辑
摘要:-a name 替换command程序名 作为第0个参数 -c Execute COMMAND with an empty environment -l Place a dash in the zeroth argument to COMMAND Execute command, replacing 阅读全文
posted @ 2023-01-27 19:12 ascertain 阅读(87) 评论(0) 推荐(0) 编辑
摘要:'@anaconda' means that the package was installed by the Anaconda installer. dnf upgrade --repo update* --exclude kernel* 下载源码rpm包 dnf download --sourc 阅读全文
posted @ 2023-01-25 16:10 ascertain 阅读(187) 评论(0) 推荐(0) 编辑
摘要:全屏: 到clipboard fn + print screen 保存到 C:\Users\Memento\Pictures\Screenshots fn + win + print screen f Snipping Tool win + shift + s browser f12 -> ctrl 阅读全文
posted @ 2023-01-25 15:00 ascertain 阅读(116) 评论(0) 推荐(0) 编辑
摘要:两个rpm包: ansible ansible-core 安装两个pip依赖: ansible ansible-core dnf repoquery --requires ansible dnf repoquery --requires ansible-core rpm -q --requires 阅读全文
posted @ 2023-01-25 12:33 ascertain 阅读(15) 评论(0) 推荐(0) 编辑
摘要:Operation mode: -A --catenate concatenate 追加模式, 不能是压缩的 tar -A a.tar -vf b.tar 追加a.tar到b.tar后面 -c --create 创建模式, 目录默认递归, --no-recursion不对目录递归 tar cf c. 阅读全文
posted @ 2023-01-24 15:59 ascertain 阅读(112) 评论(0) 推荐(0) 编辑
摘要:Document: Fedora Quick Docs :: Fedora Docs (fedoraproject.org) Don't show package suggestion dnf remove PackageKit-command-not-found Disable the GNOME 阅读全文
posted @ 2023-01-24 14:30 ascertain 阅读(18) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2023-01-23 12:46 ascertain 阅读(65) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2023-01-23 11:27 ascertain 阅读(20) 评论(0) 推荐(0) 编辑
摘要:默认网关: 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 阅读全文
posted @ 2023-01-17 22:22 ascertain 阅读(35) 评论(0) 推荐(0) 编辑
摘要:-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 阅读全文
posted @ 2023-01-09 00:52 ascertain 阅读(19) 评论(0) 推荐(0) 编辑
摘要:ip -details link show type在第三行, loopback 物理 wifi等没有type ip -details -json link show | jq --join-output ' .[] | if .ifname != null then .ifname, " ", i 阅读全文
posted @ 2023-01-08 17:51 ascertain 阅读(229) 评论(0) 推荐(0) 编辑
摘要:ip link add dev dummy0 type dummy 查看dummy的ARGS 添加IP ip addr add 192.168.8.99 dev dummy0 dummy 接口的工作方式和 loopback 接口类似,但是你可以创建任意多的 dummy 接口。它提供路由数据包的功能, 阅读全文
posted @ 2023-01-08 13:58 ascertain 阅读(191) 评论(0) 推荐(0) 编辑
摘要:readlink 默认检查参数是否存在, realpath不会检查 readlink 直接读取非symlink报错, 读取symlink只解析第一级symlink realpath 可直接解析symlink和非symlink, 解析symlink, 会解析所有symlink readlink -f 阅读全文
posted @ 2023-01-08 12:14 ascertain 阅读(139) 评论(0) 推荐(0) 编辑
摘要:dnf install iproute-tc 需要额外安装 kernel-modules-extra dnf install kernel-modules-extra-$(name -r) 加载内核模块 modprobe sch_netem && lsmod | grep sch_netem How 阅读全文
posted @ 2023-01-03 16:57 ascertain 阅读(43) 评论(0) 推荐(0) 编辑
摘要:确保sandbox_image存在 访问localhost的kube-apiserver, 必须加https 阅读全文
posted @ 2023-01-02 17:47 ascertain 阅读(17) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2023-01-01 21:13 ascertain 阅读(21) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示