0%

有时您可能会需要让指定设备无法连接到外网。如果指定设备的 DHCP 服务器和 DNS 服务器都位于某台 OpenWrt 设备上,便可以通过 拒绝指定 MAC 地址连接到此 OpenWrt 设备 来做到这

当我们 fork 仓库后可能会需要与上游仓库同步,最简单的方法是点击 fork 仓库主页的 Sync fork -> Update branch,但也可以使用 git: 请先使用 git clone 将 fork 仓库克隆到本

起因是我收到了来自 DMARC Aggregate Report 的报告邮件: This is a DMARC aggregate report from Microsoft Corporation. For Emails received between ****-**-** 00:00:00 UTC to ****-**-** 00:00:00 UTC. You're receiving this email because you have included your email address in the 'rua' tag of your DMARC record in DNS for ****.com. Please remove your email address from the 'rua' tag

如果需要禁止更新 Debian 的特定软件,可以使用以下命令: apt-mark hold 例如,如果需要禁止更新 linux-image-amd64,可以运行: apt-mark hold linux-image-amd64 此时 不会 更新 l

要使用 WSL 1 安装 Debian,请先确保已启用 适用于 Linux 的 Windows 子系统。 如果还没有启用,以管理员身份运行 PowerShell 并执行下列命令: dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart 重启电脑后继续。

安装 buildx 如果需要构建多架构的 Docker 镜像,可以使用在 Docker 19.03 中引入的 buildx 命令: docker buildx 如果出现下列错误,代表 buildx 还未安装: docker: 'buildx' is not a docker command. See 'docker --help' 为 Alpine Linux 安装 buil

如果要撤销上一次 commit,请运行: git reset --soft HEAD~1 相关文章: Git 删除 commit Git 忽略文件修改 Git 修改上次提交 Git 只保留1条 commit Git 空提交和没有消息的提交 Git 为文件添

假设这里有一个名为 file.sh 的文件,内容如下: #!/bin/sh echo Hello, World! 要让此文件在上传到 Git 仓库后保留执行权限,您可以: 首先,将 file.sh 添加到本地 Git 仓库: git add file.sh 然后,使用命

如果需要 Docker 删除未使用的数据,可以运行下列命令: docker system prune 运行后会出现警告: WARNING! This will remove: - all stopped containers - all networks not used by at least one container - all dangling images - all dangling build cache Are you sure you want to continue? [y/N]

假设这里有一个名为 line.txt 的文件,内容如下: $ cat line.txt line1 line2 line3 line4 line5 使用 shuf 命令生成随机排列: $ shuf line.txt line2 line5 line4 line3 line1 使用 -n 选项以只生成 n 行: $ shuf -n 2 line.txt line3 line1 使用 -o 选