Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-07-2010, 06:49 AM   #1
LQ Newbie
Registered: Apr 2010
Location: Pune
Posts: 13

Rep: Reputation: 0
How to find the TCSH shell and gzip version number?


I need to find TCSH shell and gzip version number by running a acript on several boxes through ssh.
How can i do that?
I made a script for tcsh but it is not working by ssh , it only works on my box .
I dont know from where to find the gzip version info. Can anyone please help.
Old 04-07-2010, 06:59 AM   #2
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 97
Two commands:

tcsh --version
gzip ---version
Old 04-07-2010, 07:07 AM   #3
LQ Newbie
Registered: Apr 2010
Location: Pune
Posts: 13

Original Poster
Rep: Reputation: 0
sorry , it was not gzip, it was zlib, my bad.

For tcsh :

tcsh --version not runnign on my hp-ux.

tcsh --version
Unknown option: `--version'
Usage: tcsh [ -bcdefilmnqstvVxX ] [ argument ... ].
Old 04-07-2010, 07:08 AM   #4
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
In general, you should try the man page for the commands, to see if there's an option to give you the version.
Old 04-07-2010, 07:14 AM   #5
LQ Newbie
Registered: Apr 2010
Location: Pune
Posts: 13

Original Poster
Rep: Reputation: 0
Yes , i tried the man pages, but i didnt find anything for tcsh.
Old 04-07-2010, 07:42 AM   #6
Registered: Oct 2002
Posts: 138

Rep: Reputation: 22
Originally Posted by kailash19 View Post
Yes , i tried the man pages, but i didnt find anything for tcsh.
I managed to find a manpage online for an HP-UX version of tcsh, and it made no reference to --version (or any other command for getting the version). It is entirely possible that the HP-UX port of tcsh doesn't provide any way of reporting its version number. Perhaps there is some other way that HP-UX provides for finding out version numbers of installed software?

Unfortunately, only someone who is familiar with HP-UX or has access to an HP-UX machine can tell you for certain. Perhaps HP-UX's package manager can help you, if tcsh was installed by the package manager.

There is always the possibility that tcsh is a symlink to tcsh-x.y.z I suppose

BTW HP-UX questions are bit of a stretch of the term 'linux-newbie' You have to bear in mind that "Linux is not UNIX". If you were to take the the two most different Linux distributions, and multiply the number of differences by 20, that would likely give you an idea of how different Linux is from HP-UX (and how different each of the major Unices are from each other).

Last edited by nonamenobody; 04-07-2010 at 07:52 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to find given number is integer or not in shell script kvmreddy Linux - Newbie 2 08-15-2009 09:05 AM
[Solaris 9] find package version number noir911 Solaris / OpenSolaris 5 08-15-2008 06:00 AM
[Suse] find version number noir911 SUSE / openSUSE 1 08-04-2006 11:35 PM
shell command to find the number of collisions of NICs RajRed Linux - Newbie 14 04-19-2006 02:20 PM
Is there a good way to find the OS version number? BrianK Linux - General 6 10-06-2004 11:54 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:08 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration