Which of the following steps is not performed while creating a shell script?
- Create a file with commands
- Make the file executable
- Login as root on the server console
- Put
#!/bin/bash
as the first line
Explanation & Hint:
The step that is not performed while creating a shell script is: Login as root on the server console Creating a shell script doesn’t necessarily require logging in as the root user on the server console. The other steps you mentioned are part of creating a shell script:
Logging in as root is not a necessary step for creating a shell script, unless the script you are creating has a specific need to be run by the root user. Typically, you create and edit scripts as a regular user and then execute them with appropriate permissions based on the user’s requirements. |