• Archives
  • All Categories
  • All Tags

mkdir

1 article

bash comment database date datetime deluser df dictionary directory disk dmesg du file for host ip kernel len linux list log mkdir mysql nano network ping postgresql python rm rmdir route sed text editor time timestamp tmux traceroute tuple user userdel vim while
How to mkdir -p only if a directory does not already exist?

How to mkdir -p only if a directory does not already exist?

Wednesday, Aug 7, 2024

Linux bash provides the mkdir command in order to create directory. By default the mkdir command creates single directory but can not create child or sub directories. The mkdir -p command is used to create new directory with subdirectories or child directories. Create a single directory: You can create single directory with sub directories like below. mkdir -p /path/to/directory Create multiple nested directories: You can create single directrory with nested child directories.
@ İsmail Baydan
2 minutes read

© 2024 Linux and Python Tutorials

🌱 Powered by Hugo with theme Dream.