Originally Posted by sohny
did u mean
coz I m getting any error as follows with first one
And i m not see any difference with bot commands u mentioned. I m getting same size
The second command is "tar cvfz tarball_2.tgz dir1 dir2 dir3 2>& /dev/null" only.
I have used this to redirect stdout and stderr so that the ouput as well as the error message(if any) will not be displayed to the user. Its a part of error handling in my script.
I dont understand why you are getting the error while issuing the same...
Pls do reply.