|মডিউল ১৫: Shell Scripting — Control Flow, Loops ও Functions
ubuntu@devops-lab — bash↑↓ history · Ctrl+L clear · Ctrl+C cancel
একটি নতুন ফাইল `check.sh` তৈরি করো যা পরীক্ষা করবে `/etc/passwd` ফাইলটি আছে কি না — স্ক্রিপ্টে `if [ -f /etc/passwd ]; then echo "Passwd file exists"; fi` লেখো।
+১০ XP
Hint

`echo 'if [ -f /etc/passwd ]; then echo "Passwd file exists"; fi' > check.sh` কমান্ড দাও।

💡 সমাধান দেখুন
echo 'if [ -f /etc/passwd ]; then echo "Passwd file exists"; fi' > check.sh
Welcome to 🅾🅾🅰🅰🅾🆆 Terminal!
Type a Linux command to get started. Try: whoami
ubuntu@devops-lab:~$