AWS · मराठी आवृत्ती
Advanced Linux practice आणि labs
- Nginx access log मध्ये 404 status असलेल्या lines मोजायचा command लिहा.
- /etc मधल्या मागच्या दोन दिवसांत बदललेल्या .conf files शोधा.
- awk ने access log चे पहिले आणि नववे columns — सामान्य format मध्ये IP/status — print करा.
- >, >>, 2>&1 आणि pipe उदाहरणासह सांगा.
- nginx restart/reload आणि start/enable मधला फरक सांगा.
- Listening ports कोणत्या command ने दिसतात? Internet access ठरवायला अजून काय तपासाल?
- दर रविवारी 23:00 ला /home/ubuntu/backup.sh run करणारी cron entry लिहा.
- Lab: /var/www/html चा ~/backups/web-<date>.tar.gz करणारी script लिहा. सात दिवसांपेक्षा जुन्या backup files delete करण्याआधी list preview करा.
- Lab: scp ने upload; rsync ने बदललेल्या files sync.
Quick revision
grep text; find files; awk columns; sed replace. Pipes आणि > >> 2> 2>&1; root file साठी tee; multiline साठी here-doc. tar -czvf create, -xzvf extract. service start/stop/restart/reload/status; systemctl enable boot; journalctl logs. Network: ip a, ss, curl, dig, nc. Disk: df, du, lsblk, blkid, fstab. Cron पाच fields; export/बरोबर shell config; ssh -i, scp -r, rsync -avz. Scripts: #!/bin/bash, chmod +x, variables, if, for, functions.
आता AWS EC2 शिकूया.