---
name: "kswitch"
section: "1"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/kswitch"
---

# kswitch(1)

switch primary ticket cache

## NAME

kswitch - switch primary ticket cache

## SYNOPSIS

**kswitch** {**-c** *cachename*\|**-p** *principal*}

## DESCRIPTION

kswitch makes the specified credential cache the primary cache for the collection, if a cache collection is available.

## OPTIONS

- **-c** *cachename*

  Directly specifies the credential cache to be made primary.

- **-p** *principal*

  Causes the cache collection to be searched for a cache containing credentials for *principal*.  If one is found, that collection is made primary.

## ENVIRONMENT

See *kerberos* for a description of Kerberos environment variables.

## FILES

- **@CCNAME@**

  Default location of Kerberos 5 credentials cache

## SEE ALSO

*kinit*, *kdestroy*, *klist*, *kerberos*

## AUTHOR

MIT

## COPYRIGHT

1985-2026, MIT
