I've downloaded mongodb-linux-x86_64-2.6.3.tgz
file using windows 7 and kept it on D:\Amra\Software\Developing Soft
location.
When I right click this .tgz file using Ubuntu and see property it shows Location: /media/towhid/Amra/Software/Developing Soft
. Now how will I unzip this .tgz file using tar
command from terminal?
tar (child): /media/towhid/Amra/Software/Developing: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now
– Towhid Jul 19 '14 at 08:25some folder
, you need to access it from a terminal assome\ folder
using escape character. – sourav c. Jul 19 '14 at 08:30-C
option astar -xvzf /path/to/myarchive.tgz -C /path/where/to/extract/
– sourav c. Nov 07 '16 at 12:56-
whlie specifying the options and dotar xvzf /path/to/yourFile.tgz
, otherwise it can have unexpected behavior depending on the order of the flags.check this answer : https://unix.stackexchange.com/questions/239118/does-parameter-order-matter-with-tar
– VishnuVS Sep 23 '22 at 11:24