RH033 Red Hat Linux Essentials

Loading demo links...

Showing 1–3 of 10 questions

Question 1

CORRECT TEXT

Which of the following commands are used to put (paste) data from a buffer into a document in vim?

Each correct answer represents a complete solution. Choose two.

A :set

B. p

C. P

D. ps

Answer: BC

Explanation:

The commands to put data from a buffer into the document are p and P. p puts the data below the current line and P puts the data above the current line.

What is the p command?

The p command is used to put (paste) data from a buffer into the document. If data is line oriented

(a line or a paragraph), the p command will open a new line below the current line and place the data on this line. If data is character oriented (a letter, word, or sentence), the p command will place the data after the cursor.

What is the P command?

The P command is used to put data from a buffer into a document. How this command works depends on the nature of the data in the buffer. If the data is line oriented, the P command will open a new a line above the current line and paste the data there. If the data is character oriented, the P command will put the data before the cursor. Answer option D is incorrect. The ps command displays the status of the current processes in Linux. Answer option A is incorrect. The :set command lists a small number of important configuration items in vim.

Select all that apply, then click Submit answer.

  • p

  • P

  • ps

Question 2

Which of the following information does the /etc/passwd file contain? Each correct answer represents a complete solution. Choose all that apply.

Select all that apply, then click Submit answer.

  • Numerical group ID

  • User name

  • Shadow password

  • Numerical user ID

  • Reserved gecos ID

  • User's home directory

Question 3

Which of the following statements are true about file permissions?

Each correct answer represents a complete solution. Choose three.

Select all that apply, then click Submit answer.

  • The execute permission means that the file can be run if it is a program or script.

  • The write permission means that the file can be edited and saved.

  • The read permission means that only the file name can be read not the contents of the file.

  • The read permission means that the contents of the file can be seen with a command such as cat or less.