diff options
Diffstat (limited to 'src/admin')
-rw-r--r-- | src/admin/11_quickref.xml | 110 |
1 files changed, 107 insertions, 3 deletions
diff --git a/src/admin/11_quickref.xml b/src/admin/11_quickref.xml index 50fc735..eab36e9 100644 --- a/src/admin/11_quickref.xml +++ b/src/admin/11_quickref.xml @@ -1,9 +1,113 @@ <?xml version="1.0" encoding="utf-8"?> <chapter label="11" id="quickref"> <title>Quick References</title> - <para></para> + <highlights><para>In this chapter, we will lay out common tasks and how to perform them using Adélie Linux.</para></highlights> <section> - <title></title> - <para></para> + <title>Package management</title> + <table> + <title>Package management command quick-reference</title> + <tgroup cols="2" align="left" colsep="1" rowsep="1"> + <thead> + <row> + <entry>Task</entry> + <entry>Command</entry> + </row> + </thead> + <tbody> + <row> + <entry>Install a package</entry> + <entry><command>apk add <replaceable>PACKAGE</replaceable></command></entry> + </row> + <row> + <entry>Uninstall a package</entry> + <entry><command>apk del <replaceable>PACKAGE</replaceable></command></entry> + </row> + <row> + <entry>Search for a package</entry> + <entry><command>apk search <replaceable>name</replaceable></command></entry> + </row> + <row> + <entry>Reinstall a package</entry> + <entry><command>apk fix <replaceable>PACKAGE</replaceable></command></entry> + </row> + <row> + <entry>Audit system files for changes</entry> + <entry><command>apk audit</command></entry> + </row> + </tbody> + </tgroup> + </table> + </section> + <section> + <title>Service management</title> + <table> + <title>Service management command quick-reference</title> + <tgroup cols="2" align="left" colsep="1" rowsep="1"> + <thead> + <row> + <entry>Task</entry> + <entry>Command</entry> + </row> + </thead> + <tbody> + <row> + <entry>Enable a service (start on boot)</entry> + <entry><command>rc-update add <replaceable>SERVICE</replaceable> default</command></entry> + </row> + <row> + <entry>Disable a service (do not start on boot)</entry> + <entry><command>rc-update del <replaceable>SERVICE</replaceable></command></entry> + </row> + <row> + <entry>Start a service</entry> + <entry><command>service <replaceable>SERVICE</replaceable> start</command></entry> + </row> + <row> + <entry>Restart a service</entry> + <entry><command>service <replaceable>SERVICE</replaceable> restart</command></entry> + </row> + <row> + <entry>Stop a service</entry> + <entry><command>service <replaceable>SERVICE</replaceable> stop</command></entry> + </row> + <row> + <entry>Show all enabled services</entry> + <entry><command>rc-status</command></entry> + </row> + <row> + <entry>Show all available services</entry> + <entry><command>ls /etc/init.d</command></entry> + </row> + </tbody> + </tgroup> + </table> + </section> + <section> + <title>Networking</title> + <table> + <title>Networking command quick-reference</title> + <tgroup cols="2" align="left" colsep="1" rowsep="1"> + <thead> + <row> + <entry>Task</entry> + <entry>Command</entry> + </row> + </thead> + <tbody> + <row> + <entry>List all interfaces</entry> + <entry><command>ip link</command></entry> + </row> + <row> + <entry>Enable an interface at startup</entry> + <entry><para><command>ln -s /etc/init.d/net.lo /etc/init.d/net.<replaceable>IFACE</replaceable></command></para><command>rc-update add net.<replaceable>IFACE</replaceable> default</command></entry> + </row> + <row> + <entry>Disable an interface at startup</entry> + <entry><command>rc-update del net.<replaceable>IFACE</replaceable></command><para><command>rm /etc/init.d/net.<replaceable>IFACE</replaceable></command></para></entry> + </row> + </tbody> + </tgroup> + </table> </section> </chapter> |