Task: Work with files, directories, and processes
-
Create a directory named
DevOpsand inside it, create 5 text files (log1.txt,log2.txt...). -
Add sample content to each file using
echoorcat > filename. -
Find files modified in the last 24 hours:
Click to view Hint !!
find ~/DevOps -type f -mtime -1 -
List only files owned by you in
/etc:Click to view Hint !!
find /etc -type f -user $(whoami) 2>/dev/null
-
Bonus: Monitor system resource usage using
top,htop, orvmstat.
Tip
Use Hint section whenever stuck, google the command and go through its usage and functionality.