I want to know the right command to type from a bash shell so that i can 1) Check the version of my cent os 2) Check all the open ports (tcp and udp) on my machine 3) Open a specific port say port 3306 so that a telnet request from a remote machiene can be accepted 4) Disable the effect of 3 above in case I want to Thanks in anticiaption of your kind responses to the questions above.
On Thu, 2013-04-25 at 13:04 +0100, Adekoya Adekunle wrote:> I want to know the right command to type from a bash shell so that i can > 1) Check the version of my cent oslsb_release -a> 2) Check all the open ports (tcp and udp) on my machinenetstat -atulp (man netstat)> 3) Open a specific port say port 3306 so that a telnet request from a > remote machiene can be acceptedman iptables> 4) Disable the effect of 3 above in case I want to > > Thanks in anticiaption of your kind responses to the questions above. > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos-- Kind Regards Earl Ramirez GPG Key: http://trinipino.com/PublicKey.asc -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 316 bytes Desc: This is a digitally signed message part URL: <http://lists.centos.org/pipermail/centos/attachments/20130425/c97e0abb/attachment.sig>
From: Adekoya Adekunle <adekunleadekoya at gmail.com>> I want to know the right command to type from a bash shell so that i can > ? 1) Check the version of my cent os > ? 2)? Check all the open ports (tcp and udp) on my machine > ? 3)? Open a specific port say port 3306 so that a? telnet request from a > remote machiene can be accepted > ? 4)? Disable the effect of 3 above in case I want to1. cat /etc/centos-release 2. netstat -nltup 3. I let it as a google exercise... JD
I'm all for helping people with their questions and problems...heaven knows, I've needed my share of help with things, but I don't usually ask until I've performed some level of research. Having said that, I hope that you will all accept my apologies for any interpreted attitude in what follows.> I want to know the right command to type from a bash shell so that i can > 1) Check the version of my cent oshttp://www.lmgtfy.com/?q=Check+the+version+of+my+cent+os> 2) Check all the open ports (tcp and udp) on my machinehttp://www.lmgtfy.com/?q=How+can+I+list+all+the+open+TCP+and+UDP+ports+on+my+system%3F> 3) Open a specific port say port 3306 so that a telnet request from a > remote machiene can be accepted > > 4) Disable the effect of 3 above in case I want tohttp://www.lmgtfy.com/?q=How+can+I+open+or+close+a+specific+port+in+my+iptables+configuration%3F> Thanks in anticiaption of your kind responses to the questions above.You're welcome. -- Mike Burger http://www.bubbanfriends.org "It's always suicide-mission this, save-the-planet that. No one ever just stops by to say 'hi' anymore." --Colonel Jack O'Neill, SG1
> On Thu, 2013-04-25 at 13:04 +0100, Adekoya Adekunle wrote: >> I want to know the right command to type from a bash shell so that i can >> 1) Check the version of my cent os > > lsb_release -a>From the question, he wants to know the version of CentOS, not the LSB info.rpm -q centos-release -- Mike Burger http://www.bubbanfriends.org "It's always suicide-mission this, save-the-planet that. No one ever just stops by to say 'hi' anymore." --Colonel Jack O'Neill, SG1
> On 25 April 2013 13:30, Mike Burger <mburger at bubbanfriends.org> wrote: > >> > On Thu, 2013-04-25 at 13:04 +0100, Adekoya Adekunle wrote: >> >> I want to know the right command to type from a bash shell so that i >> can >> >> 1) Check the version of my cent os >> > >> > lsb_release -a >> >> >From the question, he wants to know the version of CentOS, not the LSB >> info. >> >> rpm -q centos-release > > > lsb_release gives the version of CentOS. > > $ lsb_release -a > LSB Version: > :core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch > Distributor ID: CentOS > Description: CentOS release 5.8 (Final) > Release: 5.8 > Codename: Final >So it does...I neglected the -a when I ran it. Thank you.
On 04/26/2013 12:40 AM, Reindl Harald wrote:> > > Am 26.04.2013 01:35, schrieb Phil Dobbin: >> How odd. On my 64-bit CentOS 6.3, 'lsb_release -a' returns: >> >> 'bash: lsb_release: command not found' >> >> Works on Debian 6.0.5 & Ubuntu 12.04.2 & 12.10. >> >> The CentOS distro is a cloud server image if that makes any difference >> although I wouldn't have thought so > > and what says "rpm -qa | grep lsb"? > > redhat-lsb.i686 : LSB base libraries support for CentOS > redhat-lsb.x86_64 : LSB base libraries support for CentOS > redhat-lsb-compat.i686 : LSB package split dependency compat helper > redhat-lsb-compat.x86_64 : LSB package split dependency compat helper > redhat-lsb-core.i686 : LSB base libraries support for CentOS > redhat-lsb-core.x86_64 : LSB base libraries support for CentOS > redhat-lsb-graphics.i686 : LSB graphics libraries support for CentOS > redhat-lsb-graphics.x86_64 : LSB graphics libraries support for CentOS > redhat-lsb-printing.i686 : LSB printing libraries support for CentOS > redhat-lsb-printing.x86_64 : LSB printing libraries support for CentOS >Point taken. Nothing. I'll install them now. Cheers, Phil... -- currently (ab)using CentOS 5.9 & 6.4, Debian Squeeze & Wheezy, Fedora Beefy, Spherical & That Damn Cat, Lubuntu 12.10, OS X Snow Leopard & Ubuntu Precise, Quantal & Raring GnuPG Key : http://www.horse-latitudes.co.uk/publickey.asc
re point 3, do you have 'telnetd' installed. You should probably use ssh unless you have a good reason not to. On Fri, Apr 26, 2013 at 12:04 AM, Adekoya Adekunle < adekunleadekoya at gmail.com> wrote:> I want to know the right command to type from a bash shell so that i can > 1) Check the version of my cent os > 2) Check all the open ports (tcp and udp) on my machine > 3) Open a specific port say port 3306 so that a telnet request from a > remote machiene can be accepted > 4) Disable the effect of 3 above in case I want to > > Thanks in anticiaption of your kind responses to the questions above. > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >