LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-08-2011, 08:15 PM   #1
msms777
LQ Newbie
 
Registered: Oct 2011
Location: phoeniz arizona
Posts: 1

Rep: Reputation: Disabled
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 !
 
Old 10-08-2011, 08:26 PM   #2
stu7
Member
 
Registered: Jun 2007
Posts: 95

Rep: Reputation: 16
Quote:
Originally Posted by msms777 View Post
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
 
Old 10-08-2011, 08:31 PM   #3
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Quote:
Originally Posted by msms777 View Post
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.
 
Old 10-08-2011, 10:00 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi
Quote:
Originally Posted by msms777 View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Move a file to some path and create that path when it doesn't exist WhisperiN Linux - Newbie 6 10-09-2010 12:47 PM
mkdir : cannot create directory : no such file or directory patcheezy Linux - Newbie 6 05-13-2009 12:26 PM
How to copy and create path (directory) if necessary... crions Linux - Newbie 5 04-12-2009 08:54 AM
Find a file path and directory path ak.lokesh Linux - Newbie 3 02-19-2009 01:37 PM
How to rsynce the actual directory path instead of just the directory at the end of Niceman2005 Linux - General 5 04-08-2005 08:58 PM


All times are GMT -5. The time now is 10:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration