Basic commands to get around the Synology Box using the CLI
Jump to navigation
Jump to search
1. Basic commands
A. To go to a directory, command: cd /directory name B. To make a directory, command: mkdir /directory name C. Directory list, command: dir D. To find a file, command: find / -name "file name" E. To delete a file, command: rm file name F. To delete directory and its content, command: rm –r directory name G. To move or rename a file, command: mv /directory name/file name /destination directory H. To copy a file or files, command: cp /directory name/file name /destination directory I. For more than one file, command: cp /directory name/*.* /destination directory J. To reboot the Synology box, command: reboot K. To shutdown the Synology box, command: poweroff L. Clear terminal screen, command: clear M. To stop a process, command: kill process id N. To stop a program, command: killall program name O. Check system memory, command: cat /proc/meminfo or free P. Check system CPU, command: cat /proc/cpuinfo Q. Check for interrupts in use, command: cat /proc/interrupts R. Check file system being used, command: cat /proc/filesystems S. Check linux version, command, cat /proc/version T. Shows the most current processes running, command: top U. Shows all processes running, command: ps –ef V. To install program, command: ipkg install file name W. To remove a program, command: ipkg remove file name