How do I obtain simple system information from the command line?
Issue
-
What commands do I use to access the following information?
-
Host name of the machine
-
Date and time
-
Red-Hat specific information
- Operating system version
- Registration status
- Active update repositories
-
The last boot time
-
List of non-system users
-
List of users that may have escalated privileges
-
How to redirect output of the above commands into files as to automate the process
Environment
- Red Hat Enterprise Linux
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.