Objective

Hands-on practice with file transfer & email in a Linux environment.

Tools & Technologies

  • scp
  • rsync
  • curl
  • sendmail
  • mutt

Key Commands

rsync -avz --progress src/ user@host:/dest/
curl -F '[email protected]' https://api/upload
echo 'body' | mail -s 'Subject' user@host

Lab Steps

01
rsync Incremental Sync

Use rsync with --delete and --exclude for efficient backups over SSH.

02
curl File Upload

Upload files to web APIs using curl with multipart form data.

03
Sending Email from CLI

Configure and send email from the command line using sendmail and mutt.

04
SFTP Session

Use sftp interactively to browse and transfer files securely.

Challenges Encountered

  • rsync deletes destination files not in source when --delete is used
  • sendmail requires proper MTA configuration

Key Takeaways

  • rsync's --dry-run flag previews what will change
  • Always test email delivery to spam folders