• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

ac Command Examples in Linux

by admin

ac command prints out a report of connect time (in hours) based on the logins/logouts in the current wtmp file. A total is also printed out.

Syntax:

# ac [options]

Example:

$ ac
    total     1774.81

ac Command Examples

1. To get the connect time for a user:

# ac root

2. To get the daily totals:

# ac -d

3. To get the individual totals:

# ac -p

4. To get the verbose internal information:

# ac --debug

5. To get the version of the “ac” command:

# ac -V

Filed Under: Linux

Some more articles you might also be interested in …

  1. sort: command not found
  2. CentOS / RHEL 6 : How to configure kdump
  3. CentOS / RHEL : Move a Physical Volume from an existing Volume Group to another Volume Group
  4. logwatch : command not found
  5. How To Use distro-sync Option With dnf To Upgrade OS (CentOS/RHEL 8)
  6. ifconfig: command not found
  7. nixos-rebuild Command Examples in Linux
  8. binwalk: command not found
  9. hdiutil Command Examples in Mac
  10. How to install packages using dnf in CentOS/RHEL 8

You May Also Like

Primary Sidebar

Recent Posts

  • qm Command Examples in Linux
  • qm wait Command Examples in Linux
  • qm start Command Examples in Linux
  • qm snapshot Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright