7:25 PM FACTER command in Linux : showing system facts |
Facter - Collect and display facts/information about the system like uptime, OS info, memory usage, PATH, processor, n/w etc. FORMAT DESCRIPTION OPTIONS version: Print the version and exit. help: Print this help message. debug: Enable debugging. trace: Enable backtraces. timing: Enable timing. EXAMPLE
If no facts are specifically asked for, then all facts of the system will be printed.
We can specify a fact also and facter will return the info for that fact. For example if we want to know the uptime of the system,
You can use grep on top of facter to fetch any system information. Its really helpful to get any information about a system. Example:
|
|
Related blogs
You may also like to see:
[2016-05-11] | [Open System-Linux] |
An example to understand bash exit code $? in linux. |
[2014-02-19] | [Open System-Linux] |
Shift Key is not working!! Mapping keyboard keys from one to another |
[2016-10-12] | [Open System-Linux] |
Remove Control M characters from a script or any file in Linux/AIX |
[2015-05-25] | [Open System-Linux] |
Password-less Login to Linux/Unix Servers in Putty |
[2014-12-16] | [Open System-Linux] |
CUT command in Linux : cut the file vertically |
Total comments: 0 | |