Flashcards · Linux Commands · Free
Linux Commands flashcards, generated for you.
Example Linux Commands study cards to learn from right now — then generate a full set from your own notes (plus a practice quiz) and export to Quizlet or Anki. Free, no account needed.
Example Linux Commands flashcards
What command shows all currently running services/processes?
ps aux (shows all processes with details) or systemctl list-units --type=service (shows systemd services)
How do you start, stop, or restart a service in systemd?
systemctl start/stop/restart <service-name> (requires sudo for most services)
What command enables a service to auto-start on boot?
systemctl enable <service-name> (creates symlink in /etc/systemd/system/)
How do you check if a service is running and its status?
systemctl status <service-name> (shows enabled/active state and recent logs)
What's the difference between 'systemctl restart' and 'systemctl reload'?
restart: stops then starts service (breaks connections). reload: reloads config without stopping (graceful, if supported)
How do you view real-time service logs?
journalctl -u <service-name> -f (follows log output; -n 50 shows last 50 lines)
What pattern checks if a service failed and shows why?
systemctl status <service-name> then journalctl -u <service-name> -e for detailed error context
How do you find which service is listening on a specific port?
sudo lsof -i :<port> or sudo netstat -tlnp | grep <port> (netstat deprecated, use ss -tlnp)
What command gracefully reloads all systemd configuration without restarting services?
systemctl daemon-reload (required after editing .service files in /etc/systemd/system/)
How do you mask (disable) a service so it cannot be started even manually?
systemctl mask <service-name> (creates /etc/systemd/system/<service-name>.service → /dev/null symlink)
Make your own Linux Commands study set
Flashcards for related topics
Studying Linux Commands to build with AI? MindloomHQ turns it into real skills — structured courses, agent projects, and certificates.
Explore MindloomHQ →