Changes

Jump to: navigation, search
LINUX PRACTICE QUESTIONS
# Write a Linux command to display a listing of all hidden and non-hidden filenames in the directory called “final” using a relative-to-home pathname.
# Assuming you are in your home directory, write a Linux command to view the contents of the “.answers.txt” file using a relative pathname. You can assume this text file is very large and you want to see all of the contents.
# Write a Linux command to change to the “backup “directory using an absolute pathname.<br>Write a command to verify that you changed to that directory:<br><br># XAssuming that you remain in the “backup” directory, write a Linux command to copy the “questions.txt file” to your current directory. You are required to only use relative pathnames.# XAssuming that you remain in the “backup” directory, write a Linux command to delete the “questions.txt” file that is in your “backup” directory. Use a relative-to-home pathname.# XAssuming that you are currently located in your “backup” directory, write a Linux command to safely remove the directory “uli101” and all of its contents. Use an absolute pathname.<br>Will your command you wrote in question 8 work if you run it? (yes/no). Why?<br><br># Assuming you are still located in the “backup” directory. Write a Linux command using a relative-to-home pathname to remove all files that end with the extension “.txt” in the “final” directory.# Write a Linux command using an absolute pathname to list all files that consist of just 4 consecutive characters that are contained in your home directory.# Assuming you are in your home directory. Write a Linux command using a relative pathname to view the contents of regular files whose file names only consist of 5 consecutive numbers.# Write a Linux command to display the following message:<br>*** Hello ***<br><br># Write a Linux command to display the following message (including quotation marks):<br>“This is my message”<br><br>    
13,420
edits

Navigation menu