128 lines
4.2 KiB
TeX
128 lines
4.2 KiB
TeX
\section{Color ls}
|
|
\begin{justify}
|
|
Die Ausgabe von {\ttfamily ls} kann Farbig ausgegeben werden. Hierzu wird der Parameter {\ttfamily \verb|--|color} an dem Befehl angehangen. Die Ausgabe der Farben wird mit der Variable {\ttfamily \verb|$LS_|COLORS} gesteuert. Möchte man die Farben anpassen, so wird diese Variable in der Bash-Konfigurations Datei definiert und exportiert.
|
|
\listBash
|
|
\begin{lstlisting}[captionpos=b, caption=Color ls]
|
|
uws@tux>dircolors -b >> .bashrc
|
|
\end{lstlisting}
|
|
Der Aufbau für die Definition der Farbausgabe ist: key=Option;Vordergrund;Hintergrund \\
|
|
Eine Ausflistung der Keys sind in der nachfolgenden Tabelle aufgelistet.
|
|
\begin{longtable}[l]{p{3cm}p{13cm}}
|
|
\rowcolor{hellgrau}\multicolumn{1}{l}{\textbf{Key}} & \multicolumn {1}{l}{\textbf{Beschreibung}} \\
|
|
\hline
|
|
\hline
|
|
\endfirsthead
|
|
%\multicolumn{2}{c}{{\bfseries \tablename \thetable{} continued from previous page.}} \\
|
|
\multicolumn{2}{r}{{\bfseries continued from previous page.}} \\
|
|
\rowcolor{hellgrau}\multicolumn{1}{l}{\textbf{Key}} & \multicolumn {1}{l}{\textbf{Beschreibung}} \\
|
|
\hline
|
|
\hline
|
|
\endhead
|
|
%\multicolumn{2}{r}{{\bfseries \tablename \thetable{} Continued on next page}} \\
|
|
\multicolumn{2}{r}{{\bfseries Continued on next page}} \\
|
|
\endfoot
|
|
\caption{Liste Key} \\
|
|
\endlastfoot
|
|
no & Global default \\
|
|
fi & Normal file \\
|
|
di & Directory \\
|
|
ln & Symbolic link \\
|
|
bd & Block device \\
|
|
cd & Character device \\
|
|
or & Symbolic link to a nonexistent file \\
|
|
ex & Executable file \\
|
|
*.extension & Example, *.mp3
|
|
\end{longtable}
|
|
Hier die Liste der Optionen:
|
|
\begin{longtable}[l]{p{3cm}p{13cm}}
|
|
\rowcolor{hellgrau}\multicolumn{1}{l}{\textbf{No}} & \multicolumn {1}{l}{\textbf{Beschreibung}} \\
|
|
\hline
|
|
\hline
|
|
\endfirsthead
|
|
%\multicolumn{2}{c}{{\bfseries \tablename \thetable{} continued from previous page.}} \\
|
|
\multicolumn{2}{r}{{\bfseries continued from previous page.}} \\
|
|
\rowcolor{hellgrau}\multicolumn{1}{l}{\textbf{No}} & \multicolumn {1}{l}{\textbf{Beschreibung}} \\
|
|
\hline
|
|
\hline
|
|
\endhead
|
|
%\multicolumn{2}{r}{{\bfseries \tablename \thetable{} Continued on next page}} \\
|
|
\multicolumn{2}{r}{{\bfseries Continued on next page}} \\
|
|
\endfoot
|
|
\caption{Liste Option} \\
|
|
\endlastfoot
|
|
0 & default color \\
|
|
1 & bold \\
|
|
4 & underline \\
|
|
5 & flashing text \\
|
|
7 & reverse field \\
|
|
8 & concealed (invisible) \\
|
|
\end{longtable}
|
|
In der nachfolgende Tabelle werden die Farben für den Vordergrund ausgelistet.
|
|
\begin{longtable}[l]{p{3cm}p{13cm}}
|
|
\rowcolor{hellgrau}\multicolumn{1}{l}{\textbf{No}} & \multicolumn {1}{l}{\textbf{Farbe}} \\
|
|
\hline
|
|
\hline
|
|
\endfirsthead
|
|
%\multicolumn{2}{c}{{\bfseries \tablename \thetable{} continued from previous page.}} \\
|
|
\multicolumn{2}{r}{{\bfseries continued from previous page.}} \\
|
|
\rowcolor{hellgrau}\multicolumn{1}{l}{\textbf{No}} & \multicolumn {1}{l}{\textbf{Farbe}} \\
|
|
\hline
|
|
\hline
|
|
\endhead
|
|
%\multicolumn{2}{r}{{\bfseries \tablename \thetable{} Continued on next page}} \\
|
|
\multicolumn{2}{r}{{\bfseries Continued on next page}} \\
|
|
\endfoot
|
|
\caption{Liste Farbe Vordergrund} \\
|
|
\endlastfoot
|
|
31 & red \\
|
|
32 & green \\
|
|
33 & orange \\
|
|
34 & blue \\
|
|
35 & purple \\
|
|
36 & cyan \\
|
|
37 & grey \\
|
|
90 & dark grey \\
|
|
91 & light red \\
|
|
92 & light green \\
|
|
93 & yellow \\
|
|
94 & light blue \\
|
|
95 & light purple \\
|
|
96 & turqoise \\
|
|
97 & white
|
|
\end{longtable}
|
|
Die Farben für den Hintergrund sind folgende:
|
|
\begin{longtable}[l]{p{3cm}p{13cm}}
|
|
\rowcolor{hellgrau}\multicolumn{1}{l}{\textbf{No}} & \multicolumn {1}{l}{\textbf{Farbe}} \\
|
|
\hline
|
|
\hline
|
|
\endfirsthead
|
|
%\multicolumn{2}{c}{{\bfseries \tablename \thetable{} continued from previous page.}} \\
|
|
\multicolumn{2}{r}{{\bfseries continued from previous page.}} \\
|
|
\rowcolor{hellgrau}\multicolumn{1}{l}{\textbf{No}} & \multicolumn {1}{l}{\textbf{Farbe}} \\
|
|
\hline
|
|
\hline
|
|
\endhead
|
|
%\multicolumn{2}{r}{{\bfseries \tablename \thetable{} Continued on next page}} \\
|
|
\multicolumn{2}{r}{{\bfseries Continued on next page}} \\
|
|
\endfoot
|
|
\caption{Liste Farbe Hintergrund} \\
|
|
\endlastfoot
|
|
40 & black \\
|
|
41 & red \\
|
|
42 & green \\
|
|
43 & orange \\
|
|
44 & blue \\
|
|
45 & purple \\
|
|
46 & cyan \\
|
|
47 & grey \\
|
|
100 & dark grey \\
|
|
101 & light red \\
|
|
102 & light green \\
|
|
103 & yellow \\
|
|
104 & light blue \\
|
|
105 & light purple \\
|
|
106 & turquoise \\
|
|
107 & white \\
|
|
\end{longtable}
|
|
\end{justify}
|