Skip to main content

Synology: Commonly Used Commands

Synology ds120j

Commonly used commands via ssh with Synology NAS.

Synology Cheat Sheet

sudo -i : Login as root
synoindex -R video : Reindex video files

User management

There is no passwd command, user synouser command instead.

Synology command: synouser

Create new user 'tuyen' with password '1' and permission to access FTP (0x01), Audio Station (0x04) and Surveillance Station (0x10)

admin@DiskStation:~$ sudo /usr/syno/sbin/synouser --add tuyen 1 "Tuyen Dang" 0 tuyen@company.com 21

Re-index files

Re-index video files to remove deleted videos from being listed in DS Video

admin@DiskStation:~$ synoindex -R video

Popular posts from this blog

MySQL: Notes

Ways to check MySQL version mysql --version mysql -V dpkg -l 'mysql-sever' mysql -u root -p How to check MySQL version: mysql --version Database folder On Microsoft Windows, by default, MySQL save databases in this folder: %ProgramData%\MySQL\MySQL Server 5.5\data Check databases' size SELECT table_schema AS "Database name", SUM(data_length + index_length) / 1024 / 1024 AS "Size (MB)" FROM information_schema.TABLES GROUP BY table_schema; Export database schema $ mysqldump -u root -p --no-data wordpress1001 > c:\backup\schema-wordpress1001.sql Enter password: **************** Create a dedicated user to backup databases Give credit to: http://www.fromdual.com/privileges-of-mysql-backup-user-for-mysqldump Create dedicated mysql user and grant privileges to run backup $ mysql -u root -p CREATE USER 'backupdb'@'localhost' IDENTIFIED BY 'passwordhere'; GRANT SELECT,SHOW VIEW,RELOAD,REPLICATION CLIENT...

nmap - The Network Mapper

WARNING : It is ILLEGAL to scan hosts without permission.

Linux command: grep - Global Regular Expression Print

grep command grep, egrep, fgrep, rgrep - print lines matching a pattern