Introduction Linux Shell and Shell Scripting
shell script What is Shell Script · Allow you to run if-else statements and loops · A file that contains a series of commands · A plain text file · It executes the Our first shell script · Run nano · nano should open up and present an empty file for you to work in · Then press Ctrl-X on your keyboard to Exit nano
Use set to set shell options so that calling your script as bash script_name does not break its functionality Restricting all executable shell scripts to bash Bash scripting is a powerful way to automate tasks which you need to execute on a computer Put simply, a Bash script is just a collection of Bash commands
Shell Script เป็นภาษาโปรแกรมมิ่งที่ใช้สำหรับสร้างสคริปต์ที่ทำงานบนระบบปฏิบัติการ Linux หรือ Unix-based อื่นๆ เช่น macOS, FreeBSD, ฯลฯ Use set to set shell options so that calling your script as bash script_name does not break its functionality Restricting all executable shell scripts to bash