Unsquashfs, put in different folder?
So I wanna use unsquashfs in order to take away files permanently from the sfs files.
From what I understan, if one puts the unsquahed file in the same folder as the file one does the unsquashing to, then there is an issue that all files are doubled, duplicated which results in a larger file, so I want the unsquashed file to end up in a different folder. How do I do that?
I first make a new directory on my USB with, that is no problem and works, I use the following command:
mkdir -p /mnt/sdg1/unsquasged/puppy
The I go to the directory with:
cd /mnt/sdg1/unsquashed/puppy (sdg1 is my usb).
But when I do the command
unsquashfs /puppy.sfs , it doesn't work. It sais:
Could not open /puppy.sfs, because no such file or directory
What is wrong here, it used to work. I am not that great with the commands in the terminal, but why cant it find the puppy.sfs file? How do I make sure it sees it (the puppy.sfs file) with the correct command and how do I make sure the unsquashed file ends up in the right directory?
How does the
/
thing work after the unsquashfs command in the terminal? Does that make it look for the file in all directories / folders higher up in the folder / directory tree so to speak?