分类: linux

39 篇文章

mac core shell known_hosts
Now, can delete by itself. -- 09/28/2021 By default, Core Tunnel uses configuration files in its own container folder: # known_hosts ~/Library/Group Containers/E78WKS7W4U.io.c…
Linux 的快捷方式
ln 是linux中一个非常重要命令。它的功能是为某一个文件在另外一个位置建立一个同不的链接,这个命令最常用的参数是-s, 具体用法是:ln -s 源文件 目标文件。 -s 是代号(symbolic)的意思。 ln命令会保持每一处链接文件的同步性,也就是说,不论你改动了哪一处,其它的文件都会发生相同的变化; ln的链接又软链接 和硬链接两种,软链接…
rsync参数
rsync参数的具体解释如下: -v, --verbose 详细模式输出 -q, --quiet 精简输出模式 -c, --checksum 打开校验开关,强制对文件传输进行校验 -a, --archive 归档模式,表示以递归方式传输文件,并保持所有文件属性,等于-rlptgoD -r, --recursive 对子目录以递归模式处理 -R, -…
firewalld
RHEL 防火墙由firewalld来管理, 如果要添加范围例外端口 如 1000-2000 语法命令如下:启用区域端口和协议组合 firewall-cmd [--zone=<zone>] --add-port=<port>[-<port>]/<protocol> [--timeout=<sec…
Lightweight OS for Old Laptop & Netbook
Lubuntu Key Features: RAM: 512MB (128MB min) | CPU: Pentium 4 or Pentium M or AMD K8 | 32-bit & 64-bit | Window Manager: LXDE, Openbox | Fork: Ubuntu | Download Lubuntu Li…
Linux下普通用户使用docker
1.创建用户组 sudo groupadd docker 2.把当前用户加入docker组 sudo gpasswd -a ${USER} docker 3.reboot docker service sudo systemctl restart docker 4.logout
ubuntu/debian crontab no working
[h2title]1.check[/h2title] service cron status [h2title]2. open cron log[/h2title] sudo vim /etc/rsyslog.d/50-default.conf sudo service rsyslog  restart [h2title]3.check …
用shell脚本生成文本文件
[h2title]方法一:使用echo命令[/h2title] echo "Hello, World! My name is heigaga." > readme.txt 这种方法其实就是把echo的输出重定向到了文件。echo会原样保留换行符,所以多行也是支持的。 [h2title]方法二:使用cat命令[/h2title] cat >…
Docker Frps + nginx local website
[h2title]What is frp?[/h2title] frp is a fast reverse proxy to help you expose a local server behind a NAT or firewall to the Internet. As of now, it supports TCP and UDP, as …