1. Position on you home folder: cd $HOME 2. Create the directory 3. Inside homework7 folder create the file homework7.sh
Posted: Tue Jul 12, 2022 8:20 am
1. Position on you home folder: cd $HOME 2. Create the directory 3. Inside homework7 folder create the file homework7.sh 4. Inside homework7 folder create 5 files:3 files with 50M size and 2 files 2G size 5. Modify the permission of the 5 files. Assign permission to read, write and execute ONLY to you. 6. Modify the timestamp of the 3 files of 50M size. Assign a new timestamp from any date of 4 months ago. Do not modify the timestamp of the 2 files of 2G size 7. Create the following logic inside the homework7.sh script a. Display: Executing find to detect files older than 30 days at <Sat Jul 2 09:55:58 EDT 2022> <this is the date and time> record it to the log file Execute the find command to detect those files older than 30 days and record that on the log file Wait for 30 seconds to execute the next command b. homework7_<username> : For instance homework7_otoledo C. d. Display: Executing find to detect files larger than 1G at <Sat Jul 2 09:56:08 EDT 2022> <this is the date and time> record it to the log file e. Execute the find command to detect those files larger than 1G and record that on the log file f. Display: Finishing at <Sat Jul 2 09:56:08 EDT 2022> record it to the log file