Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

"no such file or directory" linux

I am quite a beginner in Linux and trying to install gurobi for linux. The installation guide says to move the downloaded file with the following command:

sudo mv ~/Downloads/gurobi9.5.2_linux64.tar.gz /opt/

When I run this, I get the response:

mv: cannot stat '/home/laukna/Downloads/gurobi9.5.2_linux64.tar.gz': No such file or directory

Is there any way to fix this?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

The tilde "~" symbol is "a Linux ‘shortcut’ to denote a user’s home directory. Thus tilde slash (~/) is the beginning of a path to a file or directory below the user’s home directory." (quoted from twiki.org)

So if your file isn’t located in your home directory (which is what your message "No such file…" implies) then you need to write the absolute path to where that file is. If you don’t know, you can find it with

find / -name "gurobi9.5.2_linux64.tar.gz"

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading