Skip to content

wangfh5/linuxtools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

linuxtools

个人开发工具集,包含各种通用的开发和管理脚本工具。

工具列表

远程服务器文件同步工具,基于 rsync 的双向同步封装脚本。

核心特性:相对路径镜像 - 自动同步到远程对应目录,无需指定路径参数。

sync-remote              # 推送到远程
sync-remote -m pull      # 从远程拉取

详见 sync/README.md

安装

所有工具通过符号链接安装到 ~/bin/ 目录:

# 确保 ~/bin 在 PATH 中
mkdir -p ~/bin
echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

# 安装工具(以 sync-remote 为例)
ln -sf $(pwd)/sync/sync_to_remote.sh ~/bin/sync-remote

添加新工具

  1. 在对应分类目录下创建脚本
  2. 添加执行权限:chmod +x script_name.sh
  3. 在该目录创建 README.md 说明文档
  4. 更新根目录 README 的工具列表
  5. 创建符号链接到 ~/bin/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages