Skip to content

linux

权限

文件权限分为三级:

  1. 文件所有者
  2. 用户组
  3. 其他用户

权限数字代表的意义:

权限意义数值英文全拼
R读取4Read
W写入2Write
X执行1Execute

权限图解

curl

获图片取链接详情

shell
curl -I https://gw.alicdn.com/bao/uploaded/i1/2246953229/O1CN01dDujl11ZivdrouZEM_!!0-item_pic.jpg_300x300q90.jpg

docker

shell
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh

docker-install github链接

iptables

清空iptable规则

shell
sudo iptables -P INPUT ACCEPT
sudo iptables -P FORWARD ACCEPT
sudo iptables -P OUTPUT ACCEPT
sudo iptables -F

nodejs 安装

ubuntu

shell
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - &&\
sudo apt-get install -y nodejs

github参考连接

ssh

抱错ssh密钥权限太开放

shell
Permissions 0777 for '/Users/username/filename' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/Users/username/filename": bad permissions

将文件的权限设为自己可读

shell
chmod 700 /Users/username/filename