Synology Toolset

Aus Synology Wiki
Wechseln zu: Navigation, Suche

Synology hat ab DSM3 einige eigen-entwickelte Tools dokumentiert.


ash - Kommandointerpreter/Almquist-Shell

busybox - BusyBox combines tiny versions of many common UNIX utilities into a single small executable. It provides minimalist replacements for most of the utilities you usually find in GNU coreutils, util-linux, etc. The utilities in BusyBox generally have fewer options than their full-featured GNU cousins; however, the options that are included provide the expected functionality and behave very much like their GNU counterparts. Eine weitere manpage, teilweise mit Beispielen.

cat [-u] [FILE]... - Concatenate FILEs and print them to stdout

  • -u Use unbuffered i/o (ignored)

catv [-etv] [FILE]... - Display nonprinting characters as ^x or M-x

  • -e End each line with $
  • -t Show tabs as ^I
  • -v Don't use ^x or M-x escapes

chgrp [-RhLHP]... GROUP FILE... - Change the group membership of each FILE to GROUP

  • -R Recurse
  • -h Affect symlinks instead of symlink targets
  • -L Traverse all symlinks to directories
  • -H Traverse symlinks on command line only
  • -P Don't traverse symlinks (default)

chmod [-R] MODE[,MODE]... FILE... - Each MODE is one or more of the letters ugoa, one of the symbols +-= and one or more of the letters rwxst

  • -R Recurse

chown [-RhLHP]... OWNER[<.|:>[GROUP]] FILE... - Change the owner and/or group of each FILE to OWNER and/or GROUP

  • -R Recurse</li>
  • -h Affect symlinks instead of symlink targets
  • -L Traverse all symlinks to directories
  • -H Traverse symlinks on command line only
  • -P Don't traverse symlinks (default)


  • -a Same as -dpR
  • -R,-r Recurse
  • -d,-P Preserve symlinks (default if -R)
  • -L Follow all symlinks
  • -H Follow symlinks on command line
  • -p Preserve file attributes if possible
  • -f Force overwrite
  • -i Prompt before overwrite
  • -l,-s Create (sym)links

date [OPTIONS] [+FMT] [TIME] - Display time (using +FMT), or set time

  • [-s,--set] TIME Set time to TIME
  • -u,--utc Work in UTC (don't convert to local time)
  • -R,--rfc-2822 Output RFC-2822 compliant date string
  • -I[SPEC] Output ISO-8601 compliant date string
  • SPEC='date' (default) for date only, 'hours', 'minutes', or 'seconds' for date and time to the indicated precision
  • -r,--reference FILE Display last modification time of FILE
  • -d,--date TIME Display TIME, not 'now'
  • -D FMT Use FMT for -d TIME conversion

Recognized TIME formats:
YYYY-MM-DD hh:mm[:ss]

dd [if=FILE] [of=FILE] [ibs=N] [obs=N] [bs=N] [count=N] [skip=N] [seek=N] [conv=notrunc|noerror|sync|fsync] - Copy a file with converting and formatting

  • if=FILE Read from FILE instead of stdin
  • of=FILE Write to FILE instead of stdout
  • bs=N Read and write N bytes at a time
  • ibs=N Read N bytes at a time
  • obs=N Write N bytes at a time
  • count=N Copy only N input blocks
  • skip=N Skip N input blocks
  • seek=N Skip N output blocks
  • conv=notrunc Don't truncate output file
  • conv=noerror Continue after read errors
  • conv=sync Pad blocks with zeros
  • conv=fsync Physically write data out before finishing

Numbers may be suffixed by c (x1), w (x2), b (x512), kD (x1000), k (x1024), MD (x1000000), M (x1048576), GD (x1000000000) or G (x1073741824)

df [-Pkmh] [FILESYSTEM]... - Print filesystem usage statistics

  • -P POSIX output format
  • -k 1024-byte blocks (default)
  • -m 1M-byte blocks
  • -h Human readable (e.g. 1K 243M 2G)

dmesg [-c] [-n LEVEL] [-s SIZE] - Print or control the kernel ring buffer

  • -c Clear ring buffer after printing
  • -n LEVEL Set console logging level
  • -s SIZE Buffer size</li>

dnsdomainname - Show the system's DNS domain name

echo [OPTION]... [STRING]... - Display a line of text

  • -n Suppress trailing newline
  • -e Interpret backslash-escaped characters (i.e., \t=tab)
  • -E Disable interpretation of backslash-escaped characters

egrep [ARG] FILE... - Print lines matching a pattern. Egrep is the same as grep -E

false - Do nothing, unsuccessfully

fgrep [ARG] FILE... - Print lines matching a pattern. Fgrep is the same as grep -F

get_key_value FILE KEY - Finds first line starting with KEY from KEY=VALUE-paired FILE and returns Value

grep [-HhnlLoqvsriFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]... - Search for PATTERN in FILEs (or stdin)

  • -H Add 'filename:' prefix
  • -h Do not add 'filename:' prefix
  • -n Add 'line_no:' prefix
  • -l Show only names of files that match
  • -L Show only names of files that don't match
  • -c Show only count of matching lines
  • -o Show only the matching part of line
  • -q Quiet. Return 0 if PATTERN is found, 1 otherwise
  • -v Select non-matching lines
  • -s Suppress open and read errors
  • -r Recurse
  • -i Ignore case
  • -F PATTERN is a literal (not regexp)
  • -E PATTERN is an extended regexp
  • -m N Match up to N times per file
  • -A N Print N lines of trailing context
  • -B N Print N lines of leading context
  • -C N Same as '-A N -B N'
  • -e PTRN Pattern to match
  • -f FILE Read pattern from file

gunzip [OPTIONS] [FILE]... - Uncompress FILEs (or stdin)

  • -c Write to stdout
  • -f Force
  • -t Test file integrity

gzip [OPTIONS] [FILE]... - Compress FILEs (or stdin)

  • -c Write to stdout
  • -d Decompress
  • -f Force

hostname [OPTIONS] [HOSTNAME | -F FILE] - Get or set hostname or DNS domain name

  • -s Short
  • -i Addresses for the hostname
  • -d DNS domain name
  • -f Fully qualified domain name
  • -F FILE Use FILE's content as hostname

ip [OPTIONS] {address | route | link | -o[neline]} {COMMAND} - Show/manipulate routing, devices, policy routing and tunnels

ipcalc [OPTIONS] ADDRESS[[/]NETMASK] [NETMASK] - Calculate IP network settings from a IP address

  • -b Display calculated broadcast address
  • -n Display calculated network address
  • -m Display default netmask for IP
  • -p Display the prefix for IP/NETMASK
  • -h Display first resolved host name
  • -s Don't ever display error messages

kill [-l] [-SIG] PID... - Send a signal (default: TERM) to given PIDs

  • -l List all signal names and numbers

ln OPTIONS] TARGET... LINK|DIR - Create a link LINK or DIR/TARGET to the specified TARGET(s)

  • -s Make symlinks instead of hardlinks
  • -f Remove existing destinations
  • -n Don't dereference symlinks - treat like normal file
  • -b Make a backup of the target (if exists) before link operation
  • -S suf Use suffix instead of ~ when making backup files

login [-p] [-h HOST] [[-f] USER] - Begin a new session on the system

  • -f Don't authenticate (user already authenticated)
  • -h Name of the remote host
  • -p Preserve environment

ls [-1AacCdeFilnpLRrSsTtuvwxXhk] [FILE]... - List directory contents

  • -1 List in a single column
  • -A Don't list . and ..
  • -a Don't hide entries starting with .
  • -C List by columns
  • -c With -l: sort by ctime
  • --color[={always,never,auto}] Control coloring
  • -d List directory entries instead of contents
  • -e List full date and time
  • -F Append indicator (one of */=@|) to entries
  • -i List inode numbers
  • -l Long listing format
  • -n List numeric UIDs and GIDs instead of names
  • -p Append indicator (one of /=@|) to entries
  • -L List entries pointed to by symlinks
  • -R Recurse
  • -r Sort in reverse order
  • -S Sort by file size
  • -s List the size of each file, in blocks
  • -T N Assume tabstop every N columns
  • -t With -l: sort by modification time
  • -u With -l: sort by access time
  • -v Sort by version
  • -x List by lines
  • -X Sort by extension
  • -h List sizes in human readable format (1K 243M 2G)


  • -m Mode
  • -p No error if exists; make parent directories as needed

mknod [OPTIONS] NAME TYPE MAJOR MINOR - Create a special file (block, character, or pipe)

  • -m Create the special file using the specified mode (default a=rw)

TYPEs include:

  • b: Make a block device
  • c or u: Make a character device
  • p: Make a named pipe (MAJOR and MINOR are ignored)

more more [FILE]... - View FILE (or stdin) one screenful at a time

mount [OPTIONS] [-o OPTS] DEVICE NODE - Mount a filesystem. Filesystem autodetection requires /proc.

  • -a Mount all filesystems in fstab
  • -f Update /etc/mtab, but don't mount
  • -n Don't update /etc/mtab
  • -r Read-only mount
  • -w Read-write mount (default)
  • -t FSTYPE Filesystem type
  • -O OPT Mount only filesystems with option OPT (-a only)
  • -o OPT:
    • loop Ignored (loop devices are autodetected)
    • [a]sync Writes are [a]synchronous
    • [no]atime Disable/enable updates to inode access times
    • [no]diratime Disable/enable atime updates to directories
    • [no]relatime Disable/enable atime updates relative to modification time
    • [no]dev (Dis)allow use of special device files
    • [no]exec (Dis)allow use of executable files
    • [no]suid (Dis)allow set-user-id-root programs
    • [r]shared Convert [recursively] to a shared subtree
    • [r]slave Convert [recursively] to a slave subtree
    • [r]private Convert [recursively] to a private subtree
    • [un]bindable Make mount point [un]able to be bind mounted
    • bind Bind a file or directory to another location
    • move Relocate an existing mount point
    • remount Remount a mounted filesystem, changing flags
    • ro/rw Same as -r/-w
  • There are filesystem-specific -o flags.


  • -f Don't prompt before overwriting
  • -i Interactive, prompt before overwrite

netstat [OPTIONS] - Display networking information

  • -l Display listening server sockets
  • -a Display all sockets (default: connected)
  • -e Display other/more information
  • -n Don't resolve names
  • -t Tcp sockets
  • -u Udp sockets
  • -w Raw sockets
  • -x Unix sockets
  • -r Display routing table
  • -W Display with no column truncation
  • -p Display PID/Program name for sockets

ntfs-3g [-o option[,...]] <device|image_file> <mount_point> - Third Generation Read/Write NTFS Driver

  • ro (read-only mount)
  • remove_hiberfile
  • uid=
  • gid=
  • umask=
  • fmask=
  • dmask=
  • streams_interface=

Example: ntfs-3g /dev/sda1 /mnt/windows

ntfs-3g.probe <--readonly|--readwrite> <device|image_file> - Probe an NTFS volume mountability Example: ntfs-3g.probe --readwrite /dev/sda1

pidof [NAME]... - List PIDs of all processes with names that match NAMEs

ping OPTIONS] HOST - Send ICMP ECHO_REQUEST packets to network hosts

  • -4, -6 Force IP or IPv6 name resolution
  • -c CNT Send only CNT pings
  • -s SIZE Send SIZE data bytes in packets (default:56)
  • -I IFACE/IP Use interface or IP address as source
  • -W SEC Seconds to wait for the first response (default:10) (after all -c CNT packets are sent)
  • -w SEC Seconds until ping exits (default:infinite) (can exit earlier with -c CNT)
  • -q Quiet, only displays output at start and when finished

ping6 ps pwd rm rmdir run-parts sed sh sleep stat stty su sync synodd tar touch true umount uname usleep vi zcat


blockdev {-V | --report [devices] | [-v|-q] commands devices} - The utility blockdev allows one to call block device ioctls from the command line. Available commands:

  • --getsz (get size in 512-byte sectors)
  • --setro (set read-only)
  • --setrw (set read-write)
  • --getro (get read-only)
  • --getss (get sectorsize)
  • --getbsz (get blocksize)
  • --setbsz BLOCKSIZE (set blocksize)
  • --getsize (get 32-bit sector count)
  • --getsize64 (get size in bytes)
  • --setra READAHEAD (set readahead)
  • --getra (get readahead)
  • --setfra FSREADAHEAD (set filesystem readahead)
  • --getfra (get filesystem readahead)
  • --flushbufs (flush buffers)
  • --rereadpt (reread partition table)

dhcp6c dhcpcd

dmsetup [Options] <command> - Low level logical volume management

  • --version
  • -v|--verbose
  • -r|--readonly
  • --noopencount
  • --nolockfs
  • --readahead [+]<sectors>|auto|none
  • -c|-C|--columns
  • -o <fields>
  • -O|--sort <sort_fields>
  • --nameprefixes
  • --noheadings
  • --separator <separator>


  • help [-c|-C|--columns]
  • create <dev_name> [-j|--major <major> -m|--minor <minor>] [-U|--uid <uid>] [-G|--gid <gid>] [-M|--mode <octal_mode>] [-u|uuid <uuid>] [--notable|--table <table>|<table_file>]
  • remove [-f|--force] <device>
  • remove_all [-f|--force]
  • suspend [--noflush] <device>
  • resume <device>
  • load <device> [<table_file>]
  • clear <device>
  • reload <device> [<table_file>]
  • rename <device> <new_name>
  • message <device> <sector> <message>
  • ls [--target <target_type>] [--exec <command>] [--tree [-o options]]
  • info [<device>]
  • deps [<device>]
  • status [<device>] [--target <target_type>]
  • table [<device>] [--target <target_type>] [--showkeys]
  • wait <device> [<event_nr>]
  • mknodes [<device>]
  • targets
  • version
  • setgeometry <device> <cyl> <head> <sect> <start>

e2fsck [-panyrcdfvtDFV] [-b superblock] [-B blocksize] [-I inode_buffer_blocks] [-P process_inode_size] [-l|-L bad_blocks_file] [-C fd] [-j external_journal] [-E extended-options] <device> - Check a Linux ext2/ext3 file system

  • -p Automatic repair (no questions)
  • -n Make no changes to the filesystem
  • -y Assume "yes" to all questions
  • -c Check for bad blocks and add them to the badblock list
  • -f Force checking even if filesystem is marked clean
  • -v Be verbose
  • -b superblock Use alternative superblock
  • -B blocksize Force blocksize when looking for superblock
  • -j external_journal Set location of the external journal
  • -l bad_blocks_file Add to badblocks list
  • -L bad_blocks_file Set badblocks list

fdisk freeramdisk fsck.ext3 fsck.ext4 getty halt hotplug hwclock ifconfig ifdown ifup init insmod ip ip6tables ip6tables-multi ip6tables-restore ip6tables-save iptables iptables-multi iptables-restore iptables-save iwconfig iwlist iwpriv klogd losetup lsmod lvcreate lvdisplay lvextend lvm lvremove lvs makedevs mdadm mkdosfs mke2fs mkfs.ext3 mkfs.ext4 mkfs.msdos mkfs.vfat mkswap modprobe parted portmap poweroff pvcreate pvdisplay pvremove pvresize pvs quota quotacheck quotaoff quotaon raidtool reboot resize2fs rmmod route setquota sfdisk sparted swapoff swapon sysctl syslog-ng syslog-ng-ctl syslogd tune2fs vgcfgbackup vgcfgrestore vgchange vgcreate vgdisplay vgextend vgreduce vgremove vgs


[ [[ a2p alac awk basename c2ph cksum clear cmp cpan cut diff dirname dprofpp du enc2xs env expr faad find find2perl flac free h2ph h2xs head id instmodsh killall libnetcfg logger mac metaflac nohup nslookup oggdec perl perl5.8.6 perlbug perlcc perldoc perlivp php piconv pl2pm printf prove psed pstruct readlink realpath renice reset s2p seq sort splain tail tee telnet test time top traceroute traceroute6 tty uniq unxz uptime uuidgen wc which who whoami wvunpack xargs xsubpp xz xzcat yes


adsl-connect adsl-start adsl-status adsl-stop chroot crond exportfs ietadm ietd inetd mountd nfsd nfsstat ntpdate pppd pppoe showmount sm-notify

statd [OPTIONS] - NSM (Network Status Monitor) RPC protocol status monitor

  • -h, -?, --help - Print this help screen.
  • -F, --foreground - Foreground (no-daemon mode)
  • -d, --no-syslog - Verbose logging to stderr. Foreground mode only.
  • -p, --port - Port to listen on
  • -o, --outgoing-port - Port for outgoing connections
  • -V, -v, --version - Display version information and exit.
  • -n, --name - Specify a local hostname.
  • -P - State directory path.
  • -N - Run in notify only mode.
  • -L, --no-notify - Do not perform any notification.
  • -H - Specify a high-availability callout program.

telnetd [OPTIONS] - Handle incoming telnet connections via inetd

  • -l LOGIN - Exec LOGIN on connect
  • -f ISSUE_FILE - Display ISSUE_FILE instead of /etc/issue
  • -K - Close connection as soon as login exits (normally wait until all programs close slave pty)


7z <command> [<switches>...] <archive_name> [<file_names>...] [<@listfiles...>] - A file archiver with highest compression ratio <Commands>

  • a: Add files to archive
  • b: Benchmark
  • d: Delete files from archive
  • e: Extract files from archive (without using directory names)
  • l: List contents of archive
  • t: Test integrity of archive
  • u: Update files to archive
  • x: eXtract files with full paths


  • -ai[r[-|0]]{@listfile|!wildcard}: Include archives
  • -ax[r[-|0]]{@listfile|!wildcard}: eXclude archives
  • -bd: Disable percentage indicator
  • -i[r[-|0]]{@listfile|!wildcard}: Include filenames
  • -m{Parameters}: set compression Method (see the manual)
  • -l: don't store symlinks; store the files/directories they point to; CAUTION : the scanning stage can never end because of symlinks like '..' (ex: ln -s .. ldir)
  • -o{Directory}: set Output directory
  • -p{Password}: set Password
  • -r[-|0]: Recurse subdirectories (CAUTION: this flag does not do what you think, avoid using it)
  • -sfx[{name}]: Create SFX archive
  • -si[{name}]: read data from stdin
  • -slt: show technical information for l (List) command
  • -so: write data to stdout (eg: 7z a dummy -tgzip -so Doc.txt > archive.gz)
  • -ssc[-]: set sensitive case mode
  • -t{Type}: Set type of archive
  • -v{Size}[b|k|m|g]: Create volumes
  • -u[-][p#][q#][r#][x#][y#][z#][!newArchiveName]: Update options
  • -w[path]: assign Work directory. Empty path means a temporary directory
  • -x[r[-|0]]]{@listfile|!wildcard}: eXclude filenames
  • -y: assume Yes on all queries

SYNOClearTdb FILE - Synology clear .tbd-File Tool

apple_dump autoupdate.php burnin-net checkNewDSM.php cjkterms compare composite confmimetype convert convert-thumb cupsdisable cupsenable curl dcraw downloadDSM.php dsassistant enca ethtool exiftool exiv2 ffmpeg ffmpeg-thumb findhostd firewalltool get_section_key_value hdparm iscsitrgtool jpegtran ldapmodify ldappasswd ldapsearch lpadmin lpc lpq lpr lprm lpstat mount.cifs mplayer mplayer-daemon nbprgstr net netcardtool nmblookup nzbget openssl pkgindexer_add pkgindexer_del qt-faststart rsync s2s_addWatchedShare s2s_createShare s2s_createTaskFakeFile s2s_genSyncerCmdFile s2s_monitor s2s_rmWatchedShare s2s_syncShareRealtimeTask s2s_syncd s2s_syncer s3 scandisk scemd scriptindex servicetool slapacl slapadd slapauth slapcat slapdn slapindex slappasswd smartctl smbclient smbcontrol smbstatus spacetool sqlite3 sscamera sscamgroup ssctl ssemap ssevent ssguard ssh ssh-keygen sskit sslayout ssnotif sspatrol ssupgradeaccountdb ssupgradefpsdb ssupgradescheduledb ssupgradestreamingtypedb sswebui stress stressrtc stressusb syno_bkp_data_update

syno_disk_ctl OPTIONS DEVICE - Synology disk control device: something like /dev/hda or /dev/sda

  • --ncq-off: turn off ncq; ex: syno_disk_ctl --ncq-off /dev/sda
  • --wcache-off: turn off write cache and tell kernel don't allow open it anymore; ex: syno_disk_ctl --wcache-off /dev/sda
  • --wd-idle: Read, Set or disable the idle3 timer of Western Digital drives
    • -d: disable wd idle3 timer ex: syno_disk_ctl --wd-idle -d /dev/sda
    • -g: get wd disk idle3 timer ex: syno_disk_ctl --wd-idle -g /dev/sda
    • -s<value>: set wd disk idle3 timer ex: syno_disk_ctl --wd-idle -s80 /dev/sda

syno_hdd_util OPTION - Synology Disk Utility

  • --ssd_detect; ex: syno_hdd_util --ssd_detect

syno_hibernate_debug_tool OPTION - Synology Hibernation Debug Tool

  • --enable [VALUE]; ex: syno_hibernate_debug_tool --enable 10; ex: syno_hibernate_debug_tool --enable 1
  • --disable; ex: syno_hibernate_debug_tool --disable
  • --enable-force_hibernation; ex: syno_hibernate_debug_tool --enable-force_hibernation
  • --disable-force_hibernation; ex: syno_hibernate_debug_tool --disable-force_hibernation

syno_poweroff_task - Synology Shutdown and Poweroff Tool

synoacltool OPTIONS - Synolgy Accesscontrol Tool (more information by using -h-Option)

  • -h: show help
  • -check: check acl permission of file
  • -get: get syno acl of file
  • get-perm: extract windows permission from acl or linux permission
  • -add: add syno ace into file
  • -replace: replace specified ace by index number
  • -del: delete syno acl of file
  • -get-archive: get ACL archive bit
  • -set-archive: set ACL archive bit
  • -del-archive: delete ACL archive bit
  • -copy: copy ACL from source to destination, only works when ACL exists
  • -set-eadir-acl: set ACL for EA dir
  • -enforce-inherit: enforce ACL inheritance
  • -set-share-default-perm: set default ACL on share

synoauth local_username password - Set/establish password to local user

synoautoblock OPTIONS - Manage autoblock feature

  • --help
  • --attempt ip
  • --deny ip
  • --reset ip

synoblog_backup [-r|-b] p [-u username] [-o] - Manage blog feature

  • -b Backup blog database.
  • -r Restore blog database.
  • p Path to store backup file or to get restore file.
  • -u username to backup or restore blog.
  • -o Overwrite mode for restoring blog database. Default is skip mode.

synobootup synobox synobttool synocfgen synocheckiscsitrg synocheckshare synocheckvolume synodctest synodiskport synodlmail synodsmnotify synoeaupgrade synoethinfo synoexternal synofetch synoflvconv synofstool synogetfstype synogetkeyvalue synogrinst synoindex synoitunesdb synojournalerr synokerneltz synoldapbrowser synoldapserver synolocalbkp synolocalbkpd synologset1 synomail synomkflv synomkthumb synomkthumbd synomount synomsg_collector synonetbkp synonetbkpd synonetbkps3 synopftest synophoto_backup synophoto_dsm_user synophoto_sns_utils synophotoio synopkg synoportforward synoprint synorcvol synornd synorsstool synosata synosavetime synosearch synosetwins synoshareperm synosms synosubox synosurv_backup synosyncdctime synothumb synotunnelexec synoupnp synoups synousbcam synousbcopy synousbdisk synowimax synowireless tar tdbbackup tdbtool timebkp umount.cifs unrar unzip upsc upsdrvctl usbhid-ups volume volumetool wbinfo wget zip


afpd amuled atalkd avahi-daemon bind_driver cnid_dbd cnid_metad cups-lpd cupsd ddnsd dms dms.local ecryptfs-rewrap-passphrase ecryptfs-unwrap-passphrase ecryptfs-wrap-passphrase fileindexd ftpd gcpd hotplugd keyctl kinit klist lighttpd manutild mount.ecryptfs mt-daapd nmbd nslcd papd scheduler slapd smbd snmpd ssd sseventexportd sshd ssrotated synoairplayd synoamulecgid synoaudiod synodate synogroup synoindexd synoisns synoldapclient synologd synolvm_expand synolvm_mklv synolvm_mksnap synolvm_rmsnap synomkflvd synonet synorcd synoservice synoshare synouser synowin transmissiond upnpd upsd upsmon upssched usbip usbipd vsctrld winbindd