Home > System Tutorial > LINUX > body text

How to create a new folder in linux

下次还敢
Release: 2024-04-11 23:24:26
Original
1333 people have browsed it

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>
Copy after login

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

<code class="shell">mkdir mydir</code>
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template