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!:/# |
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 |
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.. |
You're welcome. Don't suck too many goats.
|
All times are GMT -5. The time now is 03:54 PM. |