LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   create a directory path (https://www.linuxquestions.org/questions/linux-newbie-8/create-a-directory-path-907180/)

msms777 10-08-2011 07:15 PM

create a directory path
 
Hello guys,

I am new using linux and I want to know if any of you can tell me how to create a directory path inside the shell.

and the path can be as follow

/home/Applications/Interviews/Examples/etc

Thanks !

stu7 10-08-2011 07:26 PM

Quote:

Originally Posted by msms777 (Post 4493452)
Hello guys,

I am new using linux and I want to know if any of you can tell me how to create a directory path inside the shell.

and the path can be as follow

/home/Applications/Interviews/Examples/etc

Thanks !

do you want to make a link to that directory ? If thats what youre asking,
perhaps you can use a symlink ... look at manpage for ln /type/ man ln

sycamorex 10-08-2011 07:31 PM

Quote:

Originally Posted by msms777 (Post 4493452)
Hello guys,

I am new using linux and I want to know if any of you can tell me how to create a directory path inside the shell.

and the path can be as follow

/home/Applications/Interviews/Examples/etc

Thanks !

Hi and welcome to LQ.

You could also use aliases in your ~/.bashrc

eg.

Code:

mypath='/home/user/data/projects/programming/cobol/'
then you could use:

Code:

cd $mypath
On a side note, you might find this useful.

evo2 10-08-2011 09:00 PM

Hi
Quote:

Originally Posted by msms777 (Post 4493452)
I am new using linux and I want to know if any of you can tell me how to create a directory path inside the shell.

In the shell you can create (make) directories with the mkdir command

Code:

mkdir directory_name
Quote:

and the path can be as follow

/home/Applications/Interviews/Examples/etc
If you want to make a "tree" of subdirectories in one go, you'll need the "-p" (make parent directories) flag
Code:

mkdir /home/Applications/Interviews/Examples/etc
Cheers.

Evo2.


All times are GMT -5. The time now is 07:31 PM.