thanks for your reply. I have almost tried everything. but those are giving the overall working time instead of idle time. For ex, I have used "w" command, my system login tme 2021-01-27 10:13. current time is 3:13 PM. If i run this command it shows IDLE as 5:05 m. But I have only taken 45 mins...