/dev is for device files, ie special files that let you communicate directly with a physical piece of hardware
/etc is for configuration files, ie the comments tell how to setup a device or application
/var is for variable files, ie files who's content is regularly changing, the primary example is logs, but there are a lot of other files that land in /var (some are moving to /run, though)
13 Comments
TunaCowboy@lemmy.world · 12 pts · 2y
Blaster_M@lemmy.world · 12 pts · 2y
So does my website folder go under /var/www, /srv/www, or /home/www-data/www ?
mlfh@lemmy.ml · 5 pts · 2y
I put mine in /sbn
sandalbucket@lemmy.world · 3 pts · 2y
Well I put mine in /opt !
pivot_root@lemmy.world · 4 pts · 2y
All of the above.
mount --bindand never guess again!TunaCowboy@lemmy.world · 3 pts · 2y
Depends on what you specify in the config.
sandalbucket@lemmy.world · 7 pts · 2y
Ah yes, and usr/bin, and usr/sbin, of course
dhtseany@lemmy.ml · 6 pts · 2y
And /usr/local/sbin of course
Aquila@sh.itjust.works · 5 pts · 2y
What’s diff between device files vs config files vs variable files?
UID_Zero@infosec.pub · 6 pts · 2y
/dev is for device files, ie special files that let you communicate directly with a physical piece of hardware
/etc is for configuration files, ie the comments tell how to setup a device or application
/var is for variable files, ie files who's content is regularly changing, the primary example is logs, but there are a lot of other files that land in /var (some are moving to /run, though)
uid0gid0@lemmy.world · 2 pts · 2y
Two important things under /var are /var/spool for printing and /var/mail
boredsquirrel@slrpnk.net · 2 pts · 2y
Pretty outdated.
/run/mediais used by udisksctl to mount stuff that the user actually has access to.rdri@lemmy.world · 0 pts · 2y
Why etc and not cfg?