715
edits
Changes
no edit summary
# Complete the '''LINUX PRACTICE QUESTIONS''' to get additional practice in preparation for tests and quizzes.<br><br>
= LINUX PRACTICE QUESTIONS= The purpose of this section is to obtain '''extra practice''' to help with '''quizzes''', your '''midterm''', and your '''final exam'''. Here is a link to the [ https://matrix.senecacollege.ca/~osl640/questions/osl640_week2_practice.docx MS Word Document of ALL of the questions ] displayed below but with extra room to answer on the document tosimulate a quiz: Your instructor may take-up these questions during class. It is up to the student to attend classes in order to obtain the answers to the following questions. Your instructor will NOT provide these answers in any other form (eg. e-mail, etc). '''Review Questions:''' For each of the following questions, use a pathname starting from the '''root''' directory (i.e. “/”).<br><br> [[Image:tree-diagram.png|right|350px|thumb|]]# Write a single Linux command to create the directory structure starting from your home directory from the diagram displayed on the right. # Write a Linux command to display a detailed listing of '''history''' directory.<br>How would this command differ if you wanted to also view hidden files as well?<br># Write a Linux command to change to the '''project''' directory.<br>What command would you issue to return to your home directory?<br># Write a Linux command to copy the '''project''' directory and its contents to the '''history''' directory.# Write a Linux command to move the directory called '''directories''' to the '''history''' directory.# Write a Linux command to remove both directories named '''1''' and '''2'''.# Write a Linux command to remove the '''concepts''' directory and its contents.# Write a Linux command to remove the '''concepts''' directory and prompt the user if they want to remove this directory’s contents.<br><br># Write a single Linux command to create the following empty files in the concepts directory:<br>'''myfile.txt'''<br>'''yourfile.txt'''<br>'''thefile.txt'''<br># Write a Linux command to view the contents of the myfile.txt text file to prove it is empty.<br>What is the difference between the commands: '''cat''', '''more''' and '''less'''?# Write a Linux command to sort the contents of a file called '''practice/customers.txt'''# Write a Linux command to display the first 4 lines of a file called '''practice/customers.txt'''# Write a Linux command to display the last line of a file called '''practice/customers.txt'''# Write a Linux command to match a line containing the pattern '''Linux''' in a file called '''practice/customers.txt'''# Write a Linux command to display unique occurrences of consecutive lines in a file called '''practice/customers.txt'''# Create a '''table''' listing each Linux command, useful options that are displayed near the top of this tutorial labelled: '''Tutorial Reference Material''' [[Category:OSL640]]