nerdexam
CompTIA

220-1002 · Question #598

An administrator changed the lite permissions on a Linux server from -rwxrw-r-x to -rwxrwxrwx. Which of the following commands did the administrator use?

The correct answer is A. chmod. Linux provides a dedicated command to modify file permission bits for owner, group, and others independently of ownership.

Hardware and network troubleshooting

Question

An administrator changed the lite permissions on a Linux server from -rwxrw-r-x to -rwxrwxrwx. Which of the following commands did the administrator use?

Options

  • Achmod
  • Brm
  • Capt-get
  • Dchown

How the community answered

(49 responses)
  • A
    88% (43)
  • B
    2% (1)
  • C
    6% (3)
  • D
    4% (2)

Why each option

Linux provides a dedicated command to modify file permission bits for owner, group, and others independently of ownership.

AchmodCorrect

The chmod (change mode) command modifies the read, write, and execute permission bits on Linux files and directories. Changing from -rwxrw-r-x to -rwxrwxrwx grants full permissions to all three categories (owner, group, others) and is achieved with a command such as chmod 777 or chmod a+rwx.

Brm

The rm command deletes files and directories and has no capability to modify permission bits.

Capt-get

apt-get is a package manager used to install, update, or remove software packages and does not interact with individual file permissions.

Dchown

The chown command changes the ownership (user and group) of a file, not the permission bits represented by the rwx notation.

Concept tested: Linux chmod command for modifying file permissions

Source: https://man7.org/linux/man-pages/man1/chmod.1.html

Topics

#chmod#Linux file permissions#permission notation#command line

Community Discussion

No community discussion yet for this question.

Full 220-1002 Practice