How to check Linux distribution and version?

advertisement

linuxIf u are on an unknown server and keen to know it’s linux distribution info, you can check the linux distribution info by just a single command (eg. version, codename, etc). Just tested this command in UBuntu and CentOS, both return as what i expected. 🙂

To check linux distribution and version, follow the steps below:-

Continue reading How to check Linux distribution and version? »

How to send message to syslog server?

advertisement

linux, macOnce syslog server is up, you can send a message to your syslog server to test if it’s working. Just a simple command and you’ll send a message to syslog server. Just keep an eye at the log and u’ll see the message 🙂

To send message to syslog server, follow the steps below:-
Continue reading How to send message to syslog server? »

How to loop thru directory files in bash shell

advertisement

mac, linuxIf you need to write a bash script that loop thru directory, then here’s the solution. While writing this bash script to loop thru directory files, i learn something more about single and double quote. So make sure you dont add any double quotes or single quotes to your path when you follow the tutorial below.

To loop thru directory files in bash shell, follow the steps below:-

Continue reading How to loop thru directory files in bash shell »