Bash and Zsh both have configuration files that run automatically each time you start a new shell session. These files are used to set up your shell environment. They can be used to set up aliases, functions, and environment variables.
These files are located in your home directory (~) and are hidden by default. The ls command has a -a flag that will show hidden files:
ls -a ~
.bashrc is probably the file you want to edit..zshrc is probably the file you want to edit or create if it doesn't yet exist.As part of your audit, you're trying to figure out what shell commands run automatically when a user logs in on the machine. You need to confirm which shell configuration file is being used.
nano ~/.bashrc
echo "Hello from the shell!"
You can use Ctrl+O to save the file (confirm any prompts with "enter"), and then Ctrl+X to exit the editor. (There should be a list of commands at the bottom of the screen.)
Answer the question.