Interview Prep/Linux/Networking, SSH & Scheduling

What is `at` and when would you use it?

BeginnerConceptNetworking, SSH & Scheduling
Answer

at runs a command once at a future time.

echo "systemctl restart api" | sudo at 02:00
echo "/opt/rollback.sh" | at now + 30 minutes
atq; atrm 3

Classic use: schedule a firewall rollback before applying risky remote rules, then cancel it if you can still log in. systemd-run --on-active= is the systemd equivalent.

All Linux questions Roadmap: Linux

More on Networking, SSH & Scheduling