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
- Check the version of my cent os
lsb_release -a
- Check all the open ports (tcp and udp) on my machine
netstat -atulp (man netstat)
- Open a specific port say port 3306 so that a telnet request from a
remote machiene can be accepted
man iptables
- 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@centos.org http://lists.centos.org/mailman/listinfo/centos
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
- 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
On 25 April 2013 13:30, Mike Burger mburger@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
- 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
Dave...
-- Dave Cross :: dave@dave.org.uk http://dave.org.uk/ @davorg
On 25 April 2013 13:30, Mike Burger mburger@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
- 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 Thu, Apr 25, 2013 at 01:39:29PM +0100, Dave Cross wrote:
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
And it pulls it from a text-based file that is subject to automated and human modification. Parsing release info from centos-release is the most accurate way to determine what the currently running release is.
John
On 04/25/2013 01:39 PM, Dave Cross wrote:
On 25 April 2013 13:30, Mike Burger mburger@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
- 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
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.
Cheers,
Phil...
On Thu, Apr 25, 2013 at 6:00 PM, Mike Burger mburger@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
- Check the version of my cent os
lsb_release -a
I believe you need to install the package to get lsb_release. It is not present in my minimal server install.
From the question, he wants to know the version of CentOS, not the LSB info.
rpm -q centos-release
The default content in the file /etc/issue comes with Distro name + version number (CentOS, Debian, Ubuntu in my case).
From: Adekoya Adekunle adekunleadekoya@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 to
1. 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
- Check the version of my cent os
http://www.lmgtfy.com/?q=Check+the+version+of+my+cent+os
- Check all the open ports (tcp and udp) on my machine
http://www.lmgtfy.com/?q=How+can+I+list+all+the+open+TCP+and+UDP+ports+on+my...
- Open a specific port say port 3306 so that a telnet request from a
remote machiene can be accepted
- Disable the effect of 3 above in case I want to
http://www.lmgtfy.com/?q=How+can+I+open+or+close+a+specific+port+in+my+iptab...
Thanks in anticiaption of your kind responses to the questions above.
You're welcome.
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@gmail.com> wrote:
I want to know the right command to type from a bash shell so that i can
- Check the version of my cent os
- Check all the open ports (tcp and udp) on my machine
- 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@centos.org http://lists.centos.org/mailman/listinfo/centos