Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions homework/homework_2.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Most Unix implementations include a large number of powerful tools and utilities
\item Learn more about tools for downloading files from external servers (e.g., \texttt{scp}, \texttt{ftp}, \texttt{sftp}, \texttt{rsync}), and for to downloading data from webpages (e.g., \texttt{curl}, \texttt{wget}, \texttt{mget}). Use an appropriate function to download the \texttt{homework2.tar.gz} from the homework folder on course GitHub page. Give the code you used to download these data.({\bf Hint:} To download the \texttt{homework2.tar.gz} from GitHub, control/right click on the "View raw" link and copy the location (see image). If you use the URL in the address bar it downloads the .html for the website. Note this picture might be from a different homework and class, but the action is still the same.)
\begin{center}\includegraphics[width=0.7\textwidth]{homework2_tarball}\end{center}
\item \label{tar} Learn about the \texttt{tar} function. What is a tarball? How is it different from a .zip file? Download the \texttt{homework2.tar.gz} file from GitHub and unzip the contents, and report that code you used. How effective is the compression for this tarball? After you complete this homework, add your homework files directory and generate a gzipped tarball for all the Homework 1 data plus your answers. Make sure to provide the code you used to generate the tarball for your homework.
\item Research the \texttt{chmod} function. Give short explanation of what this function does, its syntax, and examples when you would use it. Practice \texttt{chmod} by changing the permissions on the `TB\_microbiome\_data.txt' file in the Homework 1 directory from the previous questions. Give examples of the code you used and show that the code works (e.g., use \texttt{ls -l}).
\item Research the \texttt{chmod} function. Give short explanation of what this function does, its syntax, and examples when you would use it. Practice \texttt{chmod} by changing the permissions on the `TB\_microbiome\_data.txt' file in the Homework 2 directory from the previous questions. Give examples of the code you used and show that the code works (e.g., use \texttt{ls -l}).
\item The \texttt{grep} function is an extremely powerful tool for search (potentially large) files for patterns and strings. One advantage is that you don't have to open the file to conduct a search! Using the internet, find a short tutorial on the basics of \texttt{grep}, and give the code and results for the following tasks:
\begin{enumerate}
\item How many FC receptor genes are present in the `TB\_nanostring.txt' file? (hint: search for `FC' in the file)
Expand All @@ -39,4 +39,4 @@ Most Unix implementations include a large number of powerful tools and utilities
\end{enumerate}