Latest [Nov 21, 2025] Real Lpi 010-160 Exam Dumps Questions
010-160 Dumps To Pass LPI Linux Essentials Exam in One Day (Updated 80 Questions)
Lpi 010-160 exam is administered by the Linux Professional Institute (LPI), a non-profit organization that promotes and certifies the knowledge and skills of Linux professionals. The LPI is recognized globally as a leading certification provider for Linux professionals. The organization offers a range of certification programs for Linux professionals, including the Linux Essentials, LPIC-1, LPIC-2, and LPIC-3 certifications.
NEW QUESTION # 32
What information is stored in /etc/passwd? (Choose three correct answers.)
- A. The encrypted password
- B. The user\s default shell
- C. The numerical user ID
- D. The user's storage space limit
- E. The username
Answer: A,C,E
NEW QUESTION # 33
A directory contains the following files:
What would be the output of the following shell script?
for file in *.txt
- A. *.txt
- B. a b
- C. A. txt
b. txt - D. A.txt
- E. c.cav
Answer: C
NEW QUESTION # 34
Where is the operating system of a Raspberry Pi stored?
- A. On the master device attached to the Raspberry Pi's IDE bus.
- B. On a removable SD cardwhich is put into the Raspberry Pi.
- C. On a Linux extension module connected to the Raspberry Pi's GPIO pins.
- D. On a read only partition on the Raspberry Pi's firmware, next to the BIOS.
- E. On rewritable flash storage which is built into the Raspberry Pi.
Answer: B
NEW QUESTION # 35
What is a Linux distribution?
- A. A set of changes to Linux which enable Linux to run on another processor architecture.
- B. An operating system based on Linux but incompatible to the regular Linux kernel.
- C. A bundling of the Linux kernel, system utilities and other software.
- D. The set of rules which governs the distribution of Linux kernel source code.
- E. The Linux file system as seen from the root account after mounting all file systems.
Answer: C
Explanation:
A Linux distribution is a collection of software that is based on the Linux kernel and can be installed on a computer or a device to create a functional operating system. A Linux distribution typically includes the Linux kernel, a set of system utilities and libraries, a graphical user interface (GUI), a package manager, and various applications and services. A Linux distribution may also include additional software or features that are specific to the distribution's goals, target audience, or philosophy. For example, some Linux distributions are designed for desktop users, while others are optimized for servers, embedded systems, or security. Some Linux distributions are based on other Linux distributions, while others are developed independently. Some Linux distributions are free and open source, while others are proprietary or commercial. Some Linux distributions are popular and widely used, while others are niche or experimental. Some examples of Linux distributions are Ubuntu, Fedora, Debian, Mint, Arch, and Red Hat. Reference:
Linux Essentials Topic 101: System Architecture, section 101.1: Determine and configure hardware settings.
Linux Essentials Topic 102: Linux Installation and Package Management, section 102.1: Design hard disk layout.
Linux Essentials Topic 103: GNU and Unix Commands, section 103.1: Work on the command line.
Linux Essentials Topic 104: The Linux Operating System, section 104.1: Boot the system.
Linux Essentials Topic 105: The Power of the Command Line, section 105.1: Use text streams and filters.
Linux Essentials Topic 106: Security and File Permissions, section 106.3: Modify file and directory permissions.
What is a Linux distribution? - Linux.com
Linux distribution - Wikipedia
Best Linux Distributions For Everyone in 2023 - It's FOSS
NEW QUESTION # 36
Which of the following commands extracts the contents of the compressed archive file1.tar.gz?
- A. tar -czf file1.tar.gz
- B. detar file1.tar.gz
- C. ztar file1.tar.gz
- D. tar --extract file1.tar.gz
- E. tar -xzf file1.tar.gz
Answer: E
Explanation:
Explanation
The correct command to extract the contents of the compressed archive file1.tar.gz is tar -xzf file1.tar.gz. This command uses the following options:
* -x means extract files from an archive.
* -z means filter the archive through gzip, which is a compression program that reduces the size of files.
* -f means use the following archive file name, which is file1.tar.gz in this case.
The other commands are incorrect for the following reasons:
* tar -czf file1.tar.gz creates a compressed archive file1.tar.gz from the files specified after the command, not extract it.
* ztar file1.tar.gz is not a valid command, as ztar is not a standard program or option for tar.
* tar --extract file1.tar.gz is missing the -z option to handle the gzip compression, and also the -f option to specify the file name.
* detar file1.tar.gz is not a valid command, as detar is not a standard program or option for tar.
References:
* Linux Essentials - Topic 106: The Linux Operating System, section 106.2 Use single shell commands and one line command sequences to perform basic tasks on the command line.
* LPI Linux Essentials Study Guide: Exam 010 v1.6, 3rd Edition, Chapter 5: Working with Files and Directories, section Compressing and Archiving Files.
NEW QUESTION # 37
Which operator in a regular expression matches the preceding character either zero or one time?
- A. ?
- B. %
- C. +
- D. $
- E. *
Answer: A
Explanation:
The operator that matches the preceding character either zero or one time in a regular expression is the question mark (?). This operator is also known as the optional quantifier, because it makes the preceding character or group of characters optional. For example, the regular expression colou?r matches both color and colour, because the u is optional. The question mark can also be used to modify other quantifiers, such as * (zero or more), + (one or more), or {m,n} (between m and n times), to make them non-greedy, meaning they will match the shortest possible string instead of the longest. For example, the regular expression .*? matches any character zero or more times, but as few as possible. The question mark is one of the basic regular expression operators covered in the Linux Essentials certification program from the Linux Professional Institute (LPI). Reference:
Linux Essentials - Linux Professional Institute (LPI)
Regular Expressions:Difference between 'optional occurrence' and 'zero ...
NEW QUESTION # 38
A directory contains the following three files:
texts 1.txt
texts 2.txt
texts 3.csv
Which command copies the two files ending in .txtto the /tmp/directory?
- A. cp ?.txt /tmp/
- B. cp *.txt /tmp/
- C. cp ??.txt /tmp/
- D. cp. \.txt /tmp/
- E. cp $?.txt /tmp/
Answer: B
Explanation:
Explanation/Reference:
NEW QUESTION # 39
Which of the following tar options handle compression? (Choose two correct answers.)
- A. -g
- B. -bz
- C. -z
- D. -j
- E. -z2
Answer: C,D
Explanation:
The tar command is used to create or extract compressed archive files that contain multiple files or directories. The tar command has the following syntax: tar [options] [archive-file] [file or directory...]. The options argument specifies how the tar command should operate and what kind of compression should be used. The archive-file argument is the name of the archive file to be created or extracted. The file or directory argument is the name of one or more files or directories to be included in or extracted from the archive file.
The following are some of the common options for the tar command:
-c: create a new archive file.
-x: extract files from an existing archive file.
-t: list the contents of an archive file.
-v: show the progress of the operation.
-f: specify the name of the archive file.
-z: use gzip compression or decompression.
-j: use bzip2 compression or decompression.
-J: use xz compression or decompression.
The options -z and -j are used to handle compression with the tar command. The option -z uses the gzip program to compress or decompress the archive file, which usually has the extension .tar.gz or .tgz. The option -j uses the bzip2 program to compress or decompress the archive file, which usually has the extension .tar.bz2 or .tbz. Both gzip and bzip2 are popular compression programs that reduce the size of files by removing redundant or unnecessary information.
For example, to create a compressed archive file called backup.tar.gz that contains the files and directories in the current directory, the following command can be used:
tar -czvf backup.tar.gz .
To extract the files and directories from the archive file backup.tar.gz to the current directory, the following command can be used:
tar -xzvf backup.tar.gz
To create a compressed archive file called backup.tar.bz2 that contains the files and directories in the current directory, the following command can be used:
tar -cjvf backup.tar.bz2 .
To extract the files and directories from the archive file backup.tar.bz2 to the current directory, the following command can be used:
tar -xjvf backup.tar.bz2
The other options in the question are not related to compression. The option -bz is invalid, as there is no such option for the tar command. The option -g is used to create or update an incremental archive file, which only contains the files that have changed since the last backup. The option -z2 is also invalid, as there is no such option for the tar command. Reference:
Linux Essentials Version 1.6 Objectives: 3.1. Archiving Files on the Command Line1 Linux Essentials Version 1.6 Exam Study Resources: Linux Essentials Manual - Chapter 9. The Power of the Command Line - 9.1. Archiving Files on the Command Line - 9.1.1. The tar Command2 Linux Essentials Version 1.6 Exam Study Resources: Linux Essentials Manual - Appendix A. Answers to the Exercises - Chapter 9. The Power of the Command Line - 9.1. Archiving Files on the Command Line - Exercise 9.1.12
NEW QUESTION # 40
Which of the following examples shows the general structure of a for loop in a shell script?
- A. for file in *.txt do
echo $i done - B. foreach @{file} { echo $i
} - C. for ls *.txt exec {} \;
- D. for *.txt as file => echo $file
- E. for *.txt ( echo $i )
Answer: A
Explanation:
Explanation
The general structure of a for loop in a shell script is as follows12:
for variable in list do commands done
The variable is the name of a loop counter or iterator that takes on the values of the items in the list. The list can be a sequence of words, numbers, filenames, or the output of a command. The commands are the body of the loop that are executed for each value of the variable. The do and done keywords mark the beginning and the end of the loop body.
The option C. for file in *.txt do echo $i done follows this structure, with the variable being file, the list being
*.txt (which matches all the files with the .txt extension in the current directory), and the command being echo
$i (which prints the value of the variable i, which is presumably set somewhere else in the script).
The other options are incorrect because:
* A. for *.txt as file => echo $file uses an invalid syntax for a for loop. The as keyword is not part of the shell script syntax, and the => symbol is not a valid operator. The correct way to write this loop would be:
for file in *.txt do echo $file done
* B. for *.txt ( echo $i ) uses an invalid syntax for a for loop. The parentheses are not part of the shell script syntax, and the loop body is missing the do and done keywords. The correct way to write this loop would be:
for i in *.txt do echo $i done
* D. for ls *.txt exec {} ; uses an invalid syntax for a for loop. The ls command is not a valid variable name, and the exec {} ; is not a valid command. This looks like a mix of a for loop and a find command.
The correct way to write this loop would be:
for file in *.txt do exec $file done
* E. foreach @{file} { echo $i } uses an invalid syntax for a for loop. The foreach keyword is not part of the shell script syntax, and the @{file} and { echo $i } are not valid expressions. This looks like a mix of a for loop and a Perl syntax. The correct way to write this loop would be:
for file in * do echo $file done
References:
* Looping Statements | Shell Script - GeeksforGeeks
* How do I write a 'for' loop in Bash? - Stack Overflow
NEW QUESTION # 41
Which of the following commands puts the lines of the file data.csv into alphabetical order?
- A. grep --sort data.csv
- B. wc -s data.csv
- C. abc data.csv
- D. a..z data.csv
- E. sort data.csv
Answer: E
Explanation:
The sort command is used to sort the lines of a file or a stream of input according to a specified criterion, such as alphabetical order, numerical order, reverse order, etc. By default, the sort command sorts the lines in ascending alphabetical order, using the first character of each line as the key. For example, the command sort data.csv will sort the lines of the file data.csv in alphabetical order and display the output on the screen. If you want to save the sorted output to a new file, you can use the redirection operator (>) to specify the output file name. For example, the command sort data.csv > sorted_data.csv will sort the lines of the file data.csv in alphabetical order and save the output to a new file named sorted_data.csv. The other commands are either invalid or do not perform the sorting operation. The a...z command does not exist, the abc command is a text editor, the wc command counts the number of words, lines, and bytes in a file, and the grep command searches for a pattern in a file or a stream of input.
Therefore, the correct answer is B.
Reference:
Linux Essentials - Linux Professional Institute (LPI), section 2.3.2
LPI Linux Essentials Study Guide: Exam 010 v1.6, 3rd Edition, chapter 4, page 95.
NEW QUESTION # 42
Which command displays file names only and no additional information?
- A. ls -alh
- B. ls -lh
- C. ls -nl
- D. ls -a
- E. ls -l
Answer: D
Explanation:
The ls command is used to list the files and directories in a given path. By default, the ls command displays only the file names, without any additional information. However, the ls command can also take various options to modify its output. For example, the -l option tells ls to display the long format, which includes the file permissions, owner, group, size, date, and name. The -h option tells ls to display the file sizes in a human-readable format, such as KB, MB, GB, etc. The -a option tells ls to display all files, including the hidden ones that start with a dot (.). The -n option tells ls to display the numeric user ID and group ID instead of the user name and group name. Therefore, the only option that does not add any additional information to the file names is the -a option. The command ls -a will display all the file names in the current directory, including the hidden ones, but nothing else. Reference:
Linux Essentials - Linux Professional Institute (LPI), section 2.1.1
2.1 Lesson 1 - Linux Professional Institute Certification Programs, slide 6.
NEW QUESTION # 43
Which of the following commands shows the absolute path to the current working directory?
- A. cd ..
- B. cd ~/home
- C. who
- D. pwd
- E. ls -l
Answer: D
Explanation:
The command pwd stands for "print working directory". It will print the absolute path of the current working directory to the terminal. For example, if we are currently in the /home/user/directory, it will print out that exact path1. The pwd command is useful for finding out where we are in the file system hierarchy and for verifying the location of files and directories2.
The other options are not commands that show the absolute path to the current working directory. The who command shows the users who are currently logged in to the system3. The cd ... command changes the current working directory to the parent directory of the current one2. The ls -l command lists the files and directories in the current working directory in a long format, which shows the permissions, ownership, size, date, and name of each file and directory2. The cd ~/home command changes the current working directory to the /home directory under the user's home directory, which may or may not exist2. Reference:
Linux Essentials Exam Objectives, Version 1.6, Topic 103.1, Weight 2
Linux Essentials Certification Guide, Chapter 3, Page 51-52
How to Get the current directory in Linux - howtouselinux
How To Find The Absolute Path Of A File Or Directory In Linux - systranbox
NEW QUESTION # 44
Which files are the source of the information in the following output? (Choose two.) uid=1000 (bob) gid=1000 (bob) groups=1000 (bob), 10 (wheel), 150 (docker), 1001 (libvirt)(wireshark),989
- A. /etc/id
- B. /home/index
- C. /etc/group
- D. /var/db/users
- E. /etc/passwd
Answer: C,E
Explanation:
Explanation
The files /etc/passwd and /etc/group are the source of the information in the following output:
uid=1000 (bob) gid=1000 (bob) groups=1000 (bob), 10 (wheel), 150 (docker), 1001 (libvirt) (wireshark), 989 The /etc/passwd file contains information about user accounts, such as the username, password, user ID (UID), group ID (GID), full name, home directory, and login shell1. The /etc/group file contains information about groups, such as the group name, password, group ID (GID), and members2.
The output shows the UID, GID, and group membership of the user bob. The UID and GID of bob are 1000, which can be found in the /etc/passwd file. The groups that bob belongs to are bob, wheel, docker, libvirt, wireshark, and 989, which can be found in the /etc/group file. The group names are shown in parentheses after the GID, except for the last group, which has no name.
The other options are not files that store user and group information in Linux. The /etc/id file does not exist by default. The /home/index file is not a standard file and has no relation to user and group information. The
/var/db/users file is not a standard file and has no relation to user and group information. References:
* Linux Essentials Exam Objectives, Version 1.6, Topic 103.1, Weight 2
* Linux Essentials Certification Guide, Chapter 3, Page 51-52
* Linux Filesystem Hierarchy, Chapter 3, Page 17-18
* Linux Users and Groups, Chapter 2, Page 9-10
NEW QUESTION # 45
What is true about the owner of a file?
- A. The owner of a file always has full permissions when accessing the file.
- B. The user owning a file must be a member of the file's group.
- C. When a user is deleted, all files owned by the user disappear.
- D. Each file is owned by exactly one user and one group.
- E. The owner of a file cannot be changed once it is assigned to an owner.
Answer: D
Explanation:
Explanation
In Linux, every file and directory is associated with an owner and a group. The owner is the user who created the file or directory, and the group is the group to which the owner belongs. Therefore, each file is owned by exactly one user and one group. This is true for option A. The other options are false for the following reasons:
* Option B: The owner of a file does not always have full permissions when accessing the file. The permissions are determined by the file mode, which can be changed by the owner or the root user. The file mode specifies the read, write, and execute permissions for the owner, the group, and others. The owner can have different permissions than the group or others.
* Option C: The user owning a file does not have to be a member of the file's group. The owner can change the group ownership of the file to any group on the system, regardless of whether the owner belongs to that group or not. However, only the root user or a user with the CAP_CHOWN capability can change the group ownership to a group that the owner is not a member of.
* Option D: When a user is deleted, all files owned by the user do not disappear. The files remain on the system, but their owner is changed to an invalid user ID (UID). The files can still be accessed by the group or others, depending on the permissions. The files can also be reclaimed by the root user or a user with the CAP_CHOWN capability, who can change the owner to a valid user.
* Option E: The owner of a file can be changed once it is assigned to an owner. The owner can transfer the ownership to another user, or the root user or a user with the CAP_CHOWN capability can change the owner to any user on the system. The command to change the owner of a file is chown. References: 1: Chown Command in Linux (File Ownership) | Linuxize 2 3: Linux File Permissions and Ownership Explained with Examples 4 2: 3 Ways to Find File Owner in Linux - howtouselinux 1
NEW QUESTION # 46
Which of the following are typical services offered by public cloud providers? (Choose three.)
- A. Internet as a Service(IaaS)
- B. Infrastructure as a Service(IaaS)
- C. Graphics as a Service (GaaS)
- D. Platform as a Service(PaaS)
- E. Software as a Service (SaaS)
Answer: B,D,E
NEW QUESTION # 47
Which of the following programs are web servers? (Choose two.)
- A. NGINX
- B. Apache HTTPD
- C. Dovecot
- D. Curl
- E. Postfix
Answer: A,B
Explanation:
A web server is a program that listens for requests from web browsers and serves web pages, images, or other resources. Apache HTTPD and NGINX are two popular web servers that can run on Linux systems. They can handle multiple protocols, such as HTTP, HTTPS, FTP, and SMTP. Postfix, Curl, and Dovecot are not web servers, but they are related to web or network services. Postfix is a mail transfer agent (MTA) that can send and receive emails. Curl is a command-line tool that can transfer data from or to a web server. Dovecot is a mail delivery agent (MDA) that can store and retrieve emails from a local mailbox. Reference:
Linux Essentials - Linux Professional Institute (LPI), section 1.2 Major Open Source Applications LPI Linux Essentials 010-160 - Training Tutorials, section 4.4 Your Computer on the Network
NEW QUESTION # 48
Which of the following is a protocol used for automatic IP address configuration?
- A. DHCP
- B. DNS
- C. LDAP
- D. NFS
- E. SMTP
Answer: A
NEW QUESTION # 49
Which of the following values could be a process ID on Linux?
- A. /bin/bash
- B. 0
- C. fff3
- D. 60b503cd-019e-4300-a7be-922f074ef5ce
- E. /sys/pid/9a14
Answer: B
NEW QUESTION # 50
Which of the following commands sorts the output of the commandexport-logs?
- A. export-logs < sort
- B. export-logs & sort
- C. export-logs <> sort
- D. export-logs | sort
- E. export-logs > sort
Answer: D
Explanation:
Explanation
The sort command is used to sort the lines of a text file or the output of another command in alphabetical, numerical, or other order. The sort command has the following syntax: sort [options] [file...]. The file argument is the name of one or more files to be sorted. If no file is given, the sort command reads from the standard input, which is usually the keyboard or the output of another command.
The | (pipe) symbol is used to connect the output of one command to the input of another command. This allows the creation of pipelines of commands that process data sequentially. The pipe symbol has the following syntax: command1 | command2. The command1 argument is the name of the first command, whose output is sent to the input of the second command. The command2 argument is the name of the second command, which receives the output of the first command as its input.
Therefore, the command export-logs | sort sorts the output of the export-logs command in alphabetical order.
The export-logs command is assumed to be a custom command that exports some logs to the standard output.
The sort command receives the output of the export-logs command as its input and sorts it according to the default criteria, which is the first character of each line. The sorted output is then displayed on the screen or can be redirected to a file or another command.
The other options in the question are incorrect because they use the wrong symbols to connect the commands.
The < (input redirection) symbol is used to read the input of a command from a file instead of the keyboard.
The > (output redirection) symbol is used to write the output of a command to a file instead of the screen. The
& (background) symbol is used to run a command in the background, which means the command does not wait for user input and allows the user to run other commands simultaneously. The <> (bidirectional redirection) symbol is used to read and write the input and output of a command from and to the same file.
None of these symbols can be used to sort the output of the export-logs command. References:
* Linux Essentials Version 1.6 Objectives: 3.2. Searching and Extracting Data from Files1
* Linux Essentials Version 1.6 Exam Study Resources: Linux Essentials Manual - Chapter 9. The Power of the Command Line - 9.2. Searching and Extracting Data from Files - 9.2.1. The sort Command2
* Linux Essentials Version 1.6 Exam Study Resources: Linux Essentials Manual - Chapter 9. The Power of the Command Line - 9.3. Turning Commands into a Script - 9.3.1. Pipes and Redirection2
* Linux Essentials Version 1.6 Exam Study Resources: Linux Essentials Manual - Appendix A. Answers to the Exercises - Chapter 9. The Power of the Command Line - 9.2. Searching and Extracting Data from Files - Exercise 9.2.12
* Linux Essentials Version 1.6 Exam Study Resources: Linux Essentials Manual - Appendix A. Answers to the Exercises - Chapter 9. The Power of the Command Line - 9.3. Turning Commands into a Script - Exercise 9.3.12
NEW QUESTION # 51
Which permissions are set on a regular file once the permissions have been modified with the command chmod 654 file.txt?
- A. drw-r-xr--
- B. -rw-r-xr--
- C. d-wxr-x--
- D. -rwxrw---x
- E. -wxr-x--x
Answer: B
Explanation:
Explanation
The chmod command is used to change the permissions of files and directories. The permissions are represented by three sets of three characters, indicating the permissions for the owner, the group, and the others. Each character can be either r (read), w (write), x (execute), or - (no permission). The chmod command can use either symbolic or numeric mode to specify the permissions. In this question, the numeric mode is used, which consists of three digits from 0 to 7. Each digit is the sum of the permissions for each set, where r is 4, w is 2, and x is 1. For example, 7 means rwx, 6 means rw-, and 4 means r-. Therefore, the command chmod 654 file.txt sets the permissions as follows:
* The first digit 6 means rw- for the owner, which means the owner can read and write the file, but not execute it.
* The second digit 5 means r-x for the group, which means the group can read and execute the file, but not write it.
* The third digit 4 means r-- for the others, which means the others can only read the file, but not write or execute it.
The resulting permissions are -rw-r-xr-, which is the correct answer. The other options are incorrect because they either have the wrong permissions or the wrong file type. A regular file does not have the d (directory) prefix, and a directory cannot have the - (no file type) prefix. References:
* Linux Essentials Version 1.6 Objectives: 4.1. Ownership and Permissions1
* Linux Essentials Version 1.6 Exam Study Resources: Linux Essentials Manual - Chapter 8. Security and File Permissions - 8.1. Ownership and Permissions - 8.1.1. The chmod Command2
* Linux Essentials Version 1.6 Exam Study Resources: Linux Essentials Manual - Appendix A. Answers to the Exercises - Chapter 8. Security and File Permissions - 8.1. Ownership and Permissions - Exercise
8.1.12
NEW QUESTION # 52
How is a new Linux computing instance provisioned in an laaS cloud?
- A. The cloud hosting organization provides a set of pre-prepared images of popular Linux distributions.
- B. The installation has to be prepared in a local virtual machine which is then copied to the cloud.
- C. A provider-specific configuration file describing the desired installation is uploaded to the cloud provider.
- D. After buying a Linux distribution, its vendor delivers it to a cloud instance.
- E. The standard Linux installer has to be run through a remote console.
Answer: A
Explanation:
In an Infrastructure as a Service (IaaS) cloud, the provider offers virtualized computing resources such as servers, storage, and network over the internet. The user can provision and manage these resources according to their needs. One of the common ways to provision a new Linux computing instance in an IaaS cloud is to use a pre-prepared image of a Linux distribution provided by the cloud hosting organization. An image is a snapshot of a virtual machine that contains the operating system and other software components. The user can choose from a variety of images that suit their requirements and launch a new instance from the image. This way, the user does not have to install and configure the Linux operating system from scratch, which saves time and effort. Some examples of cloud hosting organizations that provide pre-prepared images of popular Linux distributions are Amazon Web Services (AWS), Microsoft Azure, Google Cloud Platform (GCP), and DigitalOcean. Reference: Linux Essentials - Topic 108: Cloud Computing and Linux Essentials - Topic 108: Cloud Computing - Exam Objectives
NEW QUESTION # 53
The ownership of the file doku.odt should be changed. The new owner is named tux. Which command accomplishes this change?
- A. newuser doku.odt tux
- B. transfer tux: doku.odt
- C. chmod u=tux doku.odt
- D. passwd doku.odt:tux
- E. chown tux doku.odt
Answer: E
Explanation:
Explanation
The correct command to change the ownership of the file doku.odt to a new owner named tux is chown tux doku.odt. This command uses the chown command, which stands for change owner, followed by the name of the new owner and the name of the file as arguments. The chown command allows you to change the user and/or group ownership of a given file, directory, or symbolic link12. The other options are incorrect because they use different commands or syntax that do not change the ownership of the file. For example:
* Option A uses the chmod command, which stands for change mode, and is used to change the permissions of files and directories, not the ownership3.
* Option B uses the newuser command, which is used to create a new user account, not to change the ownership of a file4.
* Option D uses the transfer command, which is not a valid Linux command.
* Option E uses the passwd command, which is used to change the password of a user account, not the ownership of a file5.
References: 1: Chown Command in Linux (File Ownership) | Linuxize 2: chown command in Linux with Examples - GeeksforGeeks 3: Chmod Command in Linux (File Permissions) | Linuxize 4: newusers(8) - Linux man page 5: passwd(1) - Linux man page
NEW QUESTION # 54
......
010-160 Exam Brain Dumps - Study Notes and Theory: https://www.test4cram.com/010-160_real-exam-dumps.html
100% Guaranteed Results 010-160 Unlimited 80 Questions: https://drive.google.com/open?id=1RI5jpB8B4rXIlmrFU0_gD9h1acOxiYDw