In many cases you will likely get better information by simply looking closely at the output you got when trying out the command in the other window. What command could you use to list the files in your fileAsst directory, using an absolute path to the fileAsst directory as part of your command? What command could you use to list the text files (only) in your fileAsst directory, using a relative path to the fileAsstdirectory as part of your command? The /usr/include directory contains a large number of C/C++ header files (all ending with a .h extension). What command would you give to list the names of the header files in that directory that include the string “it” as part of the name?
In many cases you will likely get better information by simply looking closely at the output you got when trying out the command in the other window.
-
What command could you use to list the files in your fileAsst directory, using an absolute path to the fileAsst directory as part of your command?
-
What command could you use to list the text files (only) in your fileAsst directory, using a relative path to the fileAsstdirectory as part of your command?
-
The /usr/include directory contains a large number of C/C++ header files (all ending with a .h extension). What command would you give to list the names of the header files in that directory that include the string “it” as part of the name?
-
One of the files you should now have in your fileAsst directory is TweedleDee/hatter.txt. Suppose that you wished to copy that file into your current (commandsAsst) directory. What command would you give to make that copy?
For this, and for the following questions,
- You will want to delete all files already in your commandsAsst directory before trying to check your answer to this question. Otherwise you will not be able to easily tell what files were added by your command and what were left over from earlier attempts.
- For the same reason, when you submit your suggested answer to the grading script, it will delete any files in your commandsAsst directory before trying out your command.
-
Suppose that you wished to copy all of the text files from your fileAsst directory into your current directory (without typing out the name of each individual file). What command would you give to make that copy?
-
Suppose that you wished to copy all of the text files from your fileAsst directory and all of the files from your fileAsst/TweedleDee directory into your current directory (without typing out the name of each individual file). What command would you give to make that copy?
Trending now
This is a popular solution!
Step by step
Solved in 2 steps