klist
securityLinux/Unix/macOS
The klist command is one of the most frequently used commands in Linux/Unix-like operating systems. klist List Kerberos tickets in credential cache
Quick Reference
Command Name:
klist
Category:
security
Platform:
Linux/Unix/macOS
Basic Usage:
klist [options] [arguments]
Common Use Cases
Syntax
klist [options]
Options
Option | Description |
---|---|
-e |
Display encryption types for tickets |
-c cache_name |
Use an alternate credentials cache |
-A |
Display all credential caches |
-k |
List keys in keytab instead of tickets |
-t |
Show keytab entry timestamps |
-K |
Show keytab entries by key value |
-f |
Show ticket flags |
-s |
Set exit status based on valid TGT existence (0 if exists, 1 if not) |
-a |
Display addresses in tickets |
-n |
Show numeric addresses instead of host names |
-v |
Verbose output mode |
--version |
Display version information |
--help |
Display help message |
Examples
How to Use These Examples
The examples below show common ways to use the klist
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
klist