View Single Post
Old 10-02-2020, 08:05 PM   #175
twowheels
Wizard
twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.
 
twowheels's Avatar
 
Posts: 1,854
Karma: 13432974
Join Date: Nov 2010
Device: Kobo Clara HD, iPad Pro 10", iPhone 15 Pro, Boox Note Max
Steve,

The mv command moved the file from your Downloads folder to /usr/local/bin. As David pointed out, you were able to see it with the ls command (list files), which you showed with your pasted output -- see how kepubify shows up even though you told it to list k*? (which means all files that start with lowercase k, and anything after that).

Now that it's in /usr/local/bin, you don't need to care where it's at anymore, since it's in a folder listed in your PATH variable (which David gave instructions on how to view). So, now you can just type kepubify from anywhere, in any folder, and it'll just run. So, you can use the cd command (change directory) to change to the directory that holds the epub files that you want to convert, and then convert them, per my instructions above, where I gave the instructions on how to change to the Downloads folder.


EDIT: If just typing kepubify anywhere in the terminal doesn't run and give you the Usage instructions, then double check that you did the chmod command correctly by typing:

ls -l /usr/local/bin/kepubify

You should see something like:

-rwxr-xr-x 1 username username 40 May 7 17:37 /usr/local/bin/kepubify

The exact content of that result doesn't matter as long as the first part has an rwx, not dashes where the r and x are... if you don't see an r and x in those first 4 positions, then type:

sudo chmod +rx /usr/local/bin/kepubify

(it'll ask for your password, that's expected)

...then it'll run just fine per the instructions given above.

Last edited by twowheels; 10-02-2020 at 08:09 PM.
twowheels is offline   Reply With Quote