How to check a service is running or not in Linux?

This is a small "How to" for checking a service is running in the server or not. Some times we need to check the status of a service if its running or not to cross verify some thing on server.. Suppose you have edited your httpd.conf file and when restarting the service it just show start service is on. But when you try to get access to the web site the site is down. At that time we can use below command to check if Apache service is running...

Top 30 Nmap Command Examples For Sys/Network Admins

nmap is short for Network Mapper. It is an open source security tool for network exploration, security scanning and auditing. However, nmap command comes with lots of options that can make the utility more robust and difficult to follow for new users. The purpose of this post is to introduce a user to the nmap command line tool to scan a host and/or network, so to find out the possible vulnerable points in the hosts. You will also learn how...

Linux Set Date and Time From a Command Prompt

How can I set the system date and time from the command prompt (bash shell)? I don't have GUI installed and I am login over ssh session. How can I set date under Linux operating systems? Use the date command to display the current date and time or set the system date / time over ssh session. You can also run the date command from X terminal as root user. This is useful if the Linux server time and/or date is wrong, and you need to set...

How To: Bash Backup Script Leave a reply

Alright so here is my simple version of a bash backup script… Feel free to comment, if I miss something or you think something should be added please let me know. For this example I assume that you have the proper user access and have some minimal command line experience! First you should know that I am using several basic commands like “cp” to copy files and “tar” to compress files. You will also need to know how to use command line text...