OPS Practice Test done By Aditya Tambe
docx
keyboard_arrow_up
School
Seneca College *
*We aren’t endorsed by this school
Course
102
Subject
Information Systems
Date
Dec 6, 2023
Type
docx
Pages
5
Uploaded by DrQuail3570
Part I. Create the directories and files in Windows and Linux using the image below. Provide the screenshots.
a.
If current working directory is Q1, how can you move to Quizzes directory with one single command?
By using ‘
cd ../../Quizzes’
we can do the above mentioned move.
b.
Suppose your current working directory is Q2. Which of the following is a correct Linux command relative to home to change directory to Q1? Using cd ~/Quizzes/Q1 we can execute the above command and can move in the Q1 directory as I have uploaded a screenshot of it for better understanding.
c.
Suppose your current working directory is Summer. Which of the following is a correct Linux command to change your current working directory to Quizzes?
I have used the cd ../../../Quizzes command to execute answer the question I tried cd ../Quizzes but it did not worked so I thought maybe ../ adding this would work it did but not was in the exact directory so I tried ../ again and this time I was in the write directory.
d.
Provide the Windows command to access file13.pdf (use absolute path)
I use the cd C:\Users\ADI\Quizzes\Q2 to go to the specified location of file and then I tried To open the file by giving another cmd which was start file13.pdf and it opened the pdf but since nothing was in the pdf, my pdf views gave an error and also for better understanding I attached a screenshot for it.
e.
Provide the command to include the string “This is line 1” in F3.txt, provide the screenshots.
f.
In windows CLI provide here the screenshots of executing a move command to move file13.pdf to Q1
By executing the commands, I was able to successfully moved the file13.pdf from Q2 to Q1 folder.
Part II. c.
Create a file with the following contents:
Anarosa Deleon
Amina Rita
Amana sy
Andrew Go
Susmita Shien
Frank hill
Victoria court
Rachel Go
Anne Murray
Bobby tan
a.
Execute a grep command to display the names with Go lastname. Provide the screenshots.
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
b.
Execute a sort to command to sort the names.
c.
Execute a grep command to display the names with A or a. Provide the screenshots.
Part III. Explain the following commands.
a.
PAD: it is not a linux command since in my ubuntu it said command not found. I am attaching a screenshot for better understanding.
b.
PWD: displays in which directory you are in c.
COPY: This command doesn't exist in Linux. cp is present in linux for copying things
d.
CAT: to view the content inside the file
e.
TOP: To check and see how many of the background services are working f.
KILL: which is used to terminate the process g.
COPY CON: This command overwrites the data and erases the existing data which is present in the file.
h.
MKDIR: To create a new directory