Question
3. More with files and directories Create a directory called ITEC274 in in your home (~) directory a. What command(s) did you use to create
3. More with files and directories Create a directory called ITEC274 in in your home (~) directory a. What command(s) did you use to create the directory? Create a subdirectory called My274Files in the ITEC274 directory created above. b. What command(s) did you use to create the directory? Copy the file mytextfile.txt (created earlier) to the ~/ITEC274/My274Files directory (use same file name) c. What command(s) did you use to copy mytextfile.txt to ITEC274/My274Files? Use a text editor (in Accessories or another such vim) to create a text file containing the following 2 lines of text: This is line 1 of my text file called mytextfileA.txt This is line 2 of my text file called mytextfileA.txt Name the file mytextfileA.txt and be sure to put it in the ~/ITEC274/My274Files directory (created above) Use a text editor (in Accessories or another such vim) to create another text file containing the following 3 lines of text: This is line 1 of my text file called mytextfileB.txt This is line 2 of my text file called mytextfileB.txt This is line 3 of my text file called mytextfileB.txt Name the file mytextfileB.txt and be sure to put it in the ~/ITEC274/My274Files directory (created above) Be sure to close the file(s) you just created (and exit from the editor) d. Show the contents (files and contents) of your ~/ITEC274/My274Files directory [Paste a screen shot showing the results] e. What size (in bytes) is your mytextfileA.txt and mytextfileB.txt? f. What is the date/time stamp of your mytextfile.txt? g. Who is the owner and what are the permissions for your mytextfile.txt? Display the contents of your mytextfile.txt file (created above) h. What command(s) did you use to display contents of mytextfile.txt? i. Show the results of displaying the contents of mytextfile.txt [Paste a screen shot showing the results] Concatenate mytextileA.txt & mytextfileB.txt and redirect output to a new file called mytextfileC.txt j. What command(s) did you use to concatenate and create the new file? k. Show the results of displaying the contents of mytextfileC.txt [Paste a screen shot showing the results] Create a subdirectory called My274Files2 in the ITEC274 directory l. What command(s) did you use to create the directory? Copy the all files from your My274Files directory to the My274Files2 directory (use wildcards) m. What command(s) did you use to copy the files? n. Show the results of displaying the contents of your My274Files2 directory [Paste a screen shot showing the results] Rename the file ITEC274/My274Files/mytextfile.txt to mytextfile (without .txt) o. What command(s) did you use to rename mytextfile.txt to mytextfile? Delete the file ITEC274/My274Files/mytextfileA.txt p. What command(s) did you use to delete mytextfileA.txt? q. Show the results of displaying the contents of your My274Files directory now [Paste a screen shot showing the results] Remove the My274Files directory r. What command(s) did you use to remove the directory/subdirectories?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started