![]() ![]() All of this can be done on Mac OS X although all of the documentation required to get this to work (under Tiger at least) appears to be spread out over several documents across the web. Additionally, sometimes it may be beneficial to have ssh open on multiple ports simultaneously. Note: The command line above also works perfectly with DSM 6.2.For one reason or another people often find themselves needing to ssh/sftp to an alternate port (default is port 22) on their systems. Miscellaneous for DSM 7 Clear terminal screen clear Or for similar, but different info fdisk -l Or for all NAS types cat /proc/partitions ![]() System Information on DSM 7 Check system memory info cat /proc/meminfo Check CPU Info cat /proc/cpuinfo Check Interrupts in use cat /proc/interrupts Check the current File Systems in use cat /proc/filesystems Comprehensive information on the file system format tune2fs -l /dev/hda3 Check the Linux Version of your DSM cat /proc/version Check RAID Devices cat /proc/mdstat Check Environment Variables env Check what physical and logical disks/partitions you have in a multi-bay NAS cat /proc/diskstats Restart Services on DSM 7 Apache /usr/syno/etc/rc.d/S97apache-user.sh restart Appletalk /usr/syno/etc/rc.d/S81atalk.sh restart Cron and Crond /usr/syno/etc/rc.d/S04crond.sh stopįTP /usr/syno/etc/rc.d/S99ftpd.sh restart Index /usr/syno/etc/rc.d/S66synoindexd.sh restart Itunes /usr/syno/etc/rc.d/S99itunes.sh restart MySQL /usr/syno/etc/rc.d/S21mysql.sh restart NFS /usr/syno/etc/rc.d/S83nfsd.sh restart Postgresql /usr/syno/etc/rc.d/S20pgsql.sh restart Samba /usr/syno/etc/rc.d/S80samba.sh restart SSH /usr/syno/bin/synosystemctl restart rvice SSH /usr/syno/bin/synosystemctl stop rvice SSH /usr/syno/bin/synosystemctl disable rvice SSH /usr/syno/bin/synosystemctl enable rvice SSH /usr/syno/bin/synosystemctl start rvice ipkg install fileName Uninstall an IPKG program package ipkg remove filename To return to root session use the command line “exit”. If you are logged in as root/admin you can open a new shell as if you just logged in as another user, substitute xxx with the user name. System Management on DSM 7 Reboot your Synology NAS device reboot Shutdown your Synology NAS device poweroff Stop a process on your Synology NAS kill processID Stop a program on your Synology NAS killall programName Display most current processes running on your Synology NAS top Report disk space usage on your Synology NAS df Show all current DSM processes ps Show currently open ports and their status on your Synology NAS netstat -an Change Logged in user on your Synology NAS To create a compressed (.tgz) archive of all files, directories and subdirectories in the current directory: tar -cvzf archivefilename.tgz * Unpack. To create an uncompressed (.tar) archive of all files, directories and subdirectories in the current directory: tar -cvf archivefilename.tar * Create a compressed tar (.tgz) archive type f | wc -l Check size of directory and sub-directories du -ah /path/to/dir Find a file find / -name fileName Delete a file rm fileName Delete a directory and its content rm -r directoryName Move or Rename a file mv /sourceDirectory/sourceFile /destination Copy a file cp /sourceDirectory/sourceFile /destination Copy groups of files cp /sourceDirectory/*.* /destination Copy a directory and any sub-directories cp -r -p /sourceDirectory /destinationpath Create an uncompressed tar (.tar) archive Note: Be careful! Use only the command lines you need.įile Management on DSM 7 To edit a text file (using vi) vi /location_of_file/file_name To go to a directory cd /directoryName To make a directory mkdir /directoryName List contents of directory dir Count the number of files in the current directory and its sub-directories find. ![]() Please Support My work by Making a Donation.įollow my step by step guide on How to SSH into a Synology NAS or you can use the Task Scheduler ( Example here) after that, try some basic command lines below. Note: DSM is a Linux operating system for Synology DiskStation and RackStation products. Let’s assume there’s no prior knowledge, but by the end I hope you’ll feel a bit more comfortable the next time you’re faced with some instructions that begin with “ Open a terminal” and log into your NAS. This little guide will teach you some basic command lines for your DSM 7, to become familiar with SSH. Often referred to as the shell, terminal, console, prompt or various other names, it can give the appearance of being complex and confusing to use. A Linux command line is a text interface to your Synology NAS. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |