惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
CXSECURITY Database RSS Feed - CXSecurity.com
Stack Overflow Blog
Stack Overflow Blog
月光博客
月光博客
T
Threat Research - Cisco Blogs
小众软件
小众软件
有赞技术团队
有赞技术团队
酷 壳 – CoolShell
酷 壳 – CoolShell
Apple Machine Learning Research
Apple Machine Learning Research
C
Cyber Attacks, Cyber Crime and Cyber Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
Tailwind CSS Blog
Cisco Talos Blog
Cisco Talos Blog
V
V2EX
博客园 - 【当耐特】
C
Cybersecurity and Infrastructure Security Agency CISA
Hugging Face - Blog
Hugging Face - Blog
The Cloudflare Blog
The Last Watchdog
The Last Watchdog
Simon Willison's Weblog
Simon Willison's Weblog
T
Threatpost
S
Secure Thoughts
O
OpenAI News
P
Proofpoint News Feed
S
SegmentFault 最新的问题
Forbes - Security
Forbes - Security
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Application and Cybersecurity Blog
Application and Cybersecurity Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Last Week in AI
Last Week in AI
宝玉的分享
宝玉的分享
Scott Helme
Scott Helme
T
Tenable Blog
A
Arctic Wolf
L
LINUX DO - 热门话题
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
www.infosecurity-magazine.com
www.infosecurity-magazine.com
V
Visual Studio Blog
Hacker News: Ask HN
Hacker News: Ask HN
Hacker News - Newest:
Hacker News - Newest: "LLM"
腾讯CDC
博客园 - Franky
WordPress大学
WordPress大学
Know Your Adversary
Know Your Adversary
博客园_首页
雷峰网
雷峰网
IT之家
IT之家
PCI Perspectives
PCI Perspectives
L
LINUX DO - 最新话题
H
Heimdal Security Blog

Linux on 老刘博客

Arch Linux 电源优化指南 Ubuntu 26.04 用了一个月 linux下使用kde桌面,自动亮度失效解决办法 Ubuntu25.10编译安装Ibus-libpinyin EndeavourOS + Btrfs + Snapper + GRUB:完整的快照回滚系统配置指南 Ubuntu24.04安装Windterm 从 Windows 到 Linux:重新体验的过程与心得 Ubuntu部署ghost博客所踩的小坑 正式使用Manjaro系统 python开发web程序,最好还是在Linux下 最终还是用回了Linux mint 试用统信uos家庭版 几种Linux系统安装之后的体验 centos7.6更改dns的方法
常用的几个Linux的命令
老刘 · 2019-07-20 · via Linux on 老刘博客

作为一个命令记不全的人,每次都要跋山涉水的找命令,这次把一些经常用到的命令综合到一起,省的再去翻找别人的文章。

Linux 删除文件夹和文件的命令

删除文件夹实例:

rm -rf /var/log/httpd/access

将会删除/var/log/httpd/access目录以及其下所有文件、文件夹

删除文件使用实例:

rm -f /var/log/httpd/access.log

将会强制删除/var/log/httpd/access.log这个文件

更改网站目录权限

网站根目录权限遵循:

文件644 文件夹755  权限用户和用户组www,其余文档777权限是不正常的

如出现文件权限问题时,请执行下面3条命令:

chown -R www.www /data/wwwroot/
find /data/wwwroot/ -type d -exec chmod 755 {} \;
find /data/wwwroot/ -type f -exec chmod 644

管理服务器命令

  • Nginx/Tengine/OpenResty:
    service nginx {start|stop|status|restart|reload|configtest}

  • MySQL/MariaDB/Percona: service mysqld {start|stop|restart|reload|status}

    • PostgreSQL: service postgresql {start|stop|restart|status}

      • MongoDB: service mongod {start|stop|status|restart|reload}

        • PHP: service php-fpm {start|stop|restart|reload|status}

        Linux 中 cp 命令(文件复制)

        1、cp fileOne fileTwo 或者 cp -i fileOne fileTwo ——–将文档One复制并命名成Two

        2、cp -i fileOne dirOne 或者 cp fileOne dirOne  —————将文档One复制到DirOne目录下

        3、cp -r dirOne dirTwo   ———–将目录dirOne复制到dirTwo下

        4、cp -r dirOne/*.* dirTwo   ———-将dirOne下所有文件包括文件夹复制到dirTwo

        待续…….