Changing directory to /pi
fails because there is no such directory. You evidently are confused by the nature of a hierarchical filesystem (a term appropriated by Apple for "HFS", but which long pre-dated them and applies to most contemporary filesystems).
Such a filesystem is structured like a tree. The root is /
; there is a further standard for its organization on linux; /home
is part of that.
/home/pi/whatever
Begins with the root /
and is thus an absolute path. Regardless of your current working directory (CWD), that refers to the same place.
home/pi/whatever
Is a relative path. If your CWD is /usr/local
, that will refer to /usr/local/home/pi/whatever
. So you did this:
cd /home
Your CWD is now /home
. If you cd pi
, you would be trying to change to /home/pi
, since pi
is a relative path. But if you try to cd /pi
, you are asking for the absolute path /pi
, which does not exist.
Then while in /home, I try tar -xvzf TTRLinux v1.2.0.tar.gz (yes, this is the name of the file) and I get four successive errors: tar (child): TTRLinux: Cannot open: No such file or directory
But you said "I downloaded the file in /home/Pi/downloads" -- why would you expect it to be in /home
?
cd /home/pi/downloads
These are case sensitive, so be sure that's not Downloads
. Check what is in your CWD with ls
. It should list the file you want to extract. If not, you are in the wrong place. You can double check your location with pwd
("present working directory", same thing as CWD). When you find it, the tar invocation you have should work.
Another issue in play here are spaces in filenames. They're fine, but you have to take them into account.
tar -xvzf TTRLinux v1.2.0.tar.gz
There's no way for the interpreter to tell the difference here between two separate arguments, and one with a space in the middle. If the file really is called "TTRLinux v1.2.0.tar.gz", use:
tar -xvzf "TTRLinux v1.2.0.tar.gz"
OR
tar -xvzf TTRLinux\ v1.2.0.tar.gz
The first form quotes the argument, making it a single string. The second uses a character escape sequence (backslash + space) to indicate the space is part of a contiguous string. Most people will find the first form more intuitive, but the second can be useful in more convoluted circumstances.
Do double check the name to make sure that is a space and not an underscore (TTRLinux_v1.2.0.tar.gz
).