Most people will find the first form more intuitive, but the second can be useful in more convoluted circumstances.ĭo double check the name to make sure that is a space and not an underscore ( TTRLinux_v1.2.0.tar.gz). The second uses a character escape sequence (backslash + space) to indicate the space is part of a contiguous string. tar.gz file is actually the product of two different things, tar basically just packages a group of files into a single file bundle but doesn’t offer compression on it’s own, thus to compress the tar you’ll want to add the highly effective gzip compression. The first form quotes the argument, making it a single string. If the file really is called "TTRLinux v1.2.0.tar.gz", use: 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. They're fine, but you have to take them into account. When you find it, the tar invocation you have should work.Īnother issue in play here are spaces in filenames. You can double check your location with pwd ("present working directory", same thing as CWD). I purchased the following hardware and downloaded Pinbox when it was. It should list the file you want to extract. I am trying to resurrect my RFM with a new PC as the old one suffered from heat exhaustion. These are case sensitive, so be sure that's not Downloads. 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īut you said "I downloaded the file in /home/Pi/downloads" - why would you expect it to be in /home? cd /home/pi/downloads But if you try to cd /pi, you are asking for the absolute path /pi, which does not exist. tgz archive, compress it: gzip < myfiles.tar > myfiles.tgz You might want to add -9 for better compression: gzip -9 < myfiles.tar > myfiles.tgz Both variants will leave both archives around you can use gzip -9 myfiles.If you cd pi, you would be trying to change to /home/pi, since pi is a relative path. tar archive created with cf (with or without v) is uncompressed to get a. If your CWD is /usr/local, that will refer to /usr/local/home/pi/whatever. Regardless of your current working directory (CWD), that refers to the same place. tar.tb2 pueden descomprimirse de manera similar. If for some reason you would like to try out older versions, below is a table of (most of) our historical releases and their release notes. tar.gz, tal como se muestra a continuación: tar -xvf tar -xvf -C /home/ExtractedFiles/ Los archivos. We encourage PnetCDF users to use the latest released version. home/pi/whateverīegins with the root / and is thus an absolute path. Puedes usar un comando similar para descomprimir archivos. The root is / there is a further standard for its organization on linux /home is part of that. ![]() Such a filesystem is structured like a tree. ![]() 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). Changing directory to /pi fails because there is no such directory.
0 Comments
Leave a Reply. |