Quick Answer: How Do I Create a Folder Within a Folder in Linux?
Contents

To create a directory with subfolders in one command, add “-p” to the end of the “mkdir” command. This stands for “parent” and allows you to create as many nested directories as you want by writing out a file path like you do when navigating between directories.

How do you put a folder inside a folder in Linux?

How to make a folder in Linux

  1. Open the terminal application in Linux.
  2. The mkdir command is is used to create new directories or folders.
  3. Say you need to create a folder name dir1 in Linux, type: mkdir dir1.

How do I create a folder within a folder in Ubuntu?

The basic Ubuntu create folder command is “mkdir,” literally “make directory.” Make sure you’re in the location you want to create your new folder and then type “mkdir” followed by a space and the name of the folder you want to create.

Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest