lab1

.pdf

School

Valdosta State University *

*We aren’t endorsed by this school

Course

3300

Subject

Computer Science

Date

May 16, 2024

Type

pdf

Pages

2

Uploaded by mnvandyke2003 on coursehero.com

CS3300 UNIX Programming Lab 1 Due January 14, 2021 at 6:15pm General Lab Guidelines 1. This lab is designed to let you practice how to solve a problem on UNIX/Linux and submit your work. Warning: you should type the commands listed below instead of copying them because some special characters might not be correctly copied over. 2. You should individually complete this lab either on your personal Linux machine, or the Gargamel server, or Google Cloud. a. On your personal Linux machine, you are all set and good to go. b. Mac users (me myself included): although all commands that we will use in this course are going to work, however, some of them might work in a slightly different way. So in order to make my life easier when it comes to grading students’ work, please either use Google Cloud or log into Gargamel . Run the following command to log into Gargamel : ssh yourusername@gargamel.valdosta.edu p 3822 Run the following command for transferring files between Gargamel and your local computer (detailed instructions to use sftp could be found here ): sftp -oPort=3822 yourusername@gargamel.valdosta.edu c. Use the Gargamel server through the following tools (both tools should have been installed on the lab computers). Log into the Gargamel server through PuTTY (port #: 3822). Transfer files between the Gargamel server and your local computer through FileZilla (port #: 3822). d. Use Google Cloud. All you need is a browser since both the Bash shell terminal and file transferring tool are built-in features of their services. 3. Lab work should be sent to me prior to the deadline in BlazeVIEW. Late submissions will not be accepted. Lab Problems 1. Create a working directory for this lab and go into it. mkdir lab1; cd lab1 Then practice with basic commands such as pwd and ls. 2. Under the current directory, issue the following command to create two dummy files with the .c extension. touch a.c b.c
3. Then look up the tar man page to find out how to archive the two .c files above into a tar ball named foo.tar Pay special attention to the three styles (i.e. traditional, UNIX, and GNU) of providing options and arguments to the command. Note: if needed, use the rm command to remove files. 4. Look up the tar man page to find out how to list the contents of an archive named foo.tar 5. Look up the tar man page to find out how to extract files from an archive named foo.tar Lab Instructions Once you’ve figured out answers to questions 3, 4, and 5 above, - remove all files under the current folder lab1/ - record your answers with pertaining UNIX commands and their outputs in a file named lab1.txt script lab1.txt - recreate a.c and b.c - show how to create an archive, list the contents of it, and extract files from it in three different styles Note: make sure you begin each task above with a comment line, e.g. # create a tar ball …. # list contents of a tar ball …. # extract files from a tar ball …. - type Ctrl-D to exit from recording Download lab1.txt to your local computer and submit it on BlazeVIEW.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help