Question

Question 4 0/1 point (graded) Which of the following statements does NOT correctly describe the utility...

Question 4

0/1 point (graded)

Which of the following statements does NOT correctly describe the utility of a command in Unix?

The q key exits the viewer when you use less to view a file.

The command ls lists files in the current directory.

The command mkdir makes a new directory and moves into it.

The mv command can move a file and change the name of a file. incorrect

Answer

Incorrect:

Try again. The mv command can move a file and it can be used to rename a file.

You have used 1 of 2 attempts Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.

Question 5

0/1 point (graded)

The following is the full path to a homework assignment file called "assignment.txt": /Users/student/Documents/projects/homeworks/assignment.txt.

Which line of code will allow you to move the assignment.txt file from the “homeworks” directory into the parent directory “projects”?

mv assignment.txt

mv assignment.txt .

mv assignment.txt ..

mv assignment.txt /projects incorrect

Answer

Incorrect:

Try again. This code does not provide enough information about where to move the file. You need to specify a relative or full path to the location where you want to move the file to.

You have used 1 of 2 attempts Some problems have options such as save, reset, hints, or show answer. These options follow the Submit button.

Question 6

1/1 point (graded)

You want to move a file called assignment.txt into your projects directory. However, there is already a file called "assignment.txt" in the projects directory.

What happens when you execute the “move” (mv) command to move the file into the new directory?

The moved "assignment.txt" file replaces the old "assignment.txt" file that was in the "projects" directory with no warning. correct

An error message warns you that you are about to overwrite an existing file and asks if you want to proceed.

An error message tells you that a file already exists with that name and asks you to rename the new file.

The moved “assignment.txt” file is automatically renamed “assignment.txt (copy)” after it is moved into the “projects” directory.

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
Question 4 0/1 point (graded) Which of the following statements does NOT correctly describe the utility...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Question 11 1 point possible (graded) The commands in the pipeline $ cat result.txt | grep...

    Question 11 1 point possible (graded) The commands in the pipeline $ cat result.txt | grep "Harvard edX" | tee file2.txt | wc -l perform which of the following actions? From result.txt, select lines containing “Harvard edX”, store them into file2.txt, and print all unique lines from result.txt. From result.txt, select lines containing “Harvard edX”, and store them into file2.txt. From result.txt, select lines containing “Harvard edX”, store them into file2.txt, and print the total number of lines which were...

  • Can you comment notes along with the code so I can follow along and understand what is being written?? Thanks in advance...

    Can you comment notes along with the code so I can follow along and understand what is being written?? Thanks in advance! Let's say we're in a directory and we want to rename every file ending in·c, to end in .C (i.e., capitalize the c'). Here's one way to do it: $ for i in *. c; b-basename "$1" .c'; mv "8b.c" do "8b.C". done Things get more complicated if you want more complex renaming. Say for example you just...

  • UNIX QUESTION Exercise #1. [8 Marks] Create a script that does the following: a. Takes 4...

    UNIX QUESTION Exercise #1. [8 Marks] Create a script that does the following: a. Takes 4 input parameters b. Using the shell special variables print the following: i. The command you executed ii. First input iii. Second input iv. Third input v. Fourth Input vi. Process Id vii. Total number of input parameters [ by querying the system for it ] Exercise #2. [8 Marks] Creates a script that does the following: a. Takes two input parameters b. Using the...

  • Question 1 0/1 point (graded) Which of the following is not a finding of Duflo (2001)?...

    Question 1 0/1 point (graded) Which of the following is not a finding of Duflo (2001)? The growth in education levels was higher in places where more schools were built. Younger people were on average more educated than older people. Prior to the building of the schools, the regions where schools were built were similar to the regions where the school's weren't built In regions where a lot of schools were built, people were on average less educated prior to...

  • JAVA Which of these statements does not match by using exception action in Java? 1. Exception...

    JAVA Which of these statements does not match by using exception action in Java? 1. Exception action makes it possible for the calling method to handle errors in called methods.    2. Exception action simplifies programming since incorrect reporting and handling can be located in catch blocks separately from the rest of the code.    3. Exception action increases the performance of programs. 4. Java separates exception action from common processes. Why create instances of File Class? - several alternatives...

  • Hello, please help with the following, you're tasked with writing a shell script named “rpsm.sh”....

    Hello, please help with the following, you're tasked with writing a shell script named “rpsm.sh”. The script reports and prints (to stdout) selected storage management information. Think of it as “RePort Storage Management”. The easy way to describe what the script needs to do is to look at what it should display in the case where you provide incorrect parameters, or in the case where you provide “-h” for help: Usage: ./rpsm.sh <options>< directory> Reports selected information about specified directory...

  • Question 1 (1 point) Which of the following is a reason to use functions? Question 1...

    Question 1 (1 point) Which of the following is a reason to use functions? Question 1 options: To make it easier to read by keeping sections of code shorter. To avoid duplicating code. all of the above To make the code more organized. Question 2 (1 point) When the execution of a function ends, what Python code is executed next? Question 2 options: The function is automatically executed again. The line of code immediately after the end of the function....

  • Question 4 (1 point) Which of the following statement(s) is/are INCORRECT (select all that apply)? Question...

    Question 4 (1 point) Which of the following statement(s) is/are INCORRECT (select all that apply)? Question 4 options: Dry areas such as deserts are generally expected to get even drier under climate change Soil moisture remains largely unaffected by climate change Australia is generally expected to get drier conditions Temperature changes are expected to be the most extreme in equatorial regions Question 5 (1 point) Which of the following statement(s) is/are INCORRECT (select all that apply)? Question 5 options: The...

  • Please Read it all and carefully In visual basic(vba)do the following program Summary INGE Industry, Inc....

    Please Read it all and carefully In visual basic(vba)do the following program Summary INGE Industry, Inc. needs a program in which the date and temperature in Celsius degrees of an industry laboratory are recorded and stored in a sequential file. In addition, you can see the recorded data and convert the temperatures in the following units: Fahrenheit, Kelvin and Rankine. In addition, they want to see a linear graph that reflects how the temperature has fluctuated day by day, for...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT