TB0ne |
11-22-2015 09:13 AM |
Quote:
Originally Posted by sagar666
(Post 5453563)
Hi,
I have created iostat report file from last 3 days and I am able to read file. Just now try to compressed file using tar (Actually it not compressed)and after compressed tried to read it but it not showing any thing .
|
Again, as you have been asked for TWO YEARS now, you need to PROVIDE ACTUAL DETAILS. The subject of this thread is "filerupted after tar command"...what, exactly, is 'filerupted'?? You say "it now showing any thing", but don't say what it IS doing.
Quote:
Below are commands i tried
985 ls -lh iostat_output
986 tar -zf iostat_output
987 tar --help
988 tar -cf iostat_output
989 tar -cf iostat_output iostat
990 ls -lh iostat_output
991 cat iostat_output
992 tar -xf iostat_output
993 cat iostat_output
Its not displaying any output.
|
...and AGAIN, as you've been asked MANY TIMES, you need to use CODE TAGS, and ask a clear question. Based on what you posted, it's not clear WHAT you're trying to do. Did you bother to try reading the man page on the tar command? Because:
Quote:
Originally Posted by Sagar666
- 985 ls -lh iostat_output
- 986 tar -zf iostat_output
- 987 tar --help
- 988 tar -cf iostat_output
- 989 tar -cf iostat_output iostat
- 990 ls -lh iostat_output
- 991 cat iostat_output
- 992 tar -xf iostat_output
- 993 cat iostat_output
|
- 985 - Lists symlinks and checks them. Nothing to do with creating a tar file, but checking an existing one
- 986 - Says to use a file and further zip compress, but doesn't put the actual CREATE directive in it
- 987 - How, exactly, does "--help" factor in?
- 988 - Great, you've created a file...but you again didn't read the man page, since the FIRST filename is the name of the archive to create. You overwrote your iostat file with blank data, since the output file probably doesn't exist, does it?
- 989 - Pretty much the same as 988.
- 990 - Again, why?
- 991 - cat'ing the file does what? You zeroed out the file(s) previously
- 992 - Now you want to extract files...from the empty file you created?
- 993 - Again, why?
Read the man page, or see ANY of the many thousands of easily-found examples on how to create a tar file on Google.
|