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.
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
<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
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:
.
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!