Editing Basic commands to get around the Synology Box using the CLI
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
==File Management== | ==File Management== | ||
===To go to a directory=== | ===To go to a directory=== | ||
{| border="0" cellpadding="0" style="text-align:left" | {| border="0" cellpadding="0" style="text-align:left" | ||
Line 24: | Line 16: | ||
|} | |} | ||
===List | ===List Directory=== | ||
{| border="0" cellpadding="0" style="text-align:left" | {| border="0" cellpadding="0" style="text-align:left" | ||
|- | |- | ||
|<pre>dir</pre> | |<pre>dir</pre> | ||
|- | |- | ||
|} | |} | ||
Line 118: | Line 96: | ||
|- | |- | ||
|} | |} | ||
For gzip compressed .tar.gz archives: | For gzip compressed .tar.gz archives: | ||
{| border="0" cellpadding="0" style="text-align:left" | {| border="0" cellpadding="0" style="text-align:left" | ||
Line 164: | Line 140: | ||
|} | |} | ||
=== | ===Show all current processes=== | ||
{| border="0" cellpadding="0" style="text-align:left" | {| border="0" cellpadding="0" style="text-align:left" | ||
|- | |- | ||
|<pre> | |<pre>ps –ef</pre> | ||
|- | |- | ||
|} | |} | ||
=== | ===Install program=== | ||
{| border="0" cellpadding="0" style="text-align:left" | {| border="0" cellpadding="0" style="text-align:left" | ||
|- | |- | ||
|<pre> | |<pre>ipkg install fileName</pre> | ||
|- | |- | ||
|} | |} | ||
=== | ===Uninstall programs=== | ||
{| border="0" cellpadding="0" style="text-align:left" | {| border="0" cellpadding="0" style="text-align:left" | ||
|- | |- | ||
|<pre> | |<pre>ipkg remove filename</pre> | ||
|- | |- | ||
|} | |} | ||
=== | ==Restart Services== | ||
===apache=== | |||
{| border="0" cellpadding="0" style="text-align:left" | {| border="0" cellpadding="0" style="text-align:left" | ||
|- | |- | ||
|<pre> | |<pre>/usr/syno/etc/rc.d/S97apache-user.sh restart</pre> | ||
|- | |- | ||
|} | |} | ||
=== | ===mysql=== | ||
{| border="0" cellpadding="0" style="text-align:left" | {| border="0" cellpadding="0" style="text-align:left" | ||
|- | |- | ||
|<pre> | |<pre>/usr/syno/etc/rc.d/S21mysql.sh restart</pre> | ||
|- | |- | ||
|} | |} | ||
=== | ===samba=== | ||
{| border="0" cellpadding="0" style="text-align:left" | {| border="0" cellpadding="0" style="text-align:left" | ||
|- | |- | ||
|<pre> | |<pre>/usr/syno/etc/rc.d/S80Samba.sh restart</pre> | ||
|- | |- | ||
|} | |} | ||
== | ===nfs=== | ||
{| border="0" cellpadding="0" style="text-align:left" | {| border="0" cellpadding="0" style="text-align:left" | ||
|- | |- | ||
|<pre>/usr/syno/etc/rc.d/ | |<pre>/usr/syno/etc/rc.d/S83nfsd.sh restart</pre> | ||
|- | |- | ||
|} | |} | ||
Line 250: | Line 209: | ||
|- | |- | ||
|<pre>/usr/syno/etc/rc.d/S99itunes.sh restart</pre> | |<pre>/usr/syno/etc/rc.d/S99itunes.sh restart</pre> | ||
|- | |- | ||
|} | |} | ||
Line 271: | Line 216: | ||
|- | |- | ||
|<pre>/usr/syno/etc/rc.d/S20pgsql.sh restart</pre> | |<pre>/usr/syno/etc/rc.d/S20pgsql.sh restart</pre> | ||
|- | |- | ||
|} | |} | ||
Line 315: | Line 253: | ||
|- | |- | ||
|<pre>cat /proc/filesystems</pre> | |<pre>cat /proc/filesystems</pre> | ||
|- | |- | ||
|} | |} | ||
Line 332: | Line 263: | ||
|} | |} | ||
===Check | ===Check Devices=== | ||
{| border="0" cellpadding="0" style="text-align:left" | {| border="0" cellpadding="0" style="text-align:left" | ||
|- | |- | ||
Line 343: | Line 274: | ||
|- | |- | ||
|<pre>env</pre> | |<pre>env</pre> | ||
|- | |- | ||
|} | |} | ||
Line 365: | Line 284: | ||
|- | |- | ||
|} | |} | ||