0

I want to create a date stamped log file called e.g. log_file_10_11_2017 containing

  • a list of who is logged into the system,
  • the disk usage and
  • my currently running processes.

The file I want to save to an existing directory situated in my home directory, and I would generate the filename using

file=$log_file
day=$(date +%b-%d-%y)
file_name=$log_file-$day

As for the remaining tasks: I am very new to write shell script, any help would be appreciated.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.