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
10 Core Linux Interview Questions with Answers
Linux is a widely used open-source operating system that has become increasingly popular over the years. As a result, there is a high demand for Linux professionals, and many companies are looking for qualified candidates who have the right knowledge and experience. If you are looking to get into a Linux-related career, then it's important to prepare yourself for interviews with some of the most common Linux-related questions that you may face. In this article, we will discuss some of the core Linux interview questions with answers that you can use to prepare for your next interview. What is ...
Read MoreProcessing Linux Commands in Parallel
Processing Linux commands in parallel allows administrators to execute multiple commands simultaneously, significantly improving efficiency when performing tasks like system updates, service management, and file operations. Command chaining is the technique of combining multiple commands using various operators and methods. Using the & (Background) Operator The & operator runs commands in the background, allowing the shell to execute the next command without waiting for the previous one to complete. command1 & command2 Example running ls and cat commands simultaneously: ls & cat Linux.txt [1] 6178 Don't erase the existing ...
Read MoreHow to Delete all Text in a File Using Vi/Vim Editor?
Vi and Vim are powerful text editors widely used in Unix/Linux environments for editing plain text files, system configuration files, and programming source code. Vi stands for visual editor, while Vim stands for Vi Improved. Originally developed by Bill Joy in 1976, these editors offer extensive functionality including syntax highlighting, search-and-replace, macros, and efficient handling of large files. One common task is completely clearing a file's content, which can be accomplished using specific commands. Basic Vi/Vim Commands Opening a File To open a file in Vi/Vim, use the command line to navigate to the file's directory ...
Read MoreCPUTool - Limit and Control CPU Utilization of Any Process in Linux
CPU utilization is a critical factor that determines system performance. When multiple processes run simultaneously, the CPU can become overloaded, leading to slow performance or system crashes. CPUTool is a command-line utility that enables you to limit and control CPU utilization of any process in Linux by setting CPU affinity, priority, and resource allocation. Installation of CPUTool CPUTool is available in most Linux distribution repositories. The tool primarily uses the cpuset package for CPU control and management. Ubuntu/Debian Installation sudo apt-get install cpuset CentOS/RHEL Installation sudo yum install cpuset ...
Read MoreHow to run a crontab job every week on Sunday?
In order to create a crontab job to run every Sunday, we first need to explore and understand what a crontab job is. A crontab is nothing but a list of commands that we can run during a cron job. A cron job is a utility that schedules automatic execution of commands at specific times. Creating a Crontab Job We can start a cron job with the help of bash script by following the commands shown below − crontab -e This will open a file which you can edit, insert the cron job ...
Read MorecURL Command Without Using Cache
cURL (Client URL) is a command-line tool that allows data to be transferred to or from a server without requiring user interaction by utilizing the supported libcurl library. cURL can also be used to troubleshoot network connections and test web services. In some cases, we may need to send requests that bypass the cache and generate a fresh response from the server. Caching can occur on the client side (browser cache) or the server side. When using the cURL command, remember that it is only an HTTP client and does not cache any requests on the client side. As ...
Read MoreWhen to Use an Alias vs Script vs a New Function in Bash
When working with Bash, it's important to understand the differences between using an alias, a script, and a function. Each has its own unique use case and can be used to accomplish different tasks efficiently. Aliases An alias is a way to create a shortcut for a command or series of commands. They are defined using the alias keyword followed by the desired shortcut and the command it should reference. For example, the following creates an alias for the ls -la command − alias ll='ls -la' This allows the user to type ll instead ...
Read MoreDo network file systems pre-fetch
In a networked computing environment, network file systems (NFS) allow users to access and manage files across different computers and storage devices over a network. A client machine can access files stored on a remote server as if they were on its local file system. One important performance optimization technique used in network file systems is pre-fetching − the proactive loading of data that is likely to be accessed soon. What is Pre-fetching in Network File Systems? Pre-fetching is a technique used to improve file system performance by anticipating data that a user might access and proactively loading ...
Read More8 Best Open Source Web Servers
Web servers are essential components of internet infrastructure that enable the delivery of web content to users worldwide. A web server is a software application that runs on server hardware and responds to HTTP requests from web browsers, serving static files, dynamic content, and web applications. This article explores eight of the most popular and reliable open source web servers used across the industry today. Apache HTTP Server Apache HTTP Server remains the world's most widely deployed open source web server since its initial release in 1995. Maintained by the Apache Software Foundation, it runs seamlessly across multiple ...
Read MoreSet Up cURL to Permanently Use a Proxy on Linux
cURL is a command-line tool used to request data from servers and transfer it to devices. The user specifies the server URL and any data to be sent. cURL works on Windows, macOS, and Linux, supporting over 25 protocols including SFTP, FTP, HTTPS, and HTTP. It is one of the best open-source tools for API calls and debugging network requests. A proxy server acts as an intermediary between users and websites, transferring traffic while providing security and functionality layers. When using a proxy, internet requests first go to the proxy server, which evaluates them against predefined rules before forwarding ...
Read More