LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 11-21-2002, 03:53 PM   #1
chupacabra
Member
 
Registered: Oct 2002
Posts: 30

Rep: Reputation: 15
Question got stuck while creating directories


host system: redhat 8.0
kernel: 2.4.18-14

Hello everybody!

I'm half way done I guess from creating my own lfs.

When I type this command, I just type it as it is, all in one line at the prompt. I mean, I don't press return key until the very end the command.

First question: Is it normal to type it all in one line?

Second question: I get this error after I type everything and press return:
"Bash: syntax error near unexpected token `&' "

How do I get around it so I can create all directories? I can do it manually if needed but I get confused with the dirname variable....in other words, I don't know what directories are created where or inside what. Again, I can do it manually if needed.

Thank you guys in advance...

I have no name!:/# mkdir -p /{bin,boot,dev/pts,etc/opt,home,lib,mnt,proc} && mkdir -p /{root,sbin,tmp,usr/local,var,opt} &&
for dirname in /usr /usr/local
do
mkdir $dirname/{bin,etc,include,lib,sbin,share,src}
ln -s share/{man,doc,info} $dirname
mkdir $dirname/share/{dict,doc,info,locale,man}
mkdir $dirname/share/{nls,misc,terminfo,zoneinfo}
mkdir $dirname/share/man/man{1,2,3,4,5,6,7,8}
done &&
mkdir /var/{lock,log,mail,run,spool} &&
mkdir -p /var/{tmp,opt,cache,lib/misc,local} &&
mkdir /opt/{bin,doc,include,info} &&
mkdir -p /opt/{lib,man/man{1,2,3,4,5,6,7,8}} &&
ln -s ../var/tmp /usr

[ return ]

"Bash: syntax error near unexpected token `&' "
I have no name!:/#
 
Old 11-21-2002, 04:34 PM   #2
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
Typing this stuff out to stamp it across the cerebellum is good. Twice, or if you have a syntax problem is daft.

Go here , highlight the section and paste it into the terminal.

Bert
 
Old 11-21-2002, 05:12 PM   #3
chupacabra
Member
 
Registered: Oct 2002
Posts: 30

Original Poster
Rep: Reputation: 15
Thumbs up thanks bro

it was a syntax error....I re-typed it for the third time and it worked!! I guess I missed a space or something.

I've been reading/trying to understand the book while typing every single command by hand.

thanks again..
 
Old 11-21-2002, 07:58 PM   #4
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
You're welcome. Don't suck too many goats.
 
  


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
gtkpod - Problem creating iPod directories rose_bud4201 Linux - Software 0 09-20-2005 10:06 PM
Uploading/creating/removing directories on website stevsom Linux - General 4 05-12-2005 03:19 AM
Creating user directories in Apache root robojerk Linux - Networking 1 09-21-2004 12:34 PM
creating sub-sub directories dominant Linux - Newbie 13 07-23-2004 05:16 PM
Creating home directories with samba and PAM mkhomedir ferrantepunto Linux - Software 2 01-21-2004 09:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 12:58 PM.

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
Open Source Consulting | Domain Registration