You need to use the vim editor to create a script file to change and export the SHELL environmental variable as the C-shell. Complete the following tasks:

1. Open the vim editor with a new file named `/etc/pref_shell`.

2. Add the following lines to the file:
```
SHELL=/bin/csh
export SHELL
```

3. Save and close the file:
- Type `vi /etc/pref_shell` to open vim and create the file.
- Press the `a` key to enter insert mode (or `Ctrl + Insert` keys) and type the required text.
- Press the `Esc` key to exit insert mode.
- Type `:wq` to save and exit the file.

Answer :

Final answer:

To create the script file and change the SHELL environmental variable to the C-shell using vim, open the file, enter insert mode, type the required text, exit insert mode, and save the file.

Explanation:

1. Open the terminal and type the following command to open the vim editor and create a new file named "/etc/pref_shell":

```

vi /etc/pref_shell

```

2. After executing the command, you'll be in vim's normal mode. To enter insert mode, press the "a" key. You can also use "i" to insert text before the cursor. Alternatively, you can use "Shift + i" to insert at the beginning of the line.

3. Now, you can add the required lines to the file:

```

SHELL=/bin/csh

export SHELL

```

4. Once you've added the text, press the "Esc" key to exit insert mode and return to normal mode.

5. To save the changes and exit vim, type ":wq" and press Enter. This command will write the file and quit vim.

Your script file at "/etc/pref_shell" is now created and contains the necessary lines to change and export the SHELL environmental variable as the C-shell.

Learn more about script file

brainly.com/question/36354165

#SPJ11