สรุป Note เกี่ยวกับ Bash Shell

หลังจากไม่ได้แค่พวก Bash Script มาปีนิดๆ วันนี้ลองมาเล่น ubuntu ปรากฏว่าลืม เลยมาเขียน Note นิดหน่อย

  • บรรทัดแรก ต้องใส่
#!/bin/bash

ถ้าไม่ใส่ชื่อ Error ว่า "command not found"

  • ลอง Run แล้วขึ้น Error "Permission denied" ต้องเพิ่มสิทธิ Execute
chmod +x bashshellfile

Beginners/BashScripting on Ubuntu


Discover more from naiwaen@DebuggingSoft

Subscribe to get the latest posts to your email.