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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • 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. doxygen: A documentation system for various programming languages
  2. pkcon Command Examples in Linux
  3. Linux “rm” Command Examples
  4. sic Command Examples in Linux
  5. CentOS / RHEL : How to move a Volume Group from one system to another
  6. core-validate-commit: Validate commit messages for Node.js core
  7. kiwi-ng Command Examples
  8. kwrite Command Examples in Linux
  9. gt Command Examples
  10. gs Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright