命令 xattr 在Unix和类Unix系统中用来管理文件和目录的扩展属性(extended attributes)。这些扩展属性用来存储额外的和文件系统内容不直接相关的元数据。-c 和 -r 是 xattr 命令的两个选项,它们通常一起使用:-c 选项用于清除指定文件或目录的全部扩展属性。-r 选项使命令递归地执行,也就是说它会应用于目...
#!/bin/bash
# Nginx config file path
CONFIG_FILE="/etc/nginx/nginx.conf"
# Test whether the new configuration is&...
1. 安装 plex路径: 套件中心 - 搜索 - plex - 安装Plex Media Server - 打开跳转链接进行首次初始化,端口号 32400,如果在通过外网访问,记得放开该端口http://xxx.top:32400/web/index.html#!/setup/2044c3cb644c2aa82344b59d0fdf7bd8cb9277c1...
# npm owner add [userName] [packageName]
$ npm owner add pillarhuang @scope/packageName...
1 - 在启动grub菜单,选择编辑选项启动2 - 按键盘e键,来进入编辑界面3 - 找到Linux 16的那一行,将ro改为rw init=/sysroot/bin/sh4 - 现在按下 Control+x ,使用单用户模式启动5 - 现在,可以使用下面的命令访问系统chroot /sysroot6 - 重置密码passwd root7 - 更新系统信息t...
yum install -y epel-release
yum install -y jq...
清除文件内容:.,$d (clear file from current line)1,$d (clear the whole file)回到行0.回到行尾$跳到第一行:1gg跳到最后一行:$shift + g...
cd - - == $OLDPWD可以 echo $OLDPWD查看cd - == cd $OLDPWD一不小心输入cd 直接回车就会跑到宿主目录中去, 如果想回到上一次的目录就输入cd -2、ctrl键组合ctrl+a:光标移到行首。ctrl+b:光标左移一个字母...
下面,就给大家介绍这些CentOS常用命令。一:使用CentOS常用命令查看cpumore /proc/cpuinfo | grep "model name"grep "model name" /proc/cpuinfo[root@localhost /]# grep "CPU" /proc/cpu...
递归统计文件夹下文件的MD5find ./ -type f -print0 | xargs -0 md5sum > ./my.md5校验:md5sum -c my.md5...