What Does P Mean in Linux?
Contents

What does P mean in command line?

-p created both, hello and goodbye. This means that the command will create all the directories necessaries to fulfill your request, not returning any error in case that directory exists.

What is the use of P in Linux?

-p : A flag which enables the command to create parent directories as necessary. If the directories exist, no error is specified. If we specify the -p option, the directories will be created, and no error will be reported.

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest