Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 856 Bytes

File metadata and controls

26 lines (21 loc) · 856 Bytes

Day 2: Basic Linux Commands

Task: Work with files, directories, and processes

  1. Create a directory named DevOps and inside it, create 5 text files (log1.txt, log2.txt ...).

  2. Add sample content to each file using echo or cat > filename.

  3. Find files modified in the last 24 hours:

    Click to view Hint !!
    find ~/DevOps -type f -mtime -1
  4. List only files owned by you in /etc:

    Click to view Hint !!
    find /etc -type f -user $(whoami) 2>/dev/null
  5. Bonus: Monitor system resource usage using top, htop, or vmstat.

Tip

Use Hint section whenever stuck, google the command and go through its usage and functionality.