Linux Commands Examples

A great documentation place for Linux commands


clean up leftover sockets in a directory


dbus-cleanup-sockets [DIRECTORY]

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


BIN="awk sh cat chown date dmesg find env egrep gawk hostname ln mkdir mknod mktemp more netstat pwd stty touch uname basename chgrp cp df false grep ipcalc login mount ping rm sleep sync true usleep bash chmod cut echo fgrep gzip kill ls mv ps sed sort tar umount vi dd traceroute plymouth dbus-cleanup-sockets dbus-daemon dbus-monitor dbus-send dbus-uuidgen zcat"


The dbus-cleanup-sockets command cleans up unused D-Bus connection sockets. See for more information about the big picture.

If given no arguments, dbus-cleanup-sockets cleans up sockets in the standard default socket directory for the per-user-login-session message bus; this is usually /tmp. Optionally, you can pass a different directory on the command line.

On Linux, this program is essentially useless, because D-Bus defaults to using "abstract sockets" that exist only in memory and don’t have a corresponding file in /tmp.

On most other flavors of UNIX, it’s possible for the socket files to leak when programs using D-Bus exit abnormally or without closing their D-Bus connections. Thus, it might be interesting to run dbus-cleanup-sockets in a cron job to mop up any leaked sockets. Or you can just ignore the leaked sockets, they aren’t really hurting anything, other than cluttering the output of "ls /tmp"


Please send bug reports to the D-Bus mailing list or bug tracker, see


dbus-cleanup-sockets was adapted by Havoc Pennington from linc-cleanup-sockets written by Michael Meeks.

How can this site be more helpful to YOU ?

give  feedback