Unix shell scripting

In Unix, the Command Shell is the native command interpreter. It provides a command line interface for the users to interact with the operating system.
Unix commands may also be executed non-interactively in the form of a Shell Script. The script is a series of commands that will be run together.
Shell scripts can be used for a variety of tasks from customizing your environments to automating your daily tasks.
Shells read configuration files on multiple circumstances that differ depending on the shell. These files usually contain commands for that particular shell and are executed when loaded; they are usually used to set important variables that are used to find executables, like $PATH, and others that control the behavior and appearance of the shell.

The Bourne Shell (sh): This was one of the first shell programs that came with Unix and is also the most widely used one. It was developed by Stephen Bourne. The ~/.profile file is used as a configuration file for sh. This is also the standard shell used for scripting.

The C Shell (csh): The C-Shell was developed by Bill Joy, modeled on the C programming language. It was intended to improve interactivity with features such as listing the command history and editing commands. The ~/.cshrc and the ~/.login files are used as configuration files by csh.

The Bourne Again Shell (bash): The bash shell was developed for the GNU project as a replacement for sh. The basic features of bash are copied from sh, and also adds some of the interactivity features from csh. he ~/.bashrc and the ~/.profile files are used as configuration files by bash.

2 Comments

If you have any doubts, Please let me know
Thanks!

  1. I want a shell script to find the largest number with it’s position ( numbers are given by user)!

    ReplyDelete
    Replies
    1. https://vikramsomai.blogspot.com/2023/06/write-shell-script-to-find-largest.html

      Delete

Post a Comment

If you have any doubts, Please let me know
Thanks!

Previous Post Next Post