Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

QUESTION 11 When using the vi text editor to edit a file, why can\'t you just st

ID: 3835258 • Letter: Q

Question

QUESTION 11

When using the vi text editor to edit a file, why can't you just start typing away right after opening the file?

a.Vi starts in read-only mode by default.

Vi needs to be told if the file is ascii or binary after opening the file.

Vi is a modal text editor, and is in command mode by default when first opened.

Vi takes a minute at startup to verify the file syntax.

QUESTION 12

Which command would view the contents of a text file named homework.txt?

pwd *

ls homework.txt

less homework.txt

cd /homework.txt

QUESTION 13

Which command would you type to list the contents of a directory, including hidden files?

ls -a

ls -l

ls "ALL"

cd /

  

QUESTION 14

Why migh you use sudo instead of su?

Because sudo allows you to use your own password to quickly run a task with administrative privilges, you are less tempted to endanger your system by running as root all the time.

Because su is old and usually not present on Unix.

Because sudo can make you a sandwich.

Because sudo always asks for confirmation before executing a command, while su does not.

QUESTION 15

In Unix, what is the purpose of the fsck command?

It is used as a “fast kill” command to terminate all programs owned by a user.

It is used to check and repair filesystems.

.It is used for file compression.

It is used to find available networking sockets.

a.Vi starts in read-only mode by default.

b.

Vi needs to be told if the file is ascii or binary after opening the file.

c.

Vi is a modal text editor, and is in command mode by default when first opened.

d.

Vi takes a minute at startup to verify the file syntax.

Explanation / Answer

Dear Student,

Here are the answers...

----------------------------------------------------------------------------------------------------------------------------------------

Answer No:11

Option No (A) is correct.

Vi editior starts in read-only mode by default. You have to press i to make in read write mode.

--------------------------------------------------------------------------------------------------------------------------------------

Answer No:12

Option No (C) is correct.

less homework.txt     command will return the file content.

----------------------------------------------------------------------------------------------------------------------------------------

Answer No:13

Option No (A) is correct.

ls -a command will list all the files in including hidden files in the current directory.

----------------------------------------------------------------------------------------------------------------------------------------

Answer No:14

Option No (A) is correct.

Yes, Because sudo allows us to use our own password to quickly run a task with administrative privilges, you are less tempted to endanger your system by running as root all the time.

--------------------------------------------------------------------------------------------------------------------------------------

Answer No:15

Option No (B) is correct.

In Unix, the purpose of the fsck command is to check and repair filesystems. You can check the manual page of the fsck command by typing man fsck on the terminal.

---------------------------------------------------------------------------------------------------------------------------------------

Kindly Check and Verify Thanks..!!!

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote