Skip to content

SynoCli Misc Tools

SynoCli Misc Tools provides various useful command-line utilities.

Package Information

Property Value
Package Name synocli-misc
License Various (GPL, BSD, MIT)

Included Tools

Tool Description
bc Calculator
errno Lookup errno names and descriptions
expect Automate interactive applications
parallel Parallel command execution
cal Calendar display
hexdump Display file in hexadecimal
lscpu Display CPU information
lsblk List block devices
findmnt Find mounted filesystems
wall Write to all users
whereis Locate commands
uhubctl USB hub power control
zramctl ZRAM management

moreutils (pee, sponge, etc.)

Tool Description
pee Tee to pipes
sponge Soak up stdin, write to file
ts Timestamp input
ifdata Get network interface info
ifne Run command if stdin not empty
isutf8 Check if file is valid UTF-8
lckdo Execute with lock held
mispipe Pipe preserving exit status

Usage Examples

parallel - Parallel Execution

# Process files in parallel
ls *.jpg | parallel convert {} -resize 50% small_{}

# Run 4 jobs in parallel
parallel -j 4 gzip ::: *.log

expect - Automation

# Automate SSH login (example script)
expect <<'EOF'
spawn ssh user@host
expect "password:"
send "mypassword\r"
interact
EOF

sponge - Safe In-Place Editing

# Edit file in place safely
sort file.txt | sponge file.txt

# Without sponge, this would empty the file

ts - Add Timestamps

# Add timestamps to output
command | ts '[%Y-%m-%d %H:%M:%S]'

uhubctl - USB Power Control

# List USB hubs
uhubctl

# Power off USB port
uhubctl -a off -p 1