$mkdir
Create new directories and folder hierarchies.
mkdir [OPTIONS] DIRECTORY...Live im interaktiven Terminal ausprobieren
Client-seitige Simulation ohne Installation mit sofortigem Feedback.
Überblick & Funktionsweise
`mkdir` (Make Directory) creates one or more new directories in the file system. With the `-p` (parents) flag, it can create complete nested directory paths in a single command without throwing errors if intermediate folders already exist.
Wichtige Optionen und Flags
| Flag / Option | Description |
|---|---|
| -p, --parents | Create intermediate parent directories as needed without error if existing. |
| -m, --mode=MODE | Set file permission mode for new directories upon creation (e.g., -m 700). |
| -v, --verbose | Print a confirmation message for every created directory. |
Praktische Anwendungsbeispiele
mkdir -p /home/user/workspace/src/components && ls -R /home/user/workspaceCreates workspace, src, and components directories automatically.
Verwandte Linux-Befehle
Durchsuchen Sie Verzeichnishierarchien nach Dateien basierend auf Name, Typ, Größe oder Änderungsdatum.
Verzeichnisinhalte auflisten mit Dateigrößen, Berechtigungen und Zeitstempeln.
Wechseln Sie das aktuelle Arbeitsverzeichnis im Dateisystem.
Dateiinhalte verketten und auf der Standardausgabe ausgeben.
Remove files or directories from the filesystem.
Copy files and directories to a destination path.