31
submitted 2 months ago by hesburger@sopuli.xyz to c/coolguides@sopuli.xyz
top 11 comments
sorted by: hot top controversial new old
[-] sandalbucket@lemmy.world 2 points 2 months ago

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

[-] dhtseany@lemmy.ml 2 points 2 months ago

And /usr/local/sbin of course

[-] Blaster_M@lemmy.world 2 points 2 months ago

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

[-] pivot_root@lemmy.world 1 points 2 months ago

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

[-] mlfh@lemmy.ml 1 points 2 months ago

I put mine in /sbn

[-] Aquila@sh.itjust.works 1 points 2 months ago

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

[-] UID_Zero@infosec.pub 2 points 2 months ago

/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 points 2 months ago

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

[-] TunaCowboy@lemmy.world 1 points 2 months ago
[-] boredsquirrel@slrpnk.net 1 points 2 months ago

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

[-] rdri@lemmy.world 0 points 2 months ago

Why etc and not cfg?

this post was submitted on 01 May 2024
31 points (97.0% liked)

Cool Guides

186 readers
1 users here now

founded 2 months ago
MODERATORS