Man , Its gz , so you need to unzip it first . You need to unzip it first using gunzip filename.tar.gz then tar -zxv filename.tar And the problem reporting may be the tar file will be located at a different place. Try pwd from prompt . So will know the real working directory . Or ls will tell you the current list of files and dir Hari K T http://www.harikt.com/ --- On Fri, 6/3/09, manika bhatia <manika_bhatia@xxxxxxxxxxx> wrote: From: manika bhatia <manika_bhatia@xxxxxxxxxxx> Subject: Re: tar file To: php-objects@xxxxxxxxxxxxxxx Date: Friday, 6 March, 2009, 2:22 PM thanks I am open tar file file using comand <?php system("tar -xvzf admin.tar.gz" );?> I am running my php script through command prompt using Putty Server but it is giving error no such file or directory --- On Fri, 6/3/09, Rajesh Gupta (राज) <gupta.software@ gmail.com> wrote: From: Rajesh Gupta (राज) <gupta.software@ gmail.com> Subject: Re: tar file To: php-objects@ yahoogroups. com Date: Friday, 6 March, 2009, 10:47 AM hi; Please describe me details what do you want tar file in your requirements (task). you tell only "how to tar file on linux using php script" which not understanding what do want. if possible write details.... On Fri, Mar 6, 2009 at 10:42 AM, manika bhatia <manika_bhatia@ yahoo.co. in>wrote: > how to tar file on linux using php script > > Add more friends to your messenger and enjoy! Go to > http://messenger. yahoo.com/ invite/ > > [Non-text portions of this message have been removed] > > > -- "Dream is not that what you see in your sleep..Dream is the thing which do not allow you to sleep." Sincerely, Warm Regards, Rajesh Gupta Software Engineer, SRM Techsol Pvt. Ltd., Lucknow-226024 (U.P.), INDIA Mobile: +91-9792681468 Email: rajesh.gupta@ srmtechsol. com Gtalk IM: gupta.software@ gmail.com OR kishunlilasoftware@ gmail.com Yahoo IM: kishunlilasoftware@ yahoo.com Website: http://www.stpl. biz [Non-text portions of this message have been removed] Connect with friends all over the world. Get Yahoo! India Messenger at http://in.messenger .yahoo.com/ ?wm=n/ [Non-text portions of this message have been removed] Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/ [Non-text portions of this message have been removed]