Extract just the .PHP files

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

Extract just the .PHP files

Post by neworderfac33 »

Good morning,

I've made some changes to main.php and side.php, but I've lost my copy of the original unmodified files.
Can one of you nice people please tell me how to just extract those two files from the .tar, please?
Thank you.
Pete
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Extract just the .PHP files

Post by rkennedy »

I would use a program like 7zip to open up the tar.gz, or just extract it on linux using tar zxf filename.tar.gz
Former Nagios Employee
neworderfac33
Posts: 329
Joined: Fri Jul 24, 2015 11:04 am

Re: Extract just the .PHP files

Post by neworderfac33 »

Thank you - it was probably a silly question, but as this is the Dark Word of Linux, I wasn't even sure if I COULD unzip .tar files with 7Zip!
The syntax for unzipping it on the Linux server was useful too, so thank you - I've now been able to extract the two .PHP files, so this thread can be closed.
Pete
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Extract just the .PHP files

Post by rkennedy »

Awesome, I'll close this one up.
Former Nagios Employee
Locked