Score:0

problem faced when active openfoam

ug flag

enter image description hereenter image description here

I typed the word on my command-line window, is that right? I installed openfoam v9. When I active it, I don't understand the word for openfoam v9 avoid needing an editor. Does that mean that I don't need to type the sudo command. If it is why does Ubuntu show that on picture 2? If not, how can I solve it because the website said one time only? Does that mean I just have one chance to do that?

Score:1
id flag

The instructions say to enter that text in the command line rather than opening a text editor in order to edit your .bashrc file.

The >> redirects the output of the echo’d command to the end of the .bashrc file - ie it appends the text to the end of the file, so you don’t need to edit the file directly with a text editor.

Do type it carefully - for example if you use > instead of >> you will end up replacing your .bashrc file with that line of text!

So step 1 is to enter the text to edit your .bashrc file via the command line; step 2 tells the shell to read the .bashrc file to ‘activate’ the changes; step 3 confirms it has all worked.

Yifeng Shen avatar
ug flag
actually,i used the command line in the picture 2,right?so now i had redirect the the .bashrc file ?but what the different this step compared with step 2
Will avatar
id flag
Step 2 is telling the shell to read the .bashrc file so your change becomes active. I’ll edit my reply to explain the 3 steps.
Yifeng Shen avatar
ug flag
so you mean in step 2 ,i need to type like this ' . $HOME/.bashrc' in my command line,right,guy? sorry , i am really a freshman in this respect for the openfoam
Will avatar
id flag
I don’t know anything about openfoam, but this is all Linux command line; you should copy and paste that line in step 2, including the . at the beginning, into the terminal.
Yifeng Shen avatar
ug flag
ok i try ,thanks ,mate
Yifeng Shen avatar
ug flag
look likes it work thanks mate
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.