Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDelicia Wharton
UX Design Techdegree Student 11,098 PointsWhy do the Command Arguments exist?
I'm having trouble wrapping my head around the concept of this "command arguments" thing. Like I don't understand why it is there, and it's making it hard for me to absorb the information.. Are the Command Arguments there to justify the existence of a command line's content?
2 Answers
Steven Parker
231,275 PointsThere are two parts to a command line, the command itself and the command arguments. They work together to perform the desired task.
Using an example from the video, if you give the command "cat", the system knows that you want to see the contents of a file .. but which one? So the argument "statue.txt" is the name of the file that the system can find. So when used together, the entire command "cat statue.txt
" causes the contents of that file to appear on the screen.
Delicia Wharton
UX Design Techdegree Student 11,098 PointsThank you so much! I ended up watching the videos again a few times and practiced the cat, ls, and cd commands on my computer. I really appreciate it and Iβm glad itβs clearer now