Bag of Tricks

Pages

  • Home
  • About Us

Thursday, February 24, 2011

Clean up old xauth entries

In a followup to a previous post on forwarding x sessions and su, here's a quick way to clean up old xauth entries.

> xauth list | cut -f1 -d\  | xargs -i xauth remove {}


You'll recall that cleanup will not happen automatically for the sessions that got su'ed to, so if you have several entries hanging around the one-liner will make quick work of them.
Posted by Bill at Thursday, February 24, 2011
Labels: unix

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2021 (1)
    • ►  March (1)
  • ►  2015 (2)
    • ►  May (1)
    • ►  February (1)
  • ►  2013 (1)
    • ►  December (1)
  • ►  2012 (4)
    • ►  March (1)
    • ►  February (2)
    • ►  January (1)
  • ▼  2011 (21)
    • ►  December (1)
    • ►  August (2)
    • ►  July (4)
    • ►  June (4)
    • ►  May (3)
    • ►  March (2)
    • ▼  February (5)
      • Clean up old xauth entries
      • On the subject of support requests
      • Oracle database file migration script
      • Grid control 11g... and unable to patch using depl...
      • x forwarding and sudo for oracle installs
  • ►  2010 (6)
    • ►  November (1)
    • ►  August (1)
    • ►  March (3)
    • ►  January (1)
  • ►  2009 (8)
    • ►  April (2)
    • ►  March (2)
    • ►  February (1)
    • ►  January (3)
  • ►  2008 (12)
    • ►  December (1)
    • ►  November (2)
    • ►  October (1)
    • ►  May (1)
    • ►  April (2)
    • ►  March (2)
    • ►  February (3)
  • ►  2007 (7)
    • ►  May (7)

Contributors

  • Bill
  • Josh
  • Matt
Powered by Blogger.