命令行语法
具体内容可以参考
Chapter 12. Utility conventions of the IEEE Std 1003.1, 2004 Edition.
man手册页中关于SYNOPSIS小节的约定
加粗文本 按原样显示。
{ | |
"server":"your-server-ip", | |
"port_password":{ | |
"443":"password" | |
"1080":"password" | |
}, | |
"local_address":"127.0.0.1", | |
"local_port":1080, | |
"timeout":300, | |
"methond":"aes-256-cfb", |
具体内容可以参考
Chapter 12. Utility conventions of the IEEE Std 1003.1, 2004 Edition.
man手册页中关于SYNOPSIS小节的约定
加粗文本 按原样显示。
Edit /etc/default/grub
sudo vi /etc/default/grub
Find GRUB_CMDLINE_LINUX_DEFAULT=
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
保存用户名和邮箱
git config --global user.name ***
git config --global user.email ***
下面命令在使用https方式传输git文件时缓存用户名及密码,避免每次git push都要输出一次
git config --global credential.helper 'cache --timeout=86400'
下面命令在使用https方式传输git文件时通过代理来连接
git - 简明指南
一张图看明白Git的四个区五种状态
99%的时间在使用的Git命令
blob object # 数据对象
tree object # 树对象
xargs [options] [command]
xargs从标准输入读取数据,将数据转换为command命令的参数来执行该命令。从标准输入读取数据时,使用空格或换行符
作为默认分隔符,如果没有指定命令,使用/bin/echo
作为默认命令。
比如/tmp
目录下有a, b, c
三个文件,用ls -1
命令显示为
$ ls -1 /tmp
uname -r
查看系统内核版本sudo apt install linux-image-<tab>
安装最新的内核映像update-grup
上一步会自动执行此命令,因此此命令可以不用手动运行reboot
sudo apt purge linux-image-<tab>
删除掉旧内核映像echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sudo systcl -p
搭建Linux Virtual Server实验环境
Server Name | IP |
---|---|
LVS-DR | 10.0.0.10 |
参考链接
Systemd 入门教程:命令篇
Systemd 入门教程:实战篇
man systemd.unit
man systemd.service
vim /etc/systemd/system/myservice.service