Basic commands to get around the Synology Box using the CLI: Difference between revisions
Jump to navigation
Jump to search
imported>Trolli m (added check devices) |
imported>Trolli m (unpack .tar archives) |
||
Line 66: | Line 66: | ||
|} | |} | ||
===Unpack .tar archives=== | |||
For uncompressed .tar archives: | |||
{| border="0" cellpadding="0" style="text-align:left" | |||
|- | |||
|<pre>tar xvf file.tar</pre> | |||
|- | |||
|} | |||
For gzip compressed .tar.gz archives: | |||
{| border="0" cellpadding="0" style="text-align:left" | |||
|- | |||
|<pre>tar xvzf file.tar.gz</pre> | |||
|- | |||
|} | |||
For bzip2 compressed .tar.bz2 archives: | |||
{| border="0" cellpadding="0" style="text-align:left" | |||
|- | |||
|<pre>tar xvIf file.tar.bz2</pre> | |||
|- | |||
|} | |||
==System Management== | ==System Management== |
Revision as of 21:44, 21 February 2008
File Management
To go to a directory
cd /directoryName |
Make a directory
mkdir /directoryName |
List Directory
dir |
Find a file
find / -name fileName |
Delete a file
rm fileName |
Delete a directory and its content
rm -r directoryName |
- 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 |
Unpack .tar archives
For uncompressed .tar archives:
tar xvf file.tar |
For gzip compressed .tar.gz archives:
tar xvzf file.tar.gz |
For bzip2 compressed .tar.bz2 archives:
tar xvIf file.tar.bz2 |
System Management
Reboot the Synology box
reboot |
Shutdown the Synology box
poweroff |
Stop a process
kill processID |
Stop a program
killall programName |
Display most current processes running
top |
Show all current processes
ps –ef |
Install program
ipkg install fileName |
Uninstall programs
ipkg remove file name |
System Information
Check system memory info
cat /proc/meminfo |
Check CPU Info
cat /proc/cpuinfo |
Check Interrupts in use
cat /proc/interrupts |
Check File Systems in use
cat /proc/filesystems |
Check Linux Version
cat /proc/version |
Check Devices
cat /proc/mdstat |
Miscellaneous
Clear terminal screen
clear |