

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 3
click for more info
Not enough gems
Cost: 6 gems
1: Open a Terminal
incomplete
2: Installing Windows Subsystem for Linux
incomplete
3: Terminal Alternatives
incomplete
4: Download Worldbanc
incomplete
5: Shell Configuration
incomplete
6: PATH Config
incomplete
7: Shell Aliases
incomplete
8: Man
incomplete
9: Symbolic Links
incomplete
10: Top
incomplete
11: Interrupt
incomplete
12: Kill
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
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
# or, if you're using Zsh:
nano ~/.zshrc
In nano, use Ctrl+O to save the file (confirm any prompts with Enter), then Ctrl+X to exit. The command list is at the bottom of the screen.
echo "Hello from the shell!"
Answer the question.