You work as a Network Administrator for Secure World Inc. The company has a Linux-based network. You want to run a command with the changed root directory. Which of the following commands will you use?
In order to run a command with the changed root directory, you will have to execute the following command:
chroot <new root> <command>
chroot runs a command or an interactive shell with a special root directory. It runs the specified command with the root directory set to <new
root>.
Answer option A is incorrect. The ls command is used to list files and directories in a Linux computer.
Answer option D is incorrect. The chdir command changes the current directory to the path specified with the command.
Answer option C is incorrect. The route command manipulates the kernel's IP routing tables.
Currently there are no comments in this discussion, be the first to comment!