

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: Help
incomplete
2: Flags
incomplete
3: Positional Arguments
incomplete
4: Exit Codes
incomplete
5: Standard Output
incomplete
6: Standard Error
incomplete
7: Standard In
incomplete
8: Piping
incomplete
9: Unix Philosophy
incomplete
This lesson's interactive features are locked, please to keep using them
Programming languages have functions, and functions take arguments. For example, this Python function takes two parameters, xp and level:
def print_player(xp, level):
print("Player has", xp, "xp and is level", level)
It can then be called with two arguments:
print_player(100, 2)
# Player has 100 xp and is level 2
In a shell, commands (programs) can also take arguments. For example, the cd command takes a single argument (the directory to change to):
cd /home/wagslane
Other commands might take multiple arguments. For example, the mv command takes two arguments: the file to move, and the destination to move it to:
mv file.txt dest/file.txt
The mv command lets you rename the file you're moving, so be careful to keep the same name, changing only the directory in which it's located!
Submit the shell checks.