in linux, how would i make a hierarchical directory structure under /root that consists of one directory containing three subdirectories
The "mkdir" command creates directories. The "cd" command changes which directory you're currently in. If you type "cd /root" (or "cd /" depending on which root we're talking about) without the quotes, you can complete this task. Make sure you have appropriate system permissions to create directories where you want to.
I meant to say that using cd and mkdir, you can complete this task. "cd /" or "cd /root" would be the first step.
thanks
either u can achieve this in multiple steps or in single step using -p switch. for e.g. lets say u want to create a directory in / as : /hello/hello1/hello2/hello3 u can do this by :(remember to be root ) # cd / #mkdir hello #cd hello #mkdir hello1 #cd hello1 ....and like that or u can do this also as : #mkdir -p /hello/hello1/hello2/hello3
Join our real-time social learning platform and learn together with your friends!