Home » LPI » 117-201 » How would you find out the version of the kernel in /usr/src/linux?
How would you find out the version of the kernel in /usr/src/linux?
A. cat /usr/src/linux/.version
B. cat /usr/src/linux/VERSION
C. Look in the README
D. head -4 /usr/src/linux/Makefile
Correct Answer: D
Explanation/Reference:
Explanation: The head command is used to display the first few lines of a file. The default is 10 lines but you can specify a number (in this case 4). The makefile is a script the tells the make utility how to build a program or programs (in this case, the kernel). Most makefiles contain comments at the top of the file which describe the program and version information.
Reference: http://www.opussoftware.com/tutorial/TutMakefile.htm
Incorrect Answers
A: .version doesn’t usually exist as a subdirectory of file. Rather, it is usually a directory /usr/src/linux.version or /usr/src/linux[VERSION] containing the kernel source.
B:VERSION doesn’t usually exist as a subdirectory of file. Rather, it is usually a directory /usr/src/linux.version or /usr/src/linux[VERSION] containing the kernel source.
C: There usually isn’t a README file containing version information.
Download Printable PDF. VALID exam to help you PASS.
|
|