Home  >  Article  >  System Tutorial  >  How to create a new folder in linux

How to create a new folder in linux

下次还敢
下次还敢Original
2024-04-11 23:24:261287browse

Answer: There are three ways to create a new folder in Linux: command line, file manager and keyboard shortcuts. Command line: Use the mkdir command, such as mkdir mydir. File Manager: Right-click and select New Folder. Keyboard shortcut: Use Ctrl Shift N where supported.

How to create a new folder in linux

Creating a new folder in Linux

Creating a new folder is a basic task in the Linux operating system. This can be done using the following methods:

Method 1: Open a command line terminal (such as GNOME Terminal or XTerm) using the command line

  • .
  • Navigate to the directory where you want to create the folder.
  • Use the following command:
<code class="shell">mkdir <文件夹名称></code>

For example: To create a folder named "mydir", execute the following command:

<code class="shell">mkdir mydir</code>

Method 2 : Use File Manager

  • # to open a file manager (such as Nautilus or Dolphin).
  • Navigate to the directory where you want to create the folder.
  • Right-click and select "New Folder".
  • Enter the folder name and press Enter.

Method 3: Use keyboard shortcuts

In some file managers (such as Thunar), you can use the keyboard shortcutCtrl Shift N to quickly create a new folder.

Tips:

  • Folder names can contain letters, numbers, underscores, and hyphens.
  • The folder name cannot start with a dot (.) or a slash (/).
  • You can use . to represent the current directory, and .. to represent the parent directory.

The above is the detailed content of How to create a new folder in linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn