The base filesystem is laid out as follows.
A few standard linux directories are now considered private, and only included for compatibility with the current libc.
/bin <-- contains latest node executable /lib /usr /etc
All user-editable content should be in user-directories.
The root user’s home is in it’s standard
/root <-- root user /home <-- non-root users
The [[root]] user is special because it boots the system.
Other standard kernel-provided file systems are mounted in their usual locations.
/dev <-- devfs /proc <-- procfs /sys <-- sysfs /tmp <-- tmpfs
There are no global services, modules, or commands.
Directories that were once system-leve, like
var are now user-local.
$HOME/ bin/ <-- executable commands ls, cp, mv lib/ node_modules/ <-- modules installed by npkg log/ <-- logs from init jobs etc/ <-- configuration files var/ <-- persistent data tmp/ <-- ephemeral data
bincontains executable commands, linked during
node_moduleswhich holds modules installed by
logcontains output from services and jobs.
etccontains local config values for services and jobs
varholds persistent data for services and jobs.
tmpholds ephemeral data for services and jobs.
These directories are used assumed by the