# Linux OpenFOAM issue

Gold Member
Hi PF!

I'm unsure if I'm in the right area, but I'm trying to run OpenFOAM on Linux. I'm following the tutorial here:

https://cfd.direct/openfoam/user-guide/v6-tutorials/
but when I type the 4th command: cp -r $FOAM_TUTORIALS/incompressible/simpleFoam/pitzDaily I receive the error: cp: missing destination file operand after '/opt/openfoam6/tutorials/incompressible.simpleFoam/pitzDaily' Any help is very appreciated! ## Answers and Replies Related Programming and Computer Science News on Phys.org Svein Science Advisor but when I type the 4th command: cp -r$FOAM_TUTORIALS/incompressible/simpleFoam/pitzDaily
I receive the error: cp: missing destination file operand after '/opt/openfoam6/tutorials/incompressible.simpleFoam/pitzDaily'
Yes - you tell the system to copy a file from (the source you have given) to [nothing]. No wonder the copy function is confused!

jim mcnamara
Mentor
Linux/UNIX cp syntax:
Code:
cp [option]  [path/]source destination
two arguments are required.

bigfooted
Gold Member
Notice that there is a dot after the cp command on the website you mentioned, which means 'here, at this location'. You are copying the directory 'pitzDaily' into the location where you currently are, which is the directory $FOAM_RUN, or actually the directory to which this alias refers to. joshmccraney and jim mcnamara jim mcnamara Mentor The pwd command shows what directory the "Dot" represents, if there is any confusion. e.g., Code: $> pwd
/home/jim
$> echo . .$>
Using echo will not work for this.

joshmccraney