Ask your own question, for FREE!
Computer Science 6 Online
OpenStudy (anonymous):

in linux, how would i make a hierarchical directory structure under /root that consists of one directory containing three subdirectories

OpenStudy (anonymous):

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.

OpenStudy (anonymous):

I meant to say that using cd and mkdir, you can complete this task. "cd /" or "cd /root" would be the first step.

OpenStudy (anonymous):

thanks

OpenStudy (anonymous):

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

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!