please include the command that would be used in LINUX
Asked
Active
Viewed 149 times
-2
-
Not sure if this is a homework question but I've given you the benefit of the doubt and answered it! – Will Sep 01 '22 at 21:55
-
Your question seems to be implicitly assuming that the Documents folder is in your home folder (which it needn't be - you can configure the location using XDG directory settings). – muru Sep 02 '22 at 02:38
-
1Does this answer your question? How do I cd into a directory in the home folder? and How do I make a directory? – karel Sep 03 '22 at 08:48
2 Answers
1
You can move to the Documents folder first then create a directory:
cd ~/Documents
mkdir mynewdirectory
or you can do it all with absolute paths from wherever you are in your system:
mkdir ~/Documents/mymnewdirectory
(The ~
is a shortcut for your home directory, in which your Documents directory resides).