How to Create Directory in Temporary Directory

# to create a 'test' directory in /run

cd /run

vim autocreatedir.conf

# paste "d /run/test 0755 root root -" to the autocreatedir.conf and then save and exit with ":wq"

# manually create it without reboot as bellow

sudo systemd-temfiles --create /run/autocreatedir.conf

 

Scroll to Top