2024-10-14 17:00:20 +02:00

53 lines
1.8 KiB
TeX
Executable File

\section{OS Info}
%\subsection{Whisker Menu}
\begin{justify}
Informationen "uber das installierte Betriebssystem kann man mit {\ttfamily lsb\verb|_|release} erhalten. Mit der Option -a wird eine vollst"andige Ausgabe gemacht.
\listBash
\begin{lstlisting}[captionpos=b, caption=OS Info]
uws@tux>lsb_release -a
LSB Version: n/a
Distributor ID: Manjaro Linux
Description: Manjaro Linux
Release: 19.0.2
Codename: Kyra
\end{lstlisting}
Ebenso kann man in der Datei /etc/os-release Informationen erhalten.
\listBash
\begin{lstlisting}[captionpos=b, caption=os-release]
uws@tux>cat /etc/os-release
NAME="Manjaro Linux"
ID=manjaro
ID_LIKE=arch
BUILD_ID=rolling
PRETTY_NAME="Manjaro Linux"
ANSI_COLOR="32;1;24;144;200"
HOME_URL="https://manjaro.org/"
DOCUMENTATION_URL="https://wiki.manjaro.org/"
SUPPORT_URL="https://manjaro.org/"
BUG_REPORT_URL="https://bugs.manjaro.org/"
LOGO=manjarolinux
\end{lstlisting}
In der nachfolgenden Tabelle sind die Optionen aufgelistet, wo man sich nur einen Eintrag anzeigen lassen kann. Diese Optionen können auch mit -s kombiniert werden, wie z.B. -sr.
\begin{longtable}[l]{p{4cm}p{12cm}}
\rowcolor{hellgrau}\multicolumn{1}{l}{\textbf{Option}} & \multicolumn{1}{l}{\textbf{Beschreibung}}\\
\hline
\hline
\endfirsthead
\multicolumn{2}{r}{{\bfseries continued from previous page}}\\
\rowcolor{hellgrau}\multicolumn{1}{l}{\textbf{Option}} & \multicolumn{1}{l}{\textbf{Beschreibung}}\\
\hline
\hline
\endhead
\multicolumn{2}{r}{{\bfseries continued on next page}}\\
\endfoot
\caption{Optionen}
\endlastfoot
-i, \verb|--id| & Ausgabe der ID\\
-d, \verb|--description| & Ausgabe der Beschreibung\\
-r, \verb|--release| & Release Nummer der Distributation\\
-c, \verb|--codename| & Ausgae des Code Namens\\
-a, \verb|--all| & Alles Ausgeben\\
-s, \verb|--short| & Kurze Ausgabe\\
\end{longtable}
\end{justify}