Question: Kindly just attach a screen shot how to do the 10) part how to copy it to lab2 directory. kindly attach a screenshot. Thankyou CSC3320

Kindly just attach a screen shot how to do the 10) part how to copy it to lab2 directory. kindly attach a screenshot. Thankyou
Kindly just attach a screen shot how to do the 10) part
how to copy it to lab2 directory. kindly attach a screenshot. Thankyou
CSC3320 System Level Programming Lab Assignment 2 (In-Lab) Purpose: Leam use the
man utility to get help on using other Unix utilities. Practices on

CSC3320 System Level Programming Lab Assignment 2 (In-Lab) Purpose: Leam use the man utility to get help on using other Unix utilities. Practices on the basic utilities for managing files and directories in a terminal. Note: Please follow the instructions below step by step, and finish the required task before the lab session ends. You can upload the screenshots later (with 10% penalty) but no later than 11:59 pm on the date you are taking this lab session. Please add the Program Challenge number and your name at the top of your file sheet. Before you start, please connect to snowball by typing the following command and press "Enter". salk CampusIDesnowball.cs.gep. edu Part A: Try to use the man utility. The man utility can provide the on-line copies of the original UNIX documentation for the other utilities. In the manual page, the first part is the functionality of a utility, the second part is the synopsis, the third part is the description and lists different features of a utility with different options. Then please follow the steps to learn some options provided by cat. (1) Check the manual page cat by typing the command below and press "Enter". man cat (2) The terminal only displays one window of the manual page. You can scan through the whole manual page by press "f" or SPACE to forward one window, and "b" to backward one window. Or you can press "h" to find out more commands to scan through the manual page. (3) Check the description for option -n. You may find the description as below: - n, , number number all output tines (4) Check the description for option -s. You may find the descption as below: -s, --squeeze-blank suppress repeated enpty output lines (5) Quit the manual page by press " q " Part B: Unix basic commands on managing the files and directories. (1) Make sure that you have been connected to the snowball server successfully. Then go to your home directory by typing the following command and press "Enter". cd (2) Display current working directory by typing the following command and press "Enter". Rwad - Question A): What is the current working directory? Please write down the absolute path to it. Current working directory is abutt 4. (3) List the content in current working directory by typing the following command and press "Enter". 1s (4) Create a new directory named as "csc3320" under your home directory by typing the following command and press "Enter". mkkdix csc3320 (5) Repeat step (3). - Question B): Can you find some difference in the output compared to the output from step (3)? If yes, please describe what the difference is. - In the 3rd step there were only 12 directories that were listed using ls command while after creating a new directory using the mkdir command and the using ls command now we have 13 directories. (6) Go to the new created directory "csc3320" by typing the following command and press "Enter". cdcsc3320 (7) Display current working directory. - Question C): What command should be typed? Command pud should be used to show current working directory. (8) Create a new directory named as "lab2" in current working directory. - Question D): What command should be typed? Command mkdir lab2 should be used to create a new directory in in current abutt4. (9) Go to the new created directory "lab2". - Question E): What command should be typed? To go to the new created directory command cd lab2 can be used. (10) Copy "hello.java" from the instructor's public folder to your lab2 directory by typing the following command and press "Enter". cp /home/xyang22/public/hello_world.java Then please use Is to check the existence of "hello_world.java" in your current working directory. (11) Create a new file named as "myLab2.txt" and put your own name in this file by typing the command below: cat > mylab2, txt Enter> My name is FirstName LastName Ctr1-D> Nate: means press the Enter key; means hold Crrl and press D - Question F): There is a special character ">" between "cat" and "myLab1.txt". What does this special character do? And why we need to press "Ctrl-D" at the end of input? (12) Display the content in "myLab2.txt" with line numbers by typing the command below and press "Enter". cat n mylab2. txt - Question G): Attach a screenshot of the output. (13) Go to your home directory using the absolute path by typing the command below and press "Enter". cd Note: Please replace the blue part with the answer from step (2) - Question H): Then issue the command pwd again. And attach a screenshot of the output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!