Enrollments closing soon for Post Graduate Certificate Program in Applied Data Science & AI By IIT Roorkee | 3 Seats Left
Apply NowLogin using Social Account
     Continue with GoogleLogin using your credentials
We can use the -p
option with the mkdir
command to create a directory inside another directory.
We can create nested directories without using this option too, but suppose we want to create a directory dataset inside a directory project and if there's no directory named project, then an error will occur.
mkdir -p
will create directory project instead of showing an error and if project will be present beforehand then no change will occur.
cd ~
command to go to your home directoryCreate a directory x
inside directory y
which is inside directory z
like shown below
z/y/x
Taking you to the next exercise in seconds...
Want to create exercises like this yourself? Click here.
Note - Having trouble with the assessment engine? Follow the steps listed here
Loading comments...