Files
technology-document/Linux技术.md
T
zgene 832a3db830 修改: "2026 Ubuntu \345\256\211\350\243\205.md"
新文件:   "Docker\346\212\200\346\234\257.md"
	新文件:   "GIT\346\212\200\346\234\257.md"
	新文件:   "Linux\346\212\200\346\234\257.md"
	新文件:   "Python\346\212\200\346\234\257.md"
	新文件:   hermes-agent.md
	新文件:   "\345\244\207\344\273\275\344\270\216\346\201\242\345\244\215.md"
	新文件:   "\347\224\265\345\255\220\347\247\244\345\233\276\347\211\207\350\257\206\345\210\253\347\263\273\347\273\237\350\256\276\350\256\241.md"
2026-05-26 14:00:03 +08:00

45 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
ss -tunlp | grep -E '9090|789.' 查看 9090 和 789* 端口
find / -name '*.php' 查询根目录下所有php后缀文件
for file in *.docx; do pandoc "$file" -o "${file%.docx}.md"; done 批量转换 docx 到 md
pdf2docx convert a.pdf a.docx 转换 pdf 到 docx
ps aux --sort=-%cpu | head -n 6 CPU占用Top5 free -h 内存占用
openssl rand -base64 12 生成长度为12的随机密码
curl 4.ipw.cn 本机上网出口 IPv4 查询, 4可改6
Watch -n 1 'ls -l' 每隔1秒执行目录查询
tar -cvf coze-studio.tar coze-studio 创建tar压缩包
tar -xvf coze-studio.tar 解压
映射远程目录 Nautilus (GNOME Files) 的“其他位置”输入 sftp://1.95.127.205
sudo apt update
sudo apt upgrade
===================================================快捷键
Alt + F2 运行应用程序 Copilot(AI键) 打开命令行终端 cmd
WIN +Alt + → / ← 工作台间切换 WIN + ` 在同一个应用程序的窗口之间切换
Shift + 小键盘05 0截屏 1目录 2 firefox 3 邮箱 4Typora 5 记事 . 摄像头
Emoji 符号 通过 Firefox 插件输入
```
VIM 快捷键
yy -> p(粘贴) 拷贝当前行 nyy -> p(粘贴) 拷贝下n行
dd 删除当前行 u 撤销 5 -> Shift+g 定位到第5行
/xx ->n(下一个) 查找文本。上一个按‘N’
G 文末 gg 首行 set nu 设置行号
==========================================================
```
==============
安装 ufw sudo pacman -S ufw 防火墙
sudo ufw enable 启用 ufw
sudo ufw default deny incoming 设置默认策略为拒绝所有传入和传出连接
sudo ufw default deny outgoing
允许特定的服务和端口。例如,允许 SSH 连接:sudo ufw allow ssh 或者:sudo ufw allow 22/tcp 最后,检查 ufw 的状态:sudo ufw status