cd /source/directory 什么意思?

Github上的 cd /source/directory 是什么意思?找不到source文件啊。比如这个,source 具体指的什么?

cd /source/directory
git clone --recursive https://github.com/costashatz/SpaceVecAlg.git
cd SpaceVecAlg
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_SIMD=ON -DPYTHON_BINDING=OFF ..
make -j
sudo make install


GitHub - costashatz/SpaceVecAlg: Implementation of spatial vector algebra with the Eigen3 linear algebra library. Implementation of spatial vector algebra with the Eigen3 linear algebra library. - GitHub - costashatz/SpaceVecAlg: Implementation of spatial vector algebra with the Eigen3 linear algebra library. https://github.com/costashatz/SpaceVecAlg#building
这里并没有cd操作,不是必要的

而且github上的readme提供了包管理器安装,应该比直接编译更简单一些

sudo add-apt-repository ppa:pierre-gergondet+ppa/multi-contact-unstable
sudo apt-get update
sudo apt-get install libspacevecalg-dev libspacevecalg-doc

就是他自己本地系统的路径,不是重点

系统路径,若你不是开发人员,没用

你cd到自己本地的某个目录下就行,这个只是表示你后面要clone的代码放到哪个目录下。

随便一个路径就行,你可以直接用当前用户主目录,不需要操作这一行