On Thursday 25 January 2018 15:14:24 Michael Fothergill wrote: > Dear folks, > > I am trying to extract files from a tar xz file. > > The file is a kernel file. > > I ran the tar -xf command: > > root@mikef-PC:/usr/src# tar -xf linux-4.14.15.tar.xz > > If you look at the date and time then you can see that no directories > have been created with from it in the directory..... > > root@mikef-PC:/usr/src# date > Thu 25 Jan 20:11:23 GMT 2018 > root@mikef-PC:/usr/src# ls -l > total 199992 > drwxrwxr-x 24 root root 4096 Jan 23 18:58 linux-4.14.15 > -rw-r--r-- 1 mikef mikef 100837776 Jan 25 16:43 linux-4.14.15.tar.xz > drwxr-xr-x 2 root root 4096 Jan 25 18:02 linux-config-4.14 > drwxr-xr-x 4 root root 4096 Jan 25 00:01 > linux-headers-4.14.0-3-amd64 > drwxr-xr-x 4 root root 4096 Jan 25 00:01 > linux-headers-4.14.0-3-common > drwxr-xr-x 4 root root 4096 Jan 24 16:32 > linux-headers-4.9.0-4-amd64 drwxr-xr-x 4 root root 4096 Jan 24 > 16:33 > linux-headers-4.9.0-4-common > lrwxrwxrwx 1 root root 24 Jan 14 19:45 linux-kbuild-4.14 -> > ../lib/linux-kbuild-4.14 > lrwxrwxrwx 1 root root 24 Jan 15 04:43 linux-kbuild-4.15 -> > ../lib/linux-kbuild-4.15 > lrwxrwxrwx 1 root root 23 Aug 6 05:24 linux-kbuild-4.9 -> > ../lib/linux-kbuild-4.9 > -rw-r--r-- 1 root root 216052 Jan 14 19:45 > linux-patch-4.14-rt.patch.xz > -rw-r--r-- 1 root root 103701828 Jan 14 19:45 > linux-source-4.14.tar.xz drwxr-xr-x 8 root root 4096 Nov 18 > 09:15 open-vm-tools-10.1.5 root@mikef-PC:/usr/src# > > Can anyone think of a command that will let me know where the files > went/confirm it ran properly? > > Cheers > > Michael Fothergill
It would help to run the correct unpacker. xz is relatively new, and the command is: xz -d packagename.xz. If its a tarball, thats what you'll get back. If it an image for an sd card, that's what you will get back. running tar xf is asking tar to do something it cannot do, at least not yet. man xz can be quite educational ;-) Cheers, Gene Heskett The above content, added by Maurice E. Heskett, is Copyright 2018 by Maurice E. Heskett. -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene>