Linux Training Practice Tasks

Beginner → Intermediate → Advanced Level Training Workbook

Beginner Level

1. File & Directory Management

  1. Display your current working directory
  2. List all files including hidden files
  3. Create a new directory named "practice"
  4. Create a text file inside the directory
  5. Edit the file and add sample content
  6. Copy the file to another name
  7. Rename the copied file
  8. Delete the renamed file

2. Permissions & Ownership

  1. View file permissions in a directory
  2. Change file permissions to allow execution
  3. Restrict file access to owner only
  4. Change ownership of a file
  5. Change group ownership of a file

3. User Management

  1. Create a new user account
  2. Set password for the user
  3. Switch to the new user
  4. Add the user to sudo group
  5. Remove the user account

4. Process & System Monitoring

  1. View currently running processes
  2. Monitor system performance
  3. Identify high CPU usage process
  4. Terminate a running process

5. Service Management

  1. Check status of a running service
  2. Start a stopped service
  3. Stop a running service
  4. Restart a service
  5. Enable a service at system startup

6. Networking Basics

  1. Check system IP address
  2. Test internet connectivity
  3. View open ports
  4. Display active network connections
  5. Test a local web service

7. Disk & Memory Management

  1. Check available disk space
  2. Find size of a directory
  3. Check memory usage
  4. Check CPU load

Intermediate Level

8. File Search & Text Processing

  1. Search for a keyword inside multiple files
  2. Count number of lines, words, and characters
  3. Sort file content alphabetically
  4. Remove duplicate lines
  5. Extract specific columns from a file

9. Compression & Backup

  1. Create a compressed backup of a directory
  2. Extract a compressed archive
  3. Schedule automatic backups
  4. Verify backup integrity

10. Environment & System Configuration

  1. View and modify environment variables
  2. Change default shell for a user
  3. Configure system hostname
  4. Create command aliases
  5. Configure timezone and date

11. Log Management

  1. Locate system log files
  2. View recent system logs
  3. Monitor logs in real time
  4. Search logs for errors
  5. Archive old log files

12. Networking & Firewall

  1. Check firewall status
  2. Allow a service through firewall
  3. Block a specific port
  4. Test firewall rules
  5. Configure basic port forwarding

13. Automation & Scheduling

  1. Create a shell script
  2. Make the script executable
  3. Schedule a cron job
  4. Log scheduled job output
  5. Debug failed cron jobs

14. Package Management

  1. Install a software package
  2. Update installed packages
  3. Remove unused packages
  4. Search for packages
  5. View installed packages

Advanced Level

15. Server & Web Management

  1. Configure a web server
  2. Host multiple websites
  3. Enable SSL certificates
  4. Configure virtual hosts
  5. Troubleshoot web server issues

16. Storage & File Systems

  1. Create and mount partitions
  2. Configure permanent mounts
  3. Manage swap space
  4. Monitor disk I/O
  5. Recover corrupted file systems

17. Security Hardening

  1. Secure SSH access
  2. Disable root login
  3. Configure fail2ban
  4. Audit user activity
  5. Implement basic intrusion detection

18. Performance Optimization

  1. Analyze system bottlenecks
  2. Optimize memory usage
  3. Tune kernel parameters
  4. Optimize running services
  5. Benchmark system performance

19. Containers & Virtualization

  1. Install container engine
  2. Create custom containers
  3. Manage container networking
  4. Persist container data
  5. Monitor container resources

20. Disaster Recovery

  1. Implement full system backups
  2. Test restore procedures
  3. Create recovery documentation
  4. Simulate failure scenarios
  5. Implement high availability setup