Aliases II Source Command

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are asking about.>
https://www.codecademy.com/courses/learn-the-command-line/lessons/environment/exercises/aliases-ii?action=lesson_resume&link_content_target=interstitial_lesson

<Below this line, describe in what way does your code behave incorrectly? Include ALL error messages.>
I went through every step and then entered clear and I get this message now. I’ve tried redoing the entire lesson but I have no idea what I’m doing wrong.

Blockquote
source bash: source: filename argument required source: usage: source filename [arguments]

<Below this line, add a screenshot of your whole web browser so that we can see what you see.>

if we run:

source --help

we can see:

source: source filename [arguments]

that the source command requires a filename, because the source commands executes from a file, this allows us to make to change (for example to bash profile) and load those changes (using source) so we don’t have to login out/log back in/reboot the entire system!

2 Likes

So, does that mean my mistake is not adding the filename or am I completely off? I’m a wee bit lost.

yes, you didn’t specify a file(name), a file(name) must be specified for the source command (the error says as much)

maybe you need to look into what source does?

2 Likes

maybe you need to look into what source does?

Yeah, I think you’re right. thanks for the help.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.