What is/are the commands available in UNIX for backup and restore? Group of answer choices backup and restore cpio and tar cpio and archive tar and archive
Added by Molly H.
Step 1
Backup commands are used to create copies of files and directories, while restore commands are used to retrieve those copies. Show more…
Show all steps
Your feedback will help us improve your experience
Akash M and 89 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
2. Enter the command to create a file named "fileA" in a directory named "/test". $ touch /test/fileA Score Try again 3. Enter the command to set "admin" as the user and "IT" as the group for a directory named "infrastructure" and all of its contents. $ chown admin:IT infrastructure -R
Akash M.
1. Treasure Hunt On the node you just swapped in, there are 5 JPEG files whose names contain the word "intro" in some form. Find all five files. Recall that UNIX is case sensitive. Make a directory in your home directory called top_secret. Move the 5 files into top_secret. Use a text editor to create a plain text file in top_secret called answers.txt that includes the original locations of the 5 files and a brief but unambiguous description (e.g., the title) of the image. To describe the image, you need to view the image. This involves using Secure Copy (scp or pscp on Windows) to transfer the files to your local machine by way of users.deterlab.net. See our introduction to ssh for more information. 2. Information Hunt It's important to be able to go online and find the answers to technical questions. In order to get you figuring out how to find answers, we'd like you to answer the following questions. Put the answers to these questions in your answers.txt file in the top_secret directory. 1 sentence: What goes in the /var directory on a UNIX computer? 1 sentence: What is the /dev directory for on a UNIX computer? On your experimental node, find out how large the disks are and how much space is free. Put this information in a separate file called top_secret/diskfree.txt. (See the infobox on command redirection for an easy way to do this.) On your experimental node, find out the "vendor id" of the experimental node's CPU model. Hint: there is a dynamic file on the system that includes this information. 3. Wrap it up! Collect your answers and the images you found and submit them to your instructor. Make sure your personal information (and any other information requested by your instructor) is included in answers.txt: Your name Your email address Your DETER username Make a gzipped tarball called username-intro.tar.gz containing the top_secret directory This should include all 5 images, diskfree.txt and your answers.txt Example: tar cvzf 1234567890-intro.tar.gz top_secret
Supreeta N.
Question 2: Manipulate directory structures in Unix/Linux (24 marks – 2 marks each) Use any OS that you set up from Question 1 (Puppy is allowed). Assume you are started at your home directory. Let your first name be XXX, so XXX = ‐‐Mark", if your name is Mark. XXX from now on refers to your first name (e.g. Mark). Perform a command that displays the absolute path of your home directory (your current location). 1. Create a new directory inside your home directory and name it ‐‐XXX" 2. Now navigate to the XXX directory and create directory XXX-COMP501WORK and change your current working directory to XXX-COMP501WORK. 3. Create three new subdirectories called Sec1, Sec2, and Sec3 in XXX-COMP501WORK directory. 4. Create a new file called ‐‐MyFave.txt" using the touch command and insert three lines into the file (you may use echo command and >> command). a. The first line should contain your name and ID number. b. The second line should be the first sentence of your favourite song. c. The third line should be the name of your favourite movie. And display the contents of the file ‐‐MyFave.txt" to the standard output screen (you may use cat command). 5. Display the number of words in the file ‐‐MyFave.txt" (you may use wc command). 6. Copy the file ‐‐MyFave.txt" to directory ‐‐Sec1" and rename it to ‐‐MyFaveCopy.txt". Make another copy of ‐‐MyFaveCopy.txt" just made in directory ‐‐Sec1" and name it ‐‐MyFaveCopyCopy.txt" (also store in the same directory ‐‐Sec1"). Then, display the contents of the directory ‐‐Sec1" using the long format. 7. Copy all the contents of directory ‐‐Sec1" to directory ‐‐Sec2" and display the contents of the directory ‐‐Sec2". 8. Assume that you are now at the current working directory XXX-COMP501WORK; create 15 new files (in directory XXX-COMP501WORK) named as follows: a. FICT.bak b. unix.txt c. thistest.bak d. wumbo.file e. wumbology.txt f. moreThings.woot g. FundalT.txt h. doodad.text i. coursetxt j. Test‐1‐2.xtxt k. Test‐2‐2.xtxt l. Test‐1‐1.bak m. Test‐1.txt n. File‐1.bat o. Assignment1.file And display a listing of all the files and directories in long format in the current working directory XXX-COMP501WORK. 9. Display a listing of all the files in the current working directory ending with letter 't' using one command, e.g. unix.txt or doodad.text. 10. Display a listing of all the files in the current working directory starting with 'T' and ending with 't' using one command, e.g. Test-1.txt.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD