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 trialayub ali
Courses Plus Student 723 Pointshelp with this
what does this slash / means in the cmd line what; for exameple mv docs/documents .
1 Answer
Carlos Lantigua
5,938 Pointsback slash is usually only used in my experience when typing a directory or file name that has a space such as cd home/my\ document/my\ list/. At least in GitBash this is how it comes out. The forward slash as stated above is just a special character used to display a sub-directory.
rigel hope
9,890 Pointsrigel hope
9,890 Pointsin the command line the forward-slash ( / ) and the back-slash ( \ ) mean different things
on windows command line, the back-slash ( \ ) is a character that separates subdirectories, and the forward-slash ( / ) usually connotes a command line option of some kind.
on mac and other unix-es (like linux or *BSD), the forward-slash ( / ) is the directory separator character, and command line options (or "flags") use "-" or "--".
you're using "mv" which is a unix-like command, so i would expect the / is a directory separator. your comment does not have a well-formed "mv" command though, and you may be getting errors for that reason.