What is this folder: /run/user/1000
on my Fedora system and what does it do?
~ $ df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 1.2G 20K 1.2G 1% /run/user/1000
EDIT: 7 june 2019.
My two answers don't agree on what directory or where the files stored in this place were:
Prior to
systemd
, these applications typically stored their files in/tmp
.
And again here:
/tmp
was the only location specified by theFHS
which is local, and writable by all users.
The purposes of this directory were once served by
/var/run
. In general, programs may continue to use/var/run
to fulfill the requirements set out for/run
for the purposes of backwards compatibility.
And again here:
Programs which have migrated to use
/run
should cease their usage of/var/run
, except as noted in the section on/var/run
.
/var/run
was never used for the same purpose as/run/user/$id
./var/run
is writable by root only, and thus not usable by users./run/user/$id
is for normal users./var/run
is also not deprecated by the existence of/run/user/$id
either. They serve different purposes./var/run
is for system wide services./run
however does deprecate/var/run
but this is a separate matter entirely, and unrelated to/run/user/$id
. – phemmer Jun 07 '20 at 03:32