Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
How to Hack Your Own Linux System?
As a Linux user, you may have heard the term "hacking" in relation to cybersecurity and assumed it was only used by malicious attackers. However, ethical hacking (also called penetration testing) can be used as a means of improving your own system's security by identifying vulnerabilities and potential entry points that could allow others to gain unauthorized access. By testing your own Linux system, you can identify these weaknesses before cybercriminals have a chance to exploit them. Preparing Your System for Ethical Hacking Installing Necessary Tools and Software Before attempting to test your Linux system, it is ...
Read MoreCentralized Secure Storage (iSCSI) - \"Initiator Client\" Setup on CentOS
Centralized secure storage is an essential component of many modern IT infrastructures. It allows multiple servers to access a shared storage pool, enabling higher flexibility, scalability, and availability. One popular method is iSCSI (Internet Small Computer System Interface), which enables servers to access remote storage over IP networks as if it were locally attached. What is iSCSI? iSCSI is a protocol that encapsulates SCSI commands and data into IP packets, allowing servers to communicate with remote storage devices over standard Ethernet networks. This creates a Storage Area Network (SAN) using existing network infrastructure, making it cost-effective compared to ...
Read MoreHow to list down all the available commands and aliases on Linux?
Linux provides a vast collection of commands and aliases that users can utilize in the terminal. These commands serve different purposes and can be executed from anywhere in the command line interface. Understanding how to list available commands and aliases is essential for efficient Linux system administration and usage. There are several approaches to discover all available commands in Linux. You can write custom shell scripts or use built-in shell functions designed for this purpose. The most effective method involves using the compgen command, which is a bash builtin specifically designed to list various shell components. Using the ...
Read MoreHow to use tmux on Linux?
Tmux is a terminal multiplexing utility for Unix systems that provides an interface between several programs running simultaneously on one computer. It allows users to detach from terminal sessions without killing them and reattach later, making it invaluable for remote work and long-running tasks. Tmux operates through sessions, windows, and panes — sessions contain multiple windows, and windows can be split into multiple panes. All commands use a prefix key (default: Ctrl-b) followed by another key. Installation Install tmux on Debian-based Linux systems using the apt package manager − sudo apt-get update sudo apt-get install ...
Read MoreSearch Within Specific File Types Using grep on Linux
The grep command in Linux is a powerful text search utility that allows you to search for specific patterns within files. When working with large directory structures containing various file types, you can combine grep with specific options to search only within files of particular types, making your searches more targeted and efficient. Basic File Type Search with grep To search for a specific pattern within a specific file type, use the --include option with the -r (recursive) flag. This combination allows you to search through directories while filtering by file extension. grep -r 'example' --include='*.txt' ...
Read More10 Best and Most Popular Linux Desktop Environments
Linux is an open-source operating system that has gained massive popularity due to its flexibility and customization options. One of the most appealing features of Linux is the ability to choose from a wide range of desktop environments. A desktop environment is a collection of software applications, graphical components, and user interface elements that provide a complete graphical interface for interacting with the operating system. GNOME GNOME is one of the most widely-used desktop environments, known for its clean, modern design and focus on simplicity. It features the Activities Overview for application launching and window management, along with ...
Read MoreHow to Hide Apache Version Number and Other Sensitive Info?
Cybersecurity is a growing concern for businesses and individuals alike. One way to protect yourself against potential attacks is by hiding sensitive information such as your Apache version number. The Apache version number can be used by attackers to identify vulnerabilities in your system and launch targeted attacks. Additionally, default Apache settings may reveal sensitive information such as server operating system, installed modules, or applications, which can make it easier for hackers to gain unauthorized access. By hiding the Apache version number and other sensitive information, you can reduce the risk of cyberattacks. Understanding Apache Version Number and ...
Read MoreCheat - An Ultimate Command Line \'Cheat-Sheet\' for Linux Beginners
Linux is a powerful and flexible operating system used by developers, system administrators, and enthusiasts alike. However, learning Linux can be challenging, especially for beginners. There are numerous commands and tools to remember, and it can be overwhelming to keep track of them all. That's where Cheat comes in − an open-source command-line utility that provides quick access to command-line cheatsheets. What is Cheat? Cheat is a command-line utility that provides access to command-line cheatsheets for various Linux commands and tools. It is written in Python and available on GitHub. Cheat is incredibly lightweight and easy to use, ...
Read MoreHow to list running screen sessions on Linux?
Screen (also known as GNU Screen) is a terminal multiplexer that allows you to start a screen session and open multiple windows within that session. A key advantage is that processes running in Screen continue to execute even when their window is not visible or when you disconnect from the session. Installing Linux Screen If the screen package is not already installed on your Linux distribution, you can install it using the appropriate command for your system. For Ubuntu and Debian sudo apt update sudo apt install screen For CentOS and Fedora ...
Read MoreLoad Environment Variables in a Cron Job
When crontab runs a command, it doesn't read any environment variables from files like ~/.bashrc, ~/.bash_profile, etc. Because cron runs tasks from a non-interactive, non-login shell, it operates with a minimal environment. Some applications require specific environment variables to function correctly, making it necessary to load them explicitly in cron jobs. This article explores different methods for loading environment variables in crontab to ensure your scheduled tasks have access to the required configuration. Setting the BASH_ENV Variable We can set environment variables for shell scripts by using the BASH_ENV variable. When BASH_ENV is set, bash executes the ...
Read More