-2

please include the command that would be used in LINUX

  • 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
  • 1
    Does this answer your question? [How do I cd into a directory in the home folder?](https://askubuntu.com/questions/262674/) and [How do I make a directory?](https://askubuntu.com/q/725882/) – karel Sep 03 '22 at 08:48

2 Answers2

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).

muru
  • 193,181
  • 53
  • 473
  • 722
Will
  • 2,134
  • 5
  • 15
  • 32
0
mkdir -p ~/Documents/newfolder/name/that/can/be/as/long/as/you/want

the -p flag lets you make multiple new directories all at once

muru
  • 193,181
  • 53
  • 473
  • 722
Rhahkeem
  • 64
  • 6