How do I obtain simple system information from the command line?

Solution Unverified - Updated -

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In