Verified 010-160 dumps Q&As - 2024 Latest 010-160 Download
Updated 100% Cover Real 010-160 Exam Questions - 100% Pass Guarantee
NEW QUESTION # 31
Why are web browser cookies considered dangerous?
- A. Cookies are always public and accessible to anyone on the internet.
- B. Cookies store critical data which is lost when a cookie is deleted.
- C. Cookies consume significant amounts of storage and can exhaust disk space.
- D. Cookies can contain and execute viruses and malware.
- E. Cookies support identification and tracking of users.
Answer: E
NEW QUESTION # 32
What information can be displayed bytop?
- A. User groups, ordered by the number of members.
- B. User accounts, ordered by the number of logins.
- C. Running processes, ordered by CPU or RAM consumption.
- D. User accounts, ordered by the number of files.
- E. Existing files, ordered by their size.
Answer: C
Explanation:
Explanation
The top command is a Linux command that shows the running processes on the system. It provides a dynamic real-time view of the system performance and resource usage. The top command can display various information about the processes, such as their process ID, user, priority, state, CPU and memory usage, command name, and more. The top command can also sort the processes by different criteria, such as CPU or RAM consumption, by using the interactive commands. The top command is useful for monitoring the system load and identifying the processes that are consuming the most resources. References:
* Linux Essentials Topic 104: The Linux Operating System, section 104.3: Basic features and commands of the Linux standard shells.
* Linux Essentials Topic 106: Security and File Permissions, section 106.4: Monitor and manage Linux processes.
NEW QUESTION # 33
A directory contains the following files:
What would be the output of the following shell script?
for file in *.txt
- A. c.cav
- B. A. txt
- C. A.txt
- D. a b
- E. txt
- F. *.txt
Answer: B
Explanation:
Explanation
The shell script uses a for loop to iterate over the files that match the pattern *.txt in the current directory. The pattern *.txt means any file name that ends with .txt, regardless of the case. The loop body simply prints the value of the variable file, which holds the name of the current file in each iteration. Therefore, the output of the shell script would be the names of the files that end with .txt, one per line. In this case, the files are A.txt and b.txt, so the output would be:
a.txt b.txt
This corresponds to option E. The other options are incorrect for the following reasons:
* Option A: *.txt is not the output of the shell script, but the pattern that the loop uses to match the files.
The shell expands the pattern to the actual file names before executing the loop.
* Option B: a and b are not the names of the files, but the first characters of the file names. The loop prints the whole file name, including the extension.
* Option C: c.cav is not a file that matches the pattern *.txt, because it has a different extension. The loop ignores files that do not end with .txt.
* Option D: A.txt is only one of the files that matches the pattern *.txt, but not the only one. The loop prints both A.txt and b.txt.
References: 1: 9 Examples of for Loops in Linux Bash Scripts - How-To Geek 2 3: Looping Statements | Shell Script - GeeksforGeeks 1 4: shell - Loop through all the files with .txt extension in bash - Stack Overflow 5
NEW QUESTION # 34
Which of the following are typical services offered by public cloud providers? (Choose three correct
answers.)
- A. Software as a Service (SaaS)
- B. Internet as a Service(IaaS)
- C. Platform as a Service(PaaS)
- D. Infrastructure as a Service(IaaS)
- E. Graphics as a Service (GaaS)
Answer: A,C,D
NEW QUESTION # 35
Which of the following keys can be pressed to exit less?
- A. x
- B. l
- C. q
- D. e
- E. !
Answer: C
NEW QUESTION # 36
Which of the following statements regarding Linux hardware drivers is correct?
- A. Drivers are stored on their devices and are copied by the Linux kernel when a new device is attached
- B. Drivers are downloaded from the vendor's driver repository when a new device is attached.
- C. Drivers are not used by Linux because the BIOS handles all access to hardware on behalf of Linux.
- D. Drivers are regular Linux programs which have to be run by the user who wants to use a device.
- E. Drivers are either compiled into the Linux kernel or are loaded as kernel modules.
Answer: E
Explanation:
Explanation
Linux hardware drivers are software components that enable the Linux kernel to communicate with various devices, such as keyboards, mice, printers, scanners, network cards, etc. Drivers are either compiled into the Linux kernel or are loaded as kernel modules. Kernel modules are pieces of code that can be loaded and unloaded into the kernelon demand. They extend the functionality of the kernel without requiring to rebuild or reboot the system. Drivers that are compiled into the kernel are always available, but they increase the size and complexity of the kernel. Drivers that are loaded as kernel modules are only available when needed, but they require a matching version of the kernel and the module. Linux supports a large number of hardware devices, thanks to the efforts of the open source community and some vendors who provide drivers for their products.
However, some devices may not have a driver available for Linux, or may require a proprietary driver that is not included in the Linux distribution. In such cases, the user may need to install the driver manually from the vendor's website or from a third-party repository. References:
* Linux Essentials - Linux Professional Institute (LPI), section 2.2.1
* LPI Linux Essentials Study Guide: Exam 010 v1.6, 3rd Edition, chapter 3, page 67.
NEW QUESTION # 37
What are the differences between hard disk drives and solid state disks? (Choose two.)
- A. Solid state disks provide faster access to stored data than hard disks.
- B. Hard disks can fail due to physical damage, while solid state disks cannot fail.
- C. /dev/sdais a hard disk device while /dev/ssdais a solid state disk.
- D. Solid state disks can store many times as much data as hard disk drives.
- E. Hard disks have a motor and moving parts, solid state disks do not.
Answer: A,E
NEW QUESTION # 38
What is true about the owner of a file?
- A. When a user is deleted, all files owned by the user disappear.
- B. The user owning a file must be a member of the file's group.
- C. The owner of a file always has full permissions when accessing the file.
- D. The owner of a file cannot be changed once it is assigned to an owner.
- E. Each file is owned by exactly one user and one group.
Answer: E
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 # 39
Which of the following commands output the content of the file Texts 2.txt? (Choose two.)
- A. cat Texts\ 2.txt
- B. cat 'Texts 2.txt'
- C. cat |Texts 2.txt|
- D. cat 'Texts\ 2.txt'
- E. cat -- Texts 2.txt
Answer: A,B
Explanation:
Explanation
The correct commands to output the content of the file Texts 2.txt are A and E. These commands use the cat command, which stands for concatenate, to display the content of one or more files. The cat command can take one or more filenames as arguments and print their content to the standard output (usually the terminal screen)12. The commands A and E use different ways to deal with the space character in the filename. The space character is a special character in Linux that separates words and commands. To prevent the shell from interpreting the space as a word separator, the commands A and E use either of the following methods34:
* Option A uses single quotes (') around the filename to preserve the literal value of the space character.
This tells the shell to treat the filename as a single argument and pass it to the cat command. For example: cat 'Texts 2.txt'
* Option E uses a backslash () before the space character to escape its special meaning. This tells the shell to ignore the space as a word separator and treat it as part of the filename. For example: cat Texts\ 2.txt The other options are incorrect because they use different syntax that do not output the content of the file. For example:
* Option B uses a double dash (-) before the filename to indicate the end of options. This is usually used to prevent the shell from interpreting a filename that starts with a dash (-) as an option. However, in this case, the filename does not start with a dash, so the double dash is unnecessary and will cause the command to fail. For example: cat - Texts 2.txt
* Option C uses vertical bars (|) around the filename to indicate a pipe. A pipe is a way of connecting the output of one command to the input of another command. However, in this case, there is no command before or after the pipe, so the pipe is meaningless and will cause the command to fail. For example: cat
|Texts 2.txt|
* Option D uses single quotes (') and a backslash () together around the filename. This is redundant and will cause the command to fail. The single quotes already preserve the literal value of the space character, so the backslash is not needed. Moreover, the backslash inside the single quotes will be treated as part of the filename, not as an escape character. For example: cat 'Texts\ 2.txt' References: 1: How to Use Linux Cat Command (With Examples) - phoenixNAP 2: Cat command in Linux with examples - GeeksforGeeks 3: How to escape spaces in path during scp copy in Linux? - Stack Overflow 4: How to handle spaces in file names when using xargs on find results? - Ask Ubuntu
NEW QUESTION # 40
Which permissions are set on a regular file once thepermissions have been modified with the command chmod 654 file.txt?
- A. d-wxr-x--
- B. -rwxrw---x
- C. -rw-r-xr--
- D. -wxr-x--x
- E. drw-r-xr--
Answer: C
NEW QUESTION # 41
What is the return value of a shell script after successful execution?
- A. 0
- B. 1
- C. 2
- D. 3
- E. 4
Answer: A
Explanation:
Explanation
The return value of a shell script after successful execution is 0. This is a convention followed by most UNIX and Linux commands, programs, and utilities. A return value of 0 indicates that the command or script completed successfully, without any errors. A return value of non-zero (1-255) indicates that the command or script failed, and the value can be interpreted as an error code. The return value of a command or script is stored in the special variable $? and can be used to test the outcome of a command or script123. For example, the following script will print a message based on the return value of the ls command:
#!/bin/bash ls if [ $? -eq 0 ]; then echo "ls command executed successfully" else echo "ls command failed" fi References: 1: Exit and Exit Status - Linux Documentation Project 2: Linux Passwd Command Help and Examples 3: bash - Which is the best way to check return result? - Unix & Linux Stack Exchange
NEW QUESTION # 42
What is a Linux distribution?
- A. A bundling of the Linux kernel, system utilities and other software.
- B. The set of rules which governs the distributionof Linux kernel source code.
- C. A set of changes to Linux which enable Linux to run on another processor architecture.
- D. The Linux file system as seen from the root account after mounting all file systems.
- E. An operating system based on Linux but incompatible to the regular Linux kernel.
Answer: A
NEW QUESTION # 43
What information is stored in/etc/passwd? (Choose three correct answers.)
- A. The user's storage space limit
- B. The numerical user ID
- C. The user\s default shell
- D. The encrypted password
- E. The username
Answer: B,C,E
Explanation:
Explanation
The /etc/passwd file is a plain text-based database that contains information for all user accounts on the system. It is owned by root and has 644 permissions. The file can only be modified by root or users with sudo privileges and readable by all system users. Each line of the /etc/passwd file contains seven comma-separated fields, representing a user account. The fields are as follows:
* Username: The string you type when you log into the system. Each username must be a unique string on the machine. The maximum length of the username is restricted to 32 characters.
* Password: In older Linux systems, the user's encrypted password was stored in the /etc/passwd file. On most modern systems, this field is set to x, and the user password is stored in the /etc/shadow file.
* User ID (UID): The user identifier is a number assigned to each user by the operating system to refer to a user. It is used by the kernel to check for the user privileges and grant access to system resources. The UID 0 is reserved for the root user and cannot be assigned to any other user.
* Group ID (GID): The user's group identifier number, referring to the user's primary group. When a user creates a file, the file's group is set to this group. Typically, the name of the group is the same as the name of the user. User's secondary groups are listed in the /etc/group file.
* User ID Info (GECOS): This is a comment field. This field contains a list of comma-separated values with the following information: User's full name or the application name, Room number, Work phone number, Home phone number, Other contact information.
* Home directory: The absolute path to the user's home directory. It contains the user's files and configurations. By default, the user home directories are named after the name of the user and created under the /home directory.
* Login shell: The absolute path to the user's login shell. This is the shell that is started when the user logs into the system. On most Linux distributions, the default login shell is Bash.
Therefore, the correct answers are B, C, and E. The user's storage space limit (A) is not stored in the
/etc/passwd file, but in the /etc/quota file. The encrypted password (D) is not stored in the /etc/passwd file, but in the /etc/shadow file. References:
* Linux Essentials Topic 104: The Linux Operating System, section 104.4: Runlevels and Boot Targets.
* Linux Essentials Topic 106: Security and File Permissions, section 106.1: Basic security and identifying user types.
* Linux Essentials Topic 106: Security and File Permissions, section 106.2: Creating users and groups.
* Understanding the /etc/passwd File | Linuxize
* Understanding the /etc/passwd File - GeeksforGeeks
* passwd(5) - Linux manual page - man7.org
* Understanding /etc/passwd file in Linux - DEV Community
NEW QUESTION # 44
Which of the following commands adds thedirectory/new/dir/to thePATHenvironment variable?
- A. export PATH=/new/dir: $PATH
- B. PATH=/new/dir: PATH
- C. $PATH=/new/dir: $PATH
- D. export PATH=/new/dir: PATH
- E. export $PATH=/new/dir: $PATH
Answer: A
NEW QUESTION # 45
Which of the following commands sets the variable USERNAME to the value bob?
- A. $USERNAME==bob
- B. set USERNAME bob
- C. USERNAME<=bob
- D. var USERNAME=bob
- E. USERNAME=bob
Answer: E
NEW QUESTION # 46
A directory contains the following files:
What would be the output of the following shell script?
for file in *.txt
- A. c.cav
- B. A.txt
- C. a b
- D. A. txt
b. txt - E. *.txt
Answer: D
NEW QUESTION # 47
What is true about the su command?
- A. It runs a shell or command as another user.
- B. It is the default shell of the root account.
- C. It changes the name of the main administrator account.
- D. It locks the root account in specific time frames.
- E. It can only be used by the user root.
Answer: A
Explanation:
Explanation
The su command stands for substitute user or switch user. It allows you to run a shell or a command as another user, usually the superuser or root. To use the su command, you need to know the password of the target user.
For example, if you want to switch to the root user, you can type su - and enter the root password. This will give you a root shell, where you can execute commands with administrative privileges. To exit the root shell, you can type exit or press Ctrl-D. The su command is not the default shell of the root account, nor can it only be used by the root user. It can be used by any user who knows the password of another user. The su command does not change the name of the main administrator account, which is always root on Linux systems. The su command also does not lock the root account in specific time frames, although there are other ways to do that, such as using the pam_time module. References:
* Linux Essentials - Linux Professional Institute (LPI), section 5.1.1
* LPI Linux Essentials Study Guide: Exam 010 v1.6, 3rd Edition, chapter 9, page 219.
NEW QUESTION # 48
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: A
Explanation:
Explanation/Reference:
NEW QUESTION # 49
Which one of the following statements concerning Linux passwords is true?
- A. All passwords can be decrypted using the system administrator's master password.
- B. Users cannot change their password once it has been set.
- C. Passwords are only stored in hashed form.
- D. Passwords may be at most six characters long.
- E. Passwords may never start with a non-letter.
Answer: C
NEW QUESTION # 50
......
Use Real Dumps - 100% Free 010-160 Exam Dumps: https://www.fast2test.com/010-160-premium-file.html
Realistic 010-160 Dumps Latest Practice Tests Dumps: https://drive.google.com/open?id=1AwlpEi6rht53mcxFMOrmw198ayy5JsI-