diff options
author | Jovina | 2012-08-30 15:51:38 +0530 |
---|---|---|
committer | Jovina | 2012-08-30 15:51:38 +0530 |
commit | e80f5d5d8d9884917e6564735e0c367e740b0771 (patch) | |
tree | 599b920e12734d954def9ae5923b156ddca30274 | |
parent | 6ba17ef1059287ff950bac36228090c1bc43319c (diff) | |
download | sdes-stscripts-e80f5d5d8d9884917e6564735e0c367e740b0771.tar.gz sdes-stscripts-e80f5d5d8d9884917e6564735e0c367e740b0771.tar.bz2 sdes-stscripts-e80f5d5d8d9884917e6564735e0c367e740b0771.zip |
Modified based on the reviews.
-rw-r--r-- | ult/ult_10/script.rst | 38 | ||||
-rw-r--r-- | ult/ult_10/ult10.tex | 69 |
2 files changed, 80 insertions, 27 deletions
diff --git a/ult/ult_10/script.rst b/ult/ult_10/script.rst index 28aa50e..9d30374 100644 --- a/ult/ult_10/script.rst +++ b/ult/ult_10/script.rst @@ -85,7 +85,7 @@ folder and all it's subfolders, we say .. R7 -The ``find`` command also lists out the directory and sub-directory names +The ``find`` command also lists out the directory and sub-directory names. To list them, we say, .. L7 @@ -133,7 +133,7 @@ the exact byte location at which the first difference occurred. .. R11 -Let us now make a small change in one of quick.c file and run the ``cmp`` +Let us now make a small change in one of the quick.c file and run the ``cmp`` command again. .. L11 @@ -223,6 +223,10 @@ archive from all the files with the ``.txt`` extension. tar -cvzf newarchive.tar *.txt +.. L19 + +{{{ Show slide, Compressed Archives }}} + .. R19 You can also create and extract compressed archives using ``tar``. It @@ -236,15 +240,17 @@ compressions. | Compression | Option | +-------------+------------+ | gzip | ``-z`` | ++-------------+------------+ | bzip2 | ``-j`` | ++-------------+------------+ | lzma | ``--lzma`` | +-------------+------------+ -.. L19 + .. R20 -So, if we wished to create a gzip archive in the previous command, we +So, if we wish to create a gzip archive in the previous command, we change it to the following .. L20 @@ -266,7 +272,7 @@ of files called start-up files, when it starts up. When bash starts up as an interactive login shell, it reads the files ``/etc/profile``, ``~/.bash_profile``, ``~/.bash_login``, and -``~/.profile`` in that order. +``~/.profile`` in order. When an interactive shell that is not a login shell is started, bash reads and executes commands from ~/.bashrc. This can be prevented using the ``--norc`` @@ -289,9 +295,9 @@ variables in the ``.bashrc``, like changing environment variables etc. This brings us to the end of the end of this tutorial. In this tutorial, we have learnt to, - 1. Make use of the ``find`` command to find files in a directory hierarchy. - #. Find the differences between files with the same name, using the - ``cmp`` and ``diff`` commands. +1. Make use of the ``find`` command to find files in a directory hierarchy. +#. Find the differences between files with the same name, using the + ``cmp`` and ``diff`` commands. .. L23 @@ -299,8 +305,8 @@ In this tutorial, we have learnt to, .. R23 - #. Extract and create compressed archive's using the ``tar`` command. - #. Customize one's shell according to one's choice. +3. Extract and create compressed archive's using the ``tar`` command. +#. Customize one's shell according to one's choice. .. L24 @@ -310,10 +316,10 @@ In this tutorial, we have learnt to, Here are some self assessment questions for you to solve - 1. Look at the man page of ``find`` and state the options which - deal with symbolic links. +1. Look at the man page of ``find`` and state the options which + deal with symbolic links. - 2. How do you append tar files to an archive? +2. How do you append tar files to an archive? .. L25 @@ -324,10 +330,10 @@ Here are some self assessment questions for you to solve And the answers, 1. The -H, -L and -P options with the ``find`` command control - the treatment of symbolic links. + the treatment of symbolic links. - 2. To append tar files to an archive, we can use the ``tar`` command - either with the ``-A`` option or the ``-r`` option, as, +2. To append tar files to an archive, we can use the ``tar`` command + either with the ``-A`` option or the ``-r`` option, as, :: $ tar -Af <tar_file> <tar_file_to_be_added> diff --git a/ult/ult_10/ult10.tex b/ult/ult_10/ult10.tex index 9df5525..ed26833 100644 --- a/ult/ult_10/ult10.tex +++ b/ult/ult_10/ult10.tex @@ -105,7 +105,7 @@ Spoken tutorial on, \frametitle{\texttt{`find'}} \begin{itemize} \item `find' command helps to find files in a directory hierarchy - \item Offers a very complex feature set\\ For eg: search files by name, owner, date,etc. + \item Offers a very complex feature set\\ For Eg: search files by name, owner, date, etc. \item Look at the \texttt{man} page of `find' \end{itemize} \end{frame} @@ -128,7 +128,7 @@ Spoken tutorial on, \begin{frame}[fragile] \frametitle{\texttt{`diff'}} \begin{itemize} - \item We know the files are different, but want exact differences i.e. line by line + \item We know the files are different. However to see the exact differences.. \end{itemize} \hspace{30pt}\verb~$diff Desktop/programs/quick.c ~\\ \hspace{40pt}\verb~c-folder/quick.c~ @@ -149,7 +149,7 @@ Spoken tutorial on, \end{frame} \begin{frame}[fragile] -\frametitle{Extracting an archive} +\frametitle{Extracting an Archive} \verb~mkdir extract~ \verb~cp allfiles.tar extract/~ \verb~cd extract~\\ @@ -164,10 +164,10 @@ Spoken tutorial on, \end{frame} \begin{frame}[fragile] - \frametitle{Compressed archives} + \frametitle{Compressed Archives} \begin{itemize} \item \texttt{tar} - create \& extract compressed archives - \item Additional option to handle compressed archives + \item Additional options to handle compressed archives \begin{center} \begin{tabular}{|l|l|}\hline Compression & Option \\\hline @@ -181,15 +181,15 @@ Spoken tutorial on, \begin{frame} -\frametitle{Customizing your shell} +\frametitle{Customizing Shell} \begin{itemize} \item Bash reads \texttt{/etc/profile}, \texttt{\textasciitilde{}/.bash\_profile}, - \texttt{\textasciitilde{}/.bash\_login}, and - \texttt{\textasciitilde{}/.profile} in that order, when starting - up as a login shell. -\item \texttt{\textasciitilde{}/.bashrc} is read, when not a login - shell + \texttt{\textasciitilde{}/.bash\_login} and + \texttt{\textasciitilde{}/.profile} in order, when starting + as a login shell +\item Reads from \texttt{\textasciitilde{}/.bashrc}, when an interactive non-login + shell is started \end{itemize} \end{frame} @@ -244,6 +244,53 @@ OR \\ \end{enumerate} \end{frame} + +\begin{frame} +\frametitle{SDES \& FOSSEE} +\begin{center} +\begin{itemize} +\item \small{SDES}\\ +\small{\color{LimeGreen}Software Development techniques for Engineers and Scientists} \\ +\scriptsize An initiative by FOSSEE. \\ +\vspace{3pt} +\scriptsize For more information on SDES, please visit {\color{blue}\url{http://fossee.in/sdes}}\\ +\vspace{10pt} +\item \small{FOSSEE}\\ +\small {\color{LimeGreen}Free and Open-source Software for \\Science and Engineering Education} \\ +\scriptsize Based at IIT Bombay, Funded by MHRD.\\ +\vspace{3pt} +\scriptsize Part of National Mission on Education through ICT \\(NME-ICT) \\ +\end{itemize} +\end{center} +\end{frame} + +\begin{frame} +\frametitle{About the Spoken Tutorial Project} +\begin{itemize} +\item Watch the video available at {\color{blue}\url{http://spoken-tutorial.org /What\_is\_a\_Spoken\_Tutorial}} +\item It summarises the Spoken Tutorial project +\item If you do not have good bandwidth, you can download and watch it +\end{itemize} +\end{frame} + +\begin{frame} +\frametitle{Spoken Tutorial Workshops}The Spoken Tutorial Project Team +\begin{itemize} +\item Conducts workshops using spoken tutorials +\item Gives certificates to those who pass an online test +\item For more details, please write to \\ \hspace {0.5cm}{\color{blue}contact@spoken-tutorial.org} +\end{itemize} +\end{frame} + +\begin{frame} +\frametitle{Acknowledgements} +\begin{itemize} +\item Spoken Tutorial Project is a part of the Talk to a Teacher project +\item It is supported by the National Mission on Education through ICT, MHRD, Government of India +\item More information on this Mission is available at: \\{\color{blue}\url{http://spoken-tutorial.org/NMEICT-Intro}} +\end{itemize} +\end{frame} + \begin{frame} \begin{block}{} |