100%(1)1 out of 1 people found this document helpful
This preview shows page 1 - 4 out of 12 pages.
Required Software:Recent versions of the web browsers Chrome, Firefox and IE.An SSH client such as PuTTY. PuTTY is installed in the lab machine. External students can download the software from.WinSCP, which is available from the lab machines. External students can download it fromLinux operating systemApache web server, available and running on ceto on TCP port 80.Note: Mac users can use the Terminal app (from Applications/Utilities) to do remote logins (command ssh) and file transfers (command sftp) insteadof PuTTY and WinSCP.InstructionsThe following exercises are designed to get you familiar with Unix (Linux) systems. More information about these basic Unix commands is available from the relevant chapters in Rute. See the Required Readings.1.Archive and Extract Files withtarWe often need to archive files and extract files from an archive. The Unix command for this task istar. The commandtarstands for Tape ARchive, since in the old days archives were stored on magnetic tapes. The command has numerous options. Check its manual page withman tar.One commonly used option is to create an archive file:tar -cvf your_tar_filename.tar directory_nameto create a tar fileyour_tar_filename.tarfrom files in the directorydirectory_name. For example the following command line (note that symbol "%" denote the shell prompt):% tar -cvf ~/lab03.tar ~/ICT211/lab03
The above command would create tar filelab03.tarcontaining all files under directory~/ICT211/lab03. The tar file is stored under your home directory.Another commonly used option is to extract all files from tar file (often called tar ball):% mkdir tmp% cd tmp% tar -xvf ~/lab03.tarThe first command creates a new directorytmp. The second command setsyour current directory totmp. The last command extracts all files from the tar ball inside directorytmp.Try the above examples. Try to create archives from other directories and extract the tar files (in a different directory).