宴旋な010-160リンクグロ`バル & 栽鯉スム`ズ010-160晩云ZJ協貨 | 宴旋な010-160庁M}鹿もし、あなたも010-160Yに栽鯉したいです。しかし、どんなY創をxkしたらいいですか燭瓩瓩靴燭い里010-160Y}鹿です。澓する念に、Lpiのウエブサイトで010-160Y}鹿のデモをダウンロ`ドしてみると、あなたはきっと010-160Y}鹿に帆砲気譴泙后 Lpi Linux Essentials Certificate Exam - version 1.6 J協 010-160 Y} (Q69-Q74):| # 69
What can be found in the /proc/ directory?
A. One device file per hardware device.
B. One file per existing user account.
C. One log file per running service.
D. One directory per running process.
E. One directory per installed program.
屎盾D
盾h
Explanation
The /proc/ directory is a virtual file system that contains information about the system and the processes running on it. It is not a conventional file system that stores files on a disk, but rather a dynamic view of the kernel's data structures. One of the features of the /proc/ directory is that it contains one subdirectory for each process running on the system, which is named after the process ID (PID). For example, the subdirectory
/proc/1/ contains information about the process with PID 1, which is usually the init process. The process subdirectories contain various files that provide information about the process, such as its status, memory usage, open files, environment variables, command line arguments, and more. The /proc/ directory also contains a symbolic link called 'self', whichpoints to the process that is accessing the /proc/ file system.
Therefore, the correct answer is D. One directory per running process.
The other options are incorrect because:
* A. One directory per installed program. This is not true, as the /proc/ directory does not contain information about installed programs, but only about running processes. Installed programs are usually stored in other directories, such as /bin/, /usr/bin/, /opt/, etc.
* B. One device file per hardware device. This is not true, as the /proc/ directory does not contain device files, but only virtual files that represent kernel data. Device files are usually stored in the /dev/
* directory, which is another special file system that provides access to hardware devices.
* C. One file per existing user account. This is not true, as the /proc/ directory does not contain information about user accounts, but only about processes. User accounts are usually stored in the /etc/ directory, which contains configuration files, such as /etc/passwd/ and /etc/shadow/, that define the users and their passwords.
* E. One log file per running service. This is not true, as the /proc/ directory does not contain log files, but only information files. Log files are usually stored in the /var/log/ directory, which contains various files that record the activities of the system and the services.
References:
* The /proc Filesystem - The Linux Kernel documentation
* A Beginner's Guide to the /proc File System in Linux - Tecmint
* Appendix E. The proc File System Red Hat Enterprise Linux 6 | Red Hat ...
* Chapter 5. The proc File System Red Hat Enterprise Linux 4 | Red Hat ...
* proc file system in Linux - GeeksforGeeks
| # 70
Which of the following commands puts the lines of the file data.csv into alphabetical order?
A. a..z data.csv
B. grep --sort data.csv
C. sort data.csv
D. wc -s data.csv
E. abc data.csv
屎盾C
| # 71
A directory contains the following three files:
texts 1.txt
texts 2.txt
texts 3.csv
Which command copies the two files ending in .txt to the /tmp/ directory?
A. cp ?.txt /tmp/
B. cp *.txt /tmp/
C. cp ??.txt /tmp/
D. cp $?.txt /tmp/
E. cp. .txt /tmp/
屎盾B
盾h
The correct command to copy the two files ending in .txt to the /tmp/ directory is cp *.txt /tmp/. This command uses the wildcard character * to match any number of characters before the .txt extension. Therefore, it will copy both texts 1.txt and texts 2.txt to the destination directory /tmp/. The other options are incorrect because they use different wildcard characters or syntax that do not match the desired files. For example, option A uses ?? to match exactly two characters before the .txt extension, but the files have a space and a number, which are not considered as one character. Option C uses a backslash to escape the dot . before the .txt extension, but this is unnecessary and will cause the command to fail. Option D uses ? to match exactly one character before the .txt extension, but the files have more than one character. Option E uses $? to match the exit status of the previous command before the .txt extension, but this is not relevant and will cause the command to fail123 Reference: 1: Linux wildcards | How do wildcards work in Linux with examples? - EDUCBA 2: Wildcards in Linux explained with 10 examples | FOSS Linux 3: What are wildcard characters in Linux? - Sage-Answers
| # 72
Which of the following statements is true about Free Software?
A. It only runs on Linux.
B. It is only distributed as a compiled binary.
C. It is developed by volunteers only.
D. It may be modified by anyone using it.
E. It must always be available free of charge.
屎盾D
盾h
Explanation
The correct statement about Free Software is that it may be modified by anyone using it. This is one of the four essential freedoms of Free Software, which are: the freedom to run the program as you wish, for any purpose; the freedom to study how the program works, and change it so it does your computing as you wish; the freedom to redistribute copies so you can help your neighbor; and the freedom to distribute copies of your modified versions to others1. Access to the source code is a precondition for these freedoms1.
The other statements are false for the following reasons:
* Free Software is not developed by volunteers only. It can be developed by anyone, including individuals, companies, organizations, or communities. Some Free Software developers are paid for their work, while others do it as a hobby or for social benefit1.
* Free Software does not have to be available free of charge. It can be sold or given away for any price. The term "free" refers to the users' freedom, not the price of the software1. However, Free Software users have the freedom to redistribute copies, so they can obtain the software at no charge from someone who has a copy1.
* Free Software does not only run on Linux. It can run on any operating system that supports it, such as Windows, MacOS, BSD, or Android. Linux is an example of a Free Software operating system, but not the only one1.
* Free Software is not only distributed as a compiled binary. It can also be distributed as source code, or both. In fact, Free Software must provide access to the source code, otherwise the users cannot study or modify the software1.
References:
* What is Free Software? - GNU Project - Free Software Foundation
| # 73
Which command copies the contents of the directory /etc/, including all sub-directories, to /root/?
A. cp -r /etc/* /root
B. cp -v /etc/* /root
C. rcp /etc/* /root
D. copy /etc /root
E. cp -R /etc/*.* /root
屎盾A
盾h
Explanation
The correct command to copy the contents of the directory /etc/, including all sub-directories, to /root/ is cp -r
/etc/* /root. This command uses the cp command, which stands for copy, and is used to copy files and directories on Linux and Unix systems. The command also uses the following options and arguments123:
* The -r option, which stands for recursive, and tells cp to copy all files and sub-directories of the source directory. Alternatively, the -R option can be used, which has the same effect as -r.
* The /etc/* argument, which specifies the source directory and all its contents. The asterisk (*) is a wildcard character that matches any file or directory name. This argument tells cp to copy everything inside the /etc/ directory, but not the directory itself.
* The /root argument, which specifies the destination directory. This argument tells cp to copy the source files and sub-directories to the /root/ directory.
The other options are incorrect because they use different commands or syntax that do not copy the contents of the directory /etc/, including all sub-directories, to /root/. For example:
* Option A uses the copy command, which is not a valid Linux command. The correct command is cp.
* Option C uses the -v option, which stands for verbose, and tells cp to print verbose output. This option does not affect the copying process, but only the output. It also does not include the -r or -R option, which is necessary to copy the sub-directories.
* Option D uses the rcp command, which stands for remote copy, and is used to copy files between different hosts on a network. This command is not relevant for copying files on the same host.
* Option E uses the -R option, which is correct, but also uses the . argument, which is incorrect. The dot (.) is a special character that matches any single character. This argument tells cp to copy only the files and directories that have a dot in their name, which may exclude some files and directories that do not have a dot.
References: 1: Cp Command in Linux (Copy Files) | Linuxize 2: cp command in Linux with examples - GeeksforGeeks 3: How to Copy Files and Directories in the Linux Terminal