13,420
edits
Changes
→LINUX PRACTICE QUESTIONS
[[Image:directory-structure-11.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 called 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.# 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><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 '''uli101/customers.txt'''# Write a Linux command to display the first 4 lines of a file called '''uli101/customers.txt'''# Write a Linux command to display the last line of a file called '''uli101/customers.txt'''# Write a Linux command to match a line containing the pattern '''Linux ''' in a file called '''uli101/customers.txt'''# Write a Linux command to display unique occurrences of consecutive lines in a file called '''uli101/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:ULI101]]