Linux Foundation Certified IT Associate hands-on labs. System logging, user administration, and container fundamentals aligned with the LFCA exam objectives.
System logging & journald, user & group administration, and container basics - core LFCA exam domains.
journalctl queries the systemd journal - a centralized log store for kernel, services, and applications. The -n flag limits output. --no-pager prints directly to the terminal (best for exams and scripts).-u filters by systemd unit (service). This is the fastest way to troubleshoot one service without scanning the entire journal.-u with time filters like --since "1 hour ago" in real environments.-p to filter by priority. err focuses on serious problems. Use -b to limit results to the current boot session.-p err, then widen to warning, then info as needed./var/log/journal, set Storage=persistent in /etc/systemd/journald.conf, and restart journald./var/log/auth.log makes review and forwarding easier.developers group, add two user accounts (alice and bob), assign them to the group, set secure passwords, grant alice sudo privileges, and verify access configuration. This is a core LFCA security and administration task.id to quickly confirm which groups a user belongs to. This matters for access and sudo.getent is preferred because it works with local files and directory services.-G sets supplementary groups. -g sets the primary group. This is a common confusion point./etc/shadow. Never store plaintext passwords in scripts.-aG to append. Using -G without -a can remove existing group access.nginx:alpine, run a container named webserver with port mapping 8080:80, inspect and view logs, then stop and remove the container. This lab builds LFCA DevOps fundamentals.docker ps (running) vs docker ps -a (all). LFCA often checks this.docker ps and exit codes.