imported>RobinGB |
imported>RobinGB |
Line 156: |
Line 156: |
| |} | | |} |
|
| |
|
| ===Show currently open ports and their status==
| | ==Show currently open ports and their status== |
| {| border="0" cellpadding="0" style="text-align:left" | | {| border="0" cellpadding="0" style="text-align:left" |
| |- | | |- |
Revision as of 23:06, 29 March 2009
File Management
To go to a directory
Make a directory
List contents of Directory
Check size of Directory and sub-directories
Find a file
Delete a file
Delete a directory and its content
- Note: Use this command with great care
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 a uncompressed tar (.tar) archive
To create a uncompressed (.tar) archive of all files directories and subdirectories in the current directory:
tar -cvf archivefilename.tar *
|
Create a compressed tar (.tgz) archive
To create a compressed (.tgz) archive of all files directories and subdirectories in the current directory:
tar -cvzf archivefilename.tgz *
|
Unpack .tar archives
For uncompressed .tar archives:
Unpack .tar.gz archives
For gzip compressed .tar.gz archives:
System Management
Reboot the Synology box
Shutdown the Synology box
Stop a process
Stop a program
Display most current processes running
Show all current processes
Show currently open ports and their status
Change Loged in user
If you are logged in as root you can open a new shell as if you just logged in as another user, substitute xxx with the user name. To return to root session use "exit"
Install a ipkg program package
Note: This assumes you have already installed ipkg itself.
Uninstall a ipkg program package
Restart Services
apache
/usr/syno/etc/rc.d/S97apache-user.sh restart
|
appletalk
/usr/syno/etc/rc.d/S81atalk.sh restart
|
cron
/usr/syno/etc/rc.d/S04crond.sh stop
/usr/syno/etc/rc.d/S04crond.sh start
|
ftp
/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/etc.defaults/rc.d/S95sshd.sh restart
|
System Information
Check system memory info
Check CPU Info
Check Interrupts in use
Check File Systems in use
Check Linux Version
Check RAID Devices
Check Enviroment Variables
Check what physical and logical disks/partitions you have
For multibay NASs and more info
cat /proc/diskstats
or for all NAS types
cat /proc/partitions
or for similar but different info
fdisk -l
|
Miscellaneous
Clear terminal screen