The Unix Shell

xiaoxiao2021-03-06  77

A shell is a text-based interface between the user and the OS, which is a command interpreter that accepts statements (commands) issued by the user through the keyboard, mouse or other devices. A typical multiuser system should provide commands to the tasks which excute and manage programs, manipulate files and obtain system information. A shell could also be turned to a powerful programming language. This idea was pioneered in the UNIX OS. The following is the code of a simple shell script (OSP by Bic & Shaw) :

Count = 'WHO | WC -L'if Test $ COUNT -LT 8THEN Echo $ Count Users logged inElese Echo Too Many Usersfi

转载请注明原文地址:https://www.9cbs.com/read-94316.html

New Post(0)