I am using unzip through putty and it works ok. However, using the same command through a .NET C# SSH library (Renci.SshNet) gives different results.
SshClient s = new SshClient("ssh_host", "ssh_port", "ssh_username", "ssh_password"); SshCommand c = s.RunCommand("unzip -o \"/home/parent/child/1.zip\ 1.txt"")
This same command through putty, extracts it in 'child', using this, the 1.txt ends up in 'parent'. The return result of the Sshcommand is the same as Putty's return :
Archive: /home/parent/child/1.zip extracting: 1.txt
Why is it extracting one level up? The only difference i can see is that i used cd to position myself to the directory (in Putty).