ใน Ubuntu, sh
หรือเพียงแค่ชี้ไปที่/bin/sh
ควรรันล่ามคำสั่งเริ่มต้นซึ่งสำหรับ Ubuntu 1อ้างถึงเชลล์ Debian Almquistdash
sh
dash
dash
เชลล์เป็นตัวแปลบรรทัดคำสั่งสำหรับระบบ มีหลายเปลือกหอยอื่น ๆ เช่นมีbash
, csh
, zsh
ฯลฯ นี่คือข้อความที่ตัดตอนมาสั้น ๆ จากหน้าคนของdash
:
The shell is a command that reads lines from either a file or the termi‐
nal, interprets them, and generally executes other commands. It is the
program that is running when a user logs into the system (although a user
can select a different shell with the chsh(1) command). The shell imple‐
ments a language that has flow control constructs, a macro facility that
provides a variety of features in addition to data storage, along with
built in history and line editing capabilities. It incorporates many
features to aid interactive use and has the advantage that the interpre‐
tative language is common to both interactive and non-interactive use
(shell scripts). That is, commands can be typed directly to the running
shell or can be put into a file and the file can be executed directly by
the shell.
มีบทเรียนมากมายเกี่ยวกับเปลือก Linux คุณสามารถเริ่มต้นด้วยบทความ Wikipediaนี้
มาถึงคำถามของคุณถ้าคุณเขียนsh file
, dash
รันfile
สำหรับคุณ