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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content