/bin, /opt, /usr/local, /usr/bin – installation locations for software./etc – configuration files for applications./var – variable data, most commonly log files in /var/log or /var/lib.~ in a dotfile (e.g., .tmux)~/.config/From the book:
Most applications write their logs somewhere inside the
/vardirectory. Some activities will get logged to the main log at/var/log/syslog. Other things may get logged to/var/log/<application name>or/var/lib/<application name>.
Print:
catlessheadtailgrepawkEither you know (because you put it here) (e.g. /opt/python3)
Or you can find out
Applications need To run in the the terminal, either:
To see PATH, print it:
Option 1: append app’s path to PATH
Option 2: create symlink from app location to an on-PATH place
Source: Posit Docs here
[Unit]
Description=My Application Service
After=network.target # Or other dependencies
[Service]
ExecStart=/path/to/your/application/executable # Or a script that runs it
WorkingDirectory=/path/to/your/application/directory
Restart=always
User=your_username # Optional, run as a specific user
Group=your_group # Optional, run as a specific group
[Install]
WantedBy=multi-user.target