Issue in extracting gz files in Linux [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 months ago.
Improve this question
I have downloaded the following file on my Linux computer:
wget https://github.com/tomwhite/hadoop-book/blob/master/input/ncdc/all/1901.gz
I tried to unzip the file using gunzip 1901.gz but it did not work. I check the file format using 'file' command and it says:
1901.gz: HTML document, UTF-8 Unicode text, with very long lines
I am quite new to Linux. May I know how can I successfully extract the data for usage?

You have downloaded a regular HTML file and you called it something.gz, hoping that that would turn it into a zipped file, but this is not how it works: your file is not a zipped file, so there's no reason trying to unzip it.

Related

How to copy all the fine with a specific format like .txt and .png from a folder to another one in Linux Terminal? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
Hi all I have a folder full of different format like the one that I am interested in are .png and .txt and I want to copy them in another folder from the terminal in Linux. Someone know how to that?
Simple Use cp command in Linux
=> Example:
cp *.txt /destination/folder/location/

Linux command Cat dont file archive but archive in folder [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
When I try to cat in one file, for exemple cert.pem I receive ab error: No such file or directory
These are symbolic links - special files that just contain the path to another file. When you cat them, they essentially redirect to the file they link to. However, as evident by the red color in the ls output, these links are broken - they point to files that do not exist, and thus you get that error when you try to cat them.

How to change text file extension type in Linux? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
Using gedit, I want to create a config.env file, how do I change the extension as simply naming it config.env doesn't work.
THanks in advance
It really doesn't matter what the file extension is, as long as it is in a linux machine.
Just execute file <filename> to know the file type.
However you could try this:
Save the file as it is like config.txt or other and execute the below command
mv config.txt config.env

Unix command to convert xls file into xlsx file? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I there any unix command which will convert xls file into xlsx file?
Also i have tried using mv command, it is changing the extension as well. But then i am not able to open the xlsx file.
mv .xls .xlsx
Any suggestion will be really appreciate.
As far as I know, this is not something you can easily do with standard unix tools.
You can use LibreOffice:
libreoffice --convert-to xlsx my.xls --headless
Or maybe find an online converter and submit your file to it.

lpr to print files with different names and directories [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have a script witch use lpr to print the output to a PDF file.
I would like to change the location or even the file name of the saved file.
I read several forums about lpr and did not find anything on how to specify the name and the directory of the printed pdf.
Instead I always get a standard name in my PDF directory.
Thank you!
Take a look at cups-pdf, https://help.ubuntu.com/community/PDFPrinting . You can configure the output directory and filename with it. The configuration file is /etc/cups/cups-pdf.conf.

Resources