3 edited body
source | link

It seems to me that you should be able to do

tar xvzf /usr/CCS/backup/hms1_24jan2018.tar.gz -C /usr/CCS

or, alternatively

cd /usr/CCS
tar xvzf /usr/CCS/backup/hms1_24jan2018.tar.gz

When you use -C /, the files will be unpacked into the root directory. Since the path in the archive starts with HMS/, this will create a directory called HMS in the root of the filesystem hierarchy.

If you want to extract all files (as per your question), you should not specify filenames to extract (you have HMS* on the command line).

Note also that existing files under /usr/CSSCCS/HMS that are not included in the archive will be left in place (unmodified). tar will not replace the full contents of a directory just because it happens to unpack a few files in it.

It seems to me that you should be able to do

tar xvzf /usr/CCS/backup/hms1_24jan2018.tar.gz -C /usr/CCS

or, alternatively

cd /usr/CCS
tar xvzf /usr/CCS/backup/hms1_24jan2018.tar.gz

When you use -C /, the files will be unpacked into the root directory. Since the path in the archive starts with HMS/, this will create a directory called HMS in the root of the filesystem hierarchy.

If you want to extract all files (as per your question), you should not specify filenames to extract (you have HMS* on the command line).

Note also that existing files under /usr/CSS/HMS that are not included in the archive will be left in place (unmodified). tar will not replace the full contents of a directory just because it happens to unpack a few files in it.

It seems to me that you should be able to do

tar xvzf /usr/CCS/backup/hms1_24jan2018.tar.gz -C /usr/CCS

or, alternatively

cd /usr/CCS
tar xvzf /usr/CCS/backup/hms1_24jan2018.tar.gz

When you use -C /, the files will be unpacked into the root directory. Since the path in the archive starts with HMS/, this will create a directory called HMS in the root of the filesystem hierarchy.

If you want to extract all files (as per your question), you should not specify filenames to extract (you have HMS* on the command line).

Note also that existing files under /usr/CCS/HMS that are not included in the archive will be left in place (unmodified). tar will not replace the full contents of a directory just because it happens to unpack a few files in it.

2 edited body
source | link

It seems to me that you should be able to do

tar xvzf /usr/CCS/backup/hms1_24jan2018.tar.gz -C /usr/CSSCCS

or, alternatively

cd /usr/CSSCCS
tar xvzf /usr/CCS/backup/hms1_24jan2018.tar.gz

When you use -C /, the files will be unpacked into the root directory. Since the path in the archive starts with HMS/, this will create a directory called HMS in the root of the filesystem hierarchy.

If you want to extract all files (as per your question), you should not specify filenames to extract (you have HMS* on the command line).

Note also that existing files under /usr/CSS/HMS that are not included in the archive will be left in place (unmodified). tar will not replace the full contents of a directory just because it happens to unpack a few files in it.

It seems to me that you should be able to do

tar xvzf /usr/CCS/backup/hms1_24jan2018.tar.gz -C /usr/CSS

or, alternatively

cd /usr/CSS
tar xvzf /usr/CCS/backup/hms1_24jan2018.tar.gz

When you use -C /, the files will be unpacked into the root directory. Since the path in the archive starts with HMS/, this will create a directory called HMS in the root of the filesystem hierarchy.

If you want to extract all files (as per your question), you should not specify filenames to extract (you have HMS* on the command line).

Note also that existing files under /usr/CSS/HMS that are not included in the archive will be left in place (unmodified). tar will not replace the full contents of a directory just because it happens to unpack a few files in it.

It seems to me that you should be able to do

tar xvzf /usr/CCS/backup/hms1_24jan2018.tar.gz -C /usr/CCS

or, alternatively

cd /usr/CCS
tar xvzf /usr/CCS/backup/hms1_24jan2018.tar.gz

When you use -C /, the files will be unpacked into the root directory. Since the path in the archive starts with HMS/, this will create a directory called HMS in the root of the filesystem hierarchy.

If you want to extract all files (as per your question), you should not specify filenames to extract (you have HMS* on the command line).

Note also that existing files under /usr/CSS/HMS that are not included in the archive will be left in place (unmodified). tar will not replace the full contents of a directory just because it happens to unpack a few files in it.

1
source | link

It seems to me that you should be able to do

tar xvzf /usr/CCS/backup/hms1_24jan2018.tar.gz -C /usr/CSS

or, alternatively

cd /usr/CSS
tar xvzf /usr/CCS/backup/hms1_24jan2018.tar.gz

When you use -C /, the files will be unpacked into the root directory. Since the path in the archive starts with HMS/, this will create a directory called HMS in the root of the filesystem hierarchy.

If you want to extract all files (as per your question), you should not specify filenames to extract (you have HMS* on the command line).

Note also that existing files under /usr/CSS/HMS that are not included in the archive will be left in place (unmodified). tar will not replace the full contents of a directory just because it happens to unpack a few files in it.