\section{Filesystem Usage}

\begin{frame}
   {df: Filesystem Usage}

   \begin{itemize}
      \item \textbf{df} (\textbf{d}isk \textbf{f}ree) is
      used to look at filesystem usage
      \item Display filesystem usage (in K bytes-default):
      \begin{cmd}
$ df
      \end{cmd}
      \item Display filesystem usage in \textbf{human-readable}
      format:
      \begin{cmd}
$ df -h
      \end{cmd}
      \item Display filesystem type format:
      \begin{cmd}
$ df -T
      \end{cmd}
      \item Show inode information:
      \begin{cmd}
$ df -i
      \end{cmd}
   \end{itemize}

\end{frame}

\cprotect\note{
   \begin{figure}[H]
      \includegraphics[width=7in]{IMAGES/dfh}
      \caption{Using df}
   \end{figure}

}

\section{Disk Usage}
\begin{frame}
   {du: Disk Usage}

   \begin{itemize}
      \item \texttt{du} (\textbf{d}isk \textbf{usage}) is
      used to look at both disk capacity and usage
      \item Display disk usage for the current directory:

      \begin{cmd}
$ du
      \end{cmd}
      \item List all files, not just directories:
      \begin{cmd}
$ du -a
      \end{cmd}
      \item List in human-readable format:
      \begin{cmd}
$ du -h
      \end{cmd}
      \item Display disk usage for a specific directory:
      \begin{cmd}
$ du -h somedir
      \end{cmd}
   \end{itemize}

\end{frame}

\cprotect\note{

   Try the following command:
   \begin{cmd}
$ find . -maxdepth 1 -type d -exec du -shx {} \; | sort -hr
  \end{cmd}

   \begin{figure}[H]
      \includegraphics[width=6.0in]{IMAGES/du}
      \caption{Using du}
   \end{figure}

}


