linux

  1. K

    How to detect DDoS attack on Linux server?

    Login to your server via SSH Now run below command which help to find the particular IP address from which attack is goind on. # netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq –c Next you have to enter this command from which you can get source IP address and...
  2. K

    Find Last 30 days modified files in Linux

    Linux allows you to search for files across the system using the find command. But what about the cases when you need to find files that were modified in a certain time period? Linux has commands for that purpose as well. It is the -mtime option. It’s used together with the find command to...
  3. K

    In Linux or Unix enable apache file and directory indexing

    You can enable apache file and directory indexing by making changes in Apache config file: You can use directory options in Apache configuration file, httpd.conf file is an Apache configuration file. You can add below code in that file or you can also add that code in /etc/apache2/apache2.conf...
  4. K

    Adding/Removing a User from a Group in Linux

    Linux allows multiple users to connect to it and work in collaboration. Hence it, by default, is a multi-user system. Managing all the users is a fundamental task for any Linux admin. User management involves everything from creating users, to managing their privileges to removing them when not...
  5. K

    Check the Processes Listening on a Given Port in Linux (3 Ways)

    Ports are an important element of communication among apps and software. They serve as an endpoint for communication. In the case of an operating system like Linux, a port is a logical construct that recognizes a particular process or a network service. At any given point in time, there might be...
  6. K

    A Complete Guide to Clearing the Linux Terminal

    Terminal window is the preferred way for developers and admin to work on their product. But at times, the terminal gets cluttered. When it does, it can be distracting to work on that active window. So what you need to do is clear the Linux terminal and remove some of that clutter. How to clear...
  7. K

    Location of nginx logs on server

    You can find the logs in /var/log/nginx/ location: [[email protected] ~]# ls -lah /var/log/nginx/ total 608K drwxr-xr-x 4 root root 4.0K Nov 11 04:36 . drwxr-xr-x. 17 root root 4.0K Nov 11 02:10 .. -rw-r----- 1 nobody adm 187K Nov 8 03:35 access.log drwx--x--x 2 root root 267 Nov 7 04:45 domains -rw-r-----...
  8. K

    Increase and expansion of CentOS filesystem

    Have you ever used LVM? It is one of the most recommended tools for a system admin who works on a web server. Use the command for checking the filesystem size: df –h The below command is to check the presence of drives and it helps to increase the size of the filesystem: fdisk –l Perform...
  9. K

    Do you know to process Linux Kernel upgrades and updates?

    Let us start with the question here! Between the processor and hardware of the computer, there comes the interface of the core component. What is the core interface between the processor and hardware? The core interface that operates in Linux operating system is Linux Kernel. Linux Kernel is the...
  10. bhawanisingh

    Scheduling cron job under Linux or UNIX

    Adding Jobs To cron Under Linux or UNIX: Using cron the Linux and UNIX users can run their scripts and commands at the specified time and date. Scripts can also be scheduled. Corn is the mostly preferred tool for running system admin jobs and it will always executed in the background. It...
  11. bhawanisingh

    Set Time, Date Timezone in Linux Command Line

    It's very important to set correct time and date in Linux.various things only depend on this time zone. It's not a matter that you are using Linux server or Linux to your personal computer.it's always important to set the correct time on the server or on the clock. Date Timezone in Linux from...
  12. bhawanisingh

    How to Enable SSH Login Notification on Linux CentOS server?

    Is your Linux server is used by multiple people on same time? If yes, then add an SSH login notification on your server so you come to know whenever and whom login. It will send you an email when someone login to your account. But for this its must that your server will be able to send an email...
  13. bhawanisingh

    On CentOS server : How to Start/Stop or restart Ngnix server?

    Ngnix which is also known as Engine-X, is an open source software for reverse proxying , load balancing, web serving, media streaming, caching and more. As it is already described that Nginx is used as load balancer and reverse proxy for servers like HTTP,HTTPS, UDP and TCP. As Nginx is a load...
  14. bhawanisingh

    How to change SSH port on CentOS Linux Server ?

    In need to secure your server you should avoid default port for SSH as it will increase the security level and decrease risk of vulnerability. We all know that default SSH port is 22, we should change it to something else but you should must take care before choosing a number that it is not in...
  15. bhawanisingh

    [RESOLVED] Error "Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)

    This problem occurs when you run command "# mysql -u USER -p". It happens as MySQL is not running or installed on server. To rectify this we have first check whether MySQL is running or not. To check MySQL is Running or not type the following command: ---- # service mysqld status ---- You can...
  16. bhawanisingh

    [SOLVED] Error cPanel "Your IP address has changed. Please log in again".

    Error cPanel "Your IP address has changed. Please log in again" This error occurs when your IP address chnaged while you logged into your cPanel control panel. There must be two possibilities behind this error messgae. 1). Either, Your Internet Servive Provider (ISP) has a short DHCP lease...
  17. bhawanisingh

    How to install CentOS Web Control Panel on CentOS system ?

    CentOS Web Panel is a free web hosting control panel which facilitates you to easily manage servers. The latest version of CentOS Web Panel 0.9.8.6 was released on 19th April 2015. This control panel is full with various features that provide an ease to manage and operate server operations...
  18. bhawanisingh

    How to remove server signature from CentOS/RedHat Linux System

    Web Server signature is an information about the server and hosting operating system i.e. Apache version number and operating system info. By default configuration of Apache, any error page will show the full signature of the server (version number), that can be risky as it can be used by...
  19. bhawanisingh

    How to fix Nginx Error "413 Request Entity Too Large" ?

    Nginx Error 413 Request Entity Too Large : This error is a very common error in nginx, which normally comes when we requests more information than is limited by PHP and Nginx configurations. It occurs on stand alone nginx server, when nginx acts as a front end server for apache at back end...
  20. bhawanisingh

    How to add/change a user to a group in Linux operating system ?

    Changing the group of a user is quite easy and simple task, but it is not known to every user. In this topic we will tell you the commands through which not only you can add new user to a group but also change existing user's group too. The basic commands used are "useradd" and "usermod"...
Top