Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In my Putty window I entered the following command (I am using UNIX) cp TIGR0016

ID: 3842378 • Letter: I

Question

In my Putty window I entered the following command (I am using UNIX)

cp TIGR00165.HMM TIGR00165.SEED

This command created a file called TIGR00165.SEED

However, something went wrong. This command was meant to transfrom the .HMM file to a .SEED file. However when I enter in the command ll to look at the files in my directory I get the following.

-rw-rw-r--. 1 dcs1 cbcb 33092 May 14 21:38 TIGR00165_v2.HMM

-rw-rw-r--. 1 dcs1 cbcb 33092 May 14 21:47 TIGR00165_v2.SEED

Note the fifth column. These files are the same exact size meaning that instead of doing the right command, I did something wrong.

Can someone please help me?

Explanation / Answer

Hello champ!

The computer is not doing anything wrong! If you go through the help file of CP you will find this
Usage: cp [OPTION]... [-T] SOURCE DEST
or: cp [OPTION]... SOURCE... DIRECTORY
or: cp [OPTION]... -t DIRECTORY SOURCE...
Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.

CP command is used to just copy file from source to destination. CP is no way responsible to convert and transform a file from one format ot another format. CP copies a file byte by byte not being aware of the content of the file.

To convert a file from one format ot another format, you need to use some specific tool, or you can simply code and run he executable. As far as my knowledge, no default pakages in Ubuntu, centOS are capable of converting HMM file to SEED file :(

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote