ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hey, i don't think thjis belongs heres but whatever.
this system i am using at work is a pain. thanks to some guys in the expect/bash thread i got my script to work, but i want to uncompress a gz file, but there is no gzip on this sytem. as far as i know there is just an unzip. is there any way to do this or do i need to bug the sys admin to install gzip?
Chances are, when you log in, you have a bin dir in your home dir in the PATH. If so, you can install gzip into your personal directory, and use it from there.. one thing, though, is that if there libraries that gzip needs, and you don't have them.. well, I'm not sure if libraries can be installed in the same way.. I don't think so.. but, maybe you can find a precompiled gzip, and install that.
try which instead. whereis gives you more info than just the location of the binary, including library info, and man pages. which simply gives the location of the binary.
If which isn't recognized, you can also do a manual search of the binary paths, with something like:
for i in `echo $PATH | tr ':' ' '`; do find $i -type f -name "gzip"; done
That will fake the which, sorta.
But, as I said before, if you have a ~/bin dir in the path, you can install it into your home dir and use it just fine (as long as all the necessary libraries are installed).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.