this post was submitted on 01 May 2024
73 points (92.0% liked)

Cool Guides

207 readers
10 users here now

founded 6 months ago
MODERATORS
 
top 13 comments
sorted by: hot top controversial new old
[–] [email protected] 11 points 6 months ago
[–] [email protected] 10 points 6 months ago (3 children)

So does my website folder go under /var/www, /srv/www, or /home/www-data/www ?

[–] [email protected] 3 points 6 months ago

All of the above. mount --bind and never guess again!

[–] [email protected] 3 points 6 months ago (1 children)
[–] [email protected] 3 points 6 months ago

Well I put mine in /opt !

[–] [email protected] 2 points 6 months ago

Depends on what you specify in the config.

[–] [email protected] 7 points 6 months ago (1 children)

Ah yes, and usr/bin, and usr/sbin, of course

[–] [email protected] 6 points 6 months ago

And /usr/local/sbin of course

[–] [email protected] 5 points 6 months ago (1 children)

What’s diff between device files vs config files vs variable files?

[–] [email protected] 6 points 6 months ago (1 children)

/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)

[–] [email protected] 2 points 6 months ago

Two important things under /var are /var/spool for printing and /var/mail

[–] [email protected] 2 points 6 months ago

Pretty outdated. /run/media is used by udisksctl to mount stuff that the user actually has access to.

[–] [email protected] 0 points 6 months ago

Why etc and not cfg?