Socket
Socket
Sign inDemoInstall

hlink

Package Overview
Dependencies
120
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    hlink

hlink


Version published
Weekly downloads
20
decreased by-4.76%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

npm package node version npm download

所需环境:

nodejs 10 以上;

安装

$ npm install -g hlink

# 查看帮助

$ hlink --help

功能:

  1. 批量创建源地址下面所有视频文件 硬链 到目标地址
  2. 重复硬链检测,就算硬链接已改名也能检查到
  3. 批量删除源地址在目标地址所创建的硬链

使用

使用

效果截图

创建

重复创建

删除目录

删除文件

威联通关联环境变量

由于威联通重启后会重置部分配置,而且威联通安装node后默认没有设置环境变量,所以需要配置开机启动脚本来进行自动配置 hlink 到环境变量中,不然很麻烦

  1. ssh 登录你的威联通机器 执行以下命令
$ mount $(/sbin/hal_app --get_boot_pd port_id=0)6 /tmp/config
  1. 编辑autorun.sh脚本
$ vim /tmp/config/autorun.sh

添加以下脚本到autorun.sh

ln -s  /share/CACHEDEV1_DATA/.qpkg/NodeJS/bin/hlink /usr/local/bin/hlink

其中/share/CACHEDEV1_DATA/.qpkg/NodeJS/bin/hlink 为你npm安装后的hlink 路径,根据各自的路径进行更换

  1. 给autorun.sh添加执行权限
$ chmod +x /tmp/config/autorun.sh
  1. 开启用户自定义脚本

控制台 > 硬盘 > 启动时运行用户定义的进程 打上勾,最后别忘记点击应用

删除文件

  1. 卸载/tmp/config
$ umount /tmp/config

打赏作者

请作者喝一杯咖啡😄

打赏列表:

  • 脱光游侠/诈尸求邀没结果 16.60 RMB
  • 月与徘徊 10.00 RMB

License

MIT

Keywords

FAQs

Last updated on 28 Dec 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc