分类 · 30 个片段
Linux Shell
本分类收录可复制代码片段,点击卡片查看说明与完整代码。
CSS 片段
HTML 片段
JavaScript
PHP 片段
Python 片段
Golang 片段
Linux Shell
Nginx 配置
SEO / Meta
正则示例
结构化数据
Git 常用
SQL 小抄
Linux Shell · bash
查看目录与文件
pwd / ls 常用参数。
Linux Shell · bash 切换目录与返回cd / pushd / popd。
Linux Shell · bash 创建目录与空文件mkdir -p / touch。
Linux Shell · bash 复制移动与删除cp / mv / rm。
Linux Shell · bash 权限与属主chmod / chown。
Linux Shell · bash find 按名查找查找文件。
Linux Shell · bash grep 递归搜索在代码中搜关键字。
Linux Shell · bash sed 批量替换行内替换文本。
Linux Shell · bash awk 取列统计处理空白分隔输出。
Linux Shell · bash 磁盘与目录占用df / du。
Linux Shell · bash 查看与跟踪日志tail / less。
Linux Shell · bash journalctl 看服务日志systemd 日志。
Linux Shell · bash systemctl 启停服务管理 systemd 服务。
Linux Shell · bash 查看进程与负载ps / top / htop。
Linux Shell · bash 查看内存与缓存free -h。
Linux Shell · bash 结束进程kill / killall。
Linux Shell · bash curl 查看响应头检查状态码与头。
Linux Shell · bash wget 下载文件断点续传。
Linux Shell · bash 打包与解压tar / gzip。
Linux Shell · bash rsync 同步备份增量同步目录。
Linux Shell · bash scp 传输文件SSH 拷贝。
Linux Shell · bash SSH 密钥登录ssh-keygen / ssh-copy-id。
Linux Shell · bash crontab 定时任务编辑与列任务。
Linux Shell · bash 环境变量与 PATHexport / echo。
Linux Shell · bash 常用 alias 示例缩短命令。
Linux Shell · bash UFW 放行端口防火墙基础。
Linux Shell · bash 查看监听端口ss / netstat。
Linux Shell · bash 管道与 tee保存同时输出。
Linux Shell · bash xargs 批量处理把列表交给命令。
Linux Shell · bash history 与重复命令历史命令技巧。