随笔分类 -  Linux

摘要:https://docs.fedoraproject.org/en-US/quick-docs/grub2-bootloader/ command: set set pager=1 ls set root=(hd0,msdos1)insmod linuxinsmod normalnormalhelp 阅读全文
posted @ 2024-05-07 13:18 ascertain 阅读(12) 评论(0) 推荐(0) 编辑
摘要:Check which desktop environment you are using echo $XDG_CURRENT_DESKTOP FROM GUI gnome-shell --version gdm3 --version Display Manager VS Display Serve 阅读全文
posted @ 2024-04-28 12:40 ascertain 阅读(7) 评论(0) 推荐(0) 编辑
摘要:Non-Printing Characters in Prompts (tldp.org) 阅读全文
posted @ 2023-06-11 08:38 ascertain 阅读(1) 评论(0) 推荐(0) 编辑
摘要:CD-ROM stands for Compact Disk - Read-Only Memory CD-ROM mounted? findmnt -c --source /dev/cdrom --output TARGET findmnt -c --source /dev/sr0 --output 阅读全文
posted @ 2023-02-12 14:19 ascertain 阅读(12) 评论(0) 推荐(0) 编辑
摘要:Fedora: modify /etc/pam.d/system-auth fedora采用authselect管理authorization Ubuntu: modify /etc/pamd.d/common-password 阅读全文
posted @ 2023-02-07 13:26 ascertain 阅读(8) 评论(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) 编辑
摘要:permissions: 允许非root用户控制网络 grant permission nmcli c modify convolute connection.permissions 'user:intrinsic,gdm' disable polkit/etc/NetworkManager/con 阅读全文
posted @ 2022-12-22 19:36 ascertain 阅读(108) 评论(0) 推荐(0) 编辑
摘要:Disable screen lock: Settings -> Privary -> Screen Lock -> Disable cursor blinking: Method 1: Turn on/off Blinking Cursor via GNOME Settings Settings 阅读全文
posted @ 2022-10-20 20:27 ascertain 阅读(26) 评论(0) 推荐(0) 编辑
摘要:echo $(id -nu):amortize | chpasswd # current user echo parallels:amortize | chpasswd # specific user 阅读全文
posted @ 2022-10-04 20:17 ascertain 阅读(88) 评论(0) 推荐(0) 编辑
摘要:wc -l will not count a final "line" if it doesn't end with a newline. Because a file (or stream) of zero lines can be distinguished from a file of one 阅读全文
posted @ 2022-10-02 02:54 ascertain 阅读(22) 评论(0) 推荐(0) 编辑
摘要:ClientAliveInterval 60 ClientAliveCountMax 2TCPKeepAlive yes ClientAliveInterval: Sets a timeout interval in seconds after which if no data has been r 阅读全文
posted @ 2022-09-30 15:00 ascertain 阅读(23) 评论(0) 推荐(0) 编辑
摘要:~/.profile printf "%-8s %-25s %-4s %s\n" @@@@@ ~/.profile '==>' Commence # ~/.profile: executed by Bourne-compatible login shells. if [ "$BASH" ]; the 阅读全文
posted @ 2022-09-16 11:41 ascertain 阅读(79) 评论(0) 推荐(0) 编辑
摘要:GPG: GnuPG(GNU Privacy Guard), GnuPG is an Open Source alternative to the well-know Pretty Good Privacy(PGP). dirmngr: 管理 CRL & OCSP 配置文件 /root/.gnupg 阅读全文
posted @ 2022-05-22 20:32 ascertain 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-05-08 08:27 ascertain 阅读(30) 评论(0) 推荐(0) 编辑
摘要:RedHat: /etc/profile printf "%-8s %-25s %-4s %s\n" @@@@@ /etc/profile '==>' Commence printf "%-8s %-25s %-4s %s\n" @@@@@ /etc/profile '==>' Closure /e 阅读全文
posted @ 2022-02-16 17:26 ascertain 阅读(151) 评论(0) 推荐(0) 编辑
摘要:# Read more about SSH config files: https://linux.die.net/man/5/ssh_config Host * #IgnoreUnknown * AddKeysToAgent yes AddressFamily any BatchMode no C 阅读全文
posted @ 2022-02-16 11:15 ascertain 阅读(298) 评论(0) 推荐(0) 编辑
摘要:apk: sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories 阅读全文
posted @ 2022-01-25 16:31 ascertain 阅读(50) 评论(0) 推荐(0) 编辑
摘要:: > file cat /dev/null > file truncate: belongs to coreutils package. truncate from the end of the file. 阅读全文
posted @ 2022-01-25 11:54 ascertain 阅读(27) 评论(0) 推荐(0) 编辑
摘要:Figlet: /usr/share/figlet 下存放字体 suffix: tlf | flf showfigfonts -d directory word figlet -f banner word 选择输出字体 Control smushing 调整字体间隙 控制输出位置 控制输出宽度, 会 阅读全文
posted @ 2022-01-22 19:58 ascertain 阅读(37) 评论(0) 推荐(0) 编辑
摘要:tput cols tput rows tput -S <<< cols tput -S <<< rows stty size echo $LINES echo $COLUMNS LINES & COLUMNS are not environment variables, they are just 阅读全文
posted @ 2022-01-22 19:36 ascertain 阅读(34) 评论(0) 推荐(0) 编辑

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