• 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. How to modify the iSCSI initiator ID in Linux
  2. When to use rescan-scsi-bus.sh -i (LIP flag) in CentOS/RHEL
  3. How To Change Pacemaker Cluster Heartbeat Timeout In CentOS/RHEL 7
  4. How to Partition DM-Multipath Pseudo Devices in CentOS/RHEL
  5. Active FTP vs. Passive FTP
  6. How to use FTP under Linux to transfer files
  7. CentOS / RHEL 5 : How to use the faillog command to track failed login attempts
  8. lspcmcia Command Examples in Linux
  9. Magento 2 Rabbitmq configuration
  10. Understanding mpathconf Utility to configure DM-Multipath

You May Also Like

Primary Sidebar

Recent Posts

  • grpck command – Remove corrupt or duplicate entries in the /etc/group and /etc/gshadow files.
  • xxd command – Expressed in hexadecimal form
  • sesearch: command not found
  • macof: command not found

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright