随笔分类 - Linux
摘要:https://docs.fedoraproject.org/en-US/quick-docs/grub2-bootloader/ command: set set pager=1 ls set root=(hd0,msdos1)insmod linuxinsmod normalnormalhelp
阅读全文
摘要:Check which desktop environment you are using echo $XDG_CURRENT_DESKTOP FROM GUI gnome-shell --version gdm3 --version Display Manager VS Display Serve
阅读全文
摘要:Non-Printing Characters in Prompts (tldp.org)
阅读全文
摘要: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
阅读全文
摘要:Fedora: modify /etc/pam.d/system-auth fedora采用authselect管理authorization Ubuntu: modify /etc/pamd.d/common-password
阅读全文
摘要: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
阅读全文
摘要:permissions: 允许非root用户控制网络 grant permission nmcli c modify convolute connection.permissions 'user:intrinsic,gdm' disable polkit/etc/NetworkManager/con
阅读全文
摘要:Disable screen lock: Settings -> Privary -> Screen Lock -> Disable cursor blinking: Method 1: Turn on/off Blinking Cursor via GNOME Settings Settings
阅读全文
摘要:echo $(id -nu):amortize | chpasswd # current user echo parallels:amortize | chpasswd # specific user
阅读全文
摘要: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
阅读全文
摘要:ClientAliveInterval 60 ClientAliveCountMax 2TCPKeepAlive yes ClientAliveInterval: Sets a timeout interval in seconds after which if no data has been r
阅读全文
摘要:~/.profile printf "%-8s %-25s %-4s %s\n" @@@@@ ~/.profile '==>' Commence # ~/.profile: executed by Bourne-compatible login shells. if [ "$BASH" ]; the
阅读全文
摘要:GPG: GnuPG(GNU Privacy Guard), GnuPG is an Open Source alternative to the well-know Pretty Good Privacy(PGP). dirmngr: 管理 CRL & OCSP 配置文件 /root/.gnupg
阅读全文
摘要:RedHat: /etc/profile printf "%-8s %-25s %-4s %s\n" @@@@@ /etc/profile '==>' Commence printf "%-8s %-25s %-4s %s\n" @@@@@ /etc/profile '==>' Closure /e
阅读全文
摘要:# Read more about SSH config files: https://linux.die.net/man/5/ssh_config Host * #IgnoreUnknown * AddKeysToAgent yes AddressFamily any BatchMode no C
阅读全文
摘要:apk: sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
阅读全文
摘要:: > file cat /dev/null > file truncate: belongs to coreutils package. truncate from the end of the file.
阅读全文
摘要:Figlet: /usr/share/figlet 下存放字体 suffix: tlf | flf showfigfonts -d directory word figlet -f banner word 选择输出字体 Control smushing 调整字体间隙 控制输出位置 控制输出宽度, 会
阅读全文
摘要: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
阅读全文