Hot answers tagged


if the user is allowed to use at command, this is the perfect use for that: $ at 08:00 022116 at> at> <----------- ctrl-d here job 9 at 2016-02-21 08:00 if you get a message like "user blah is not able to run at", ask the syadmin to add this user to at.allow file or remove from at.deny file, depending on how it is used in your ...


The accounting utilities (e.g. GNU's implementation) track user activity and provide a number of tools to report on it; for example, lastcomm will list the last commands executed, and sa (run as root) will provide an activity summary. To show the amount of time a given process ran, do something like sudo sa | grep chromium This will output a number ...


Sample to try #!/bin/bash #timing in minutes with %m start=`date +%m` echo 'Start:' $start #do something e.g. wait for 1.30 minutes sleep 90 `end=`date +%m` echo 'End: '$end echo 'runtime: '$runtime


Usually that is ntp (the daemon named ntpd) for Network Time Protcol. For example: Network Time Protocol daemon (Arch) RHEL7: How to set up the NTP service. In Fedora, you may be looking for timedatex.service which is related to this package: timedatex is a D-Bus service that implements the org.freedesktop.timedate1 interface. It can be used to read ...


#!/bin/bash NOW=$(date +"%s") SOON=$(date +"%s" -d "3:00 PM Sun") INTERVAL=$(($SOON-$NOW)) sleep $INTERVAL GNU date allows you to specify the format of the output, as well as the date to display. So I use the format string "%s" to get the time in seconds since the epoch, and the same for the arbitrary time using the -d paramater. Get the difference, and ...


Quoting 'TNW' When find figures out how many 24-hour periods ago the file was last accessed, any fractional part is ignored, so to match -atime +1, a file has to have been accessed at least two days ago. So to find a file that is only a day old, you can use either of the snippets below find /home/backups/* -mtime +0 or find . -mmin +$((60*24))

Only top voted, non community-wiki answers of a minimum length are eligible