You Asked: How Do I Run a Linux Command Automatically?

You Asked: How Do I Run a Linux Command Automatically?
Contents

How do I run a command in Linux?

Launch a terminal from your desktop’s application menu and you will see the bash shell. There are other shells, but most Linux distributions use bash by default. Press Enter after typing a command to run it. Note that you don’t need to add an .exe or anything like that – programs don’t have file extensions on Linux.

How do you run a command every minute?

You can set up a bash script that loops forever executing that command then sleeping for 5 minutes. When you start up your computer press ctrl + alt + t and type amazon-sync then minimize the terminal window. Command will run once every 5 minutes (300 seconds).

James H. Sterling
Author

James H. Sterling

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.