在Linux中,删除目录中的文件夹和文件的方法其实很简单,使用rm -rf命令即可。 具体使用规则: rm -rf 目录名字 -r 向下递归,不管有多少级目录,一并删除。 -f 直接强行删除,没有任何提示。 实例: 删除文件夹实例: rm -rf /var/log/httpd 这句代码的意思是:删除/var/log/httpd目录以及其下所有文件、文件夹 删除文件实例: rm -f /var/log/httpd/access.log 这个将会强制删除/var/log/httpd/access.log这个文件 注意: 在linux中是没有设置回收站的,因此在使用rm命令的时候一定要小心些,删除之后的文件是无法恢复的。
一键DD纯净系统脚本 CentOS/Debian/Ubuntu
#Debian/Ubuntu: apt-get update #RedHat/CentOS: yum update #Debian/Ubuntu: apt-get install -y xz-utils openssl gawk file #RedHat/CentOS: yum install -y xz openssl gawk file 架构:KVM/XEN,不支持OpenVZ。 系统:Debian/Ubuntu/CentOS 注意事项: Vicer脚本目前不支持重装为CentOS 7系统,支持CentOS 6.9以下版本。 重装的系统源自官方发行版。 安装过程全自动进行,无需VNC操作,无需进入救援模式。 系统安装完成后的默认用户名为root,默认密码为: MoeClub.org 重装为Debian: 以下命令中的 -d 后面为Debian版本号,-v 后面为64位/32位,可根据需求进行替换。 Debian 9 64位: bash…
Docker – koel
Docker – koel —————— version: ‘3’ services: koel: image: phanan/koel depends_on: – database ports: – 3006:80 environment: – FORCE_HTTPS=true …
一键测试脚本bench.sh
显示各种系统信息 使用方法: 命令1: wget – qO – bench . sh | bash 或者 curl – Lso – bench . sh | bash 命令2: wget – qO – 86.re / bench . sh | bash 或者 curl – so…
Protonmail vs Tutanota
Most email services can decrypt and read your emails, should they wish to. Even those advertised as ‘secure.’ Currently, Tutanota and Protonmail are the most private and secure email alternatives, both offering end-to-end encryption. But which one should you choose?…