Linux Source Command

Satish Kumar
Updated on 24-Mar-2023 15:24:43

29K+ Views

Introduction The Linux source command is an essential tool for Linux users and administrators. It is used to execute a script file in current shell environment, and it allows you to modify current shell environment in same way that you would if you had typed commands manually. In this article, we will explore Linux source command and its various applications. What is Linux source command? The Linux source command is a shell command that reads and executes commands from a file in current shell environment. file is typically a shell script, but it can also be any text file containing ... Read More

Process Memory Management in Linux

Satish Kumar
Updated on 24-Mar-2023 15:23:51

9K+ Views

Process memory management is a crucial aspect of any operating system. In Linux, memory management system is designed to efficiently manage memory usage, allowing processes to access and use memory they require while preventing them from accessing memory they do not own. In this article, we will discuss process memory management in Linux in detail, covering various aspects such as memory allocation, virtual memory, memory mapping, and more. Memory Allocation Memory allocation is process of assigning memory to a process or program. In Linux, kernel provides two main methods for memory allocation: static and dynamic. Static Memory Allocation Static memory ... Read More

Linux Job Control: Disown and Nohup

Satish Kumar
Updated on 24-Mar-2023 15:23:28

774 Views

Introduction Linux is an open-source operating system that is widely used in industry. One of most notable features of Linux is its command-line interface (CLI), which provides a lot of flexibility and power to users. When working in command line, it is common to run multiple commands concurrently. However, sometimes, you may want to control how these commands are executed and how they interact with each other. This is where job control comes in. Job Control Job control refers to ability to manage and manipulate running processes in a Linux system. It allows users to start, stop, pause, resume, and ... Read More

Read Random Line from a File in Linux

Satish Kumar
Updated on 24-Mar-2023 15:20:44

2K+ Views

In Linux, reading a random line from a file can be a useful task in various scenarios. For example, when you want to select a random word from a dictionary or randomly select a line from a log file for analysis purposes. There are several ways to read a random line from a file in Linux. In this article, we will explore different methods to achieve this task along with their pros and cons. Method 1: Using shuf Command The shuf command is a simple and efficient way to read a random line from a file in Linux. shuf command ... Read More

Call an External Program Using AWK

Satish Kumar
Updated on 24-Mar-2023 15:20:03

869 Views

Introduction Awk is a powerful text processing tool that can be used to automate various tasks such as data manipulation, filtering, and reporting. One of interesting features of awk is its ability to call external programs from within script. In this article, we will explore how to call an external program using awk. Understanding System() Function The system() function is used to execute external commands from within awk. syntax of system() function is as follows − system(command) The command argument is external command that we want to execute. When system() function is executed, awk passes command argument to ... Read More

Apply Different Titles for Subplots Using Plotly in Python

Atharva Shah
Updated on 24-Mar-2023 15:17:39

5K+ Views

Introduction Subplot creation is one of several tools for data visualization provided by the Python library Plotly. A big narrative can be broken up into multiple smaller ones using subplots. Sometimes, in order to give the main story greater depth and consistency, it may be essential to give each subplot its own title. Syntax Customizing subplot titles in plot grids is made possible through the usage of the subplot_titles parameter, which enables us to create unique titles for each plot. The make_subplots() function is essentially a factory method that allows us to establish a plot grid with a designated number ... Read More

Annotate Matplotlib Scatter Plots

Atharva Shah
Updated on 24-Mar-2023 15:14:36

3K+ Views

Introduction Scatter plots are an essential tool for illustrating the connection between two continuous variables. They help us identify potential anomalies, patterns, and trends in the data. Yet, scatter charts can also be hard to interpret when there are numerous data points. If comments are made, some points of interest in a scatter plot could be easier to observe and understand. In order to make Matplotlib scatter plots more understandable, this article will examine how to annotate them. Syntax ax.annotate(text, xy, xytext=None, arrowprops=None, **kwargs) text − Text to be displayed in the annotation. xy − (x, y) coordinates ... Read More

Annotate Bars in Grouped Barplot in Python

Atharva Shah
Updated on 24-Mar-2023 15:13:21

2K+ Views

Introduction As data visualization becomes an integral part of every data analysis project, bar plots serve as a great tool to represent categorical data. Grouped bar plots in particular are useful when we want to compare multiple groups side-by-side. Syntax and Use Cases Annotations can be added to a bar plot to provide additional information or clarification to the data being presented. The annotation function of matplotlib can be used to add these annotations to each bar. The function takes the following parameters − text − The text to be displayed in the annotation. xy − The point ... Read More

Annotate Bars in Bar Plot with Matplotlib in Python

Atharva Shah
Updated on 24-Mar-2023 15:04:43

7K+ Views

Introduction Bar plots are a common sort of chart used in data visualization. They are a go-to choice for many data scientists since they are easy to produce and comprehend. Bar charts, however, might fall short when we need to visualize additional information. Annotations are useful in this situation. In bar plots, annotations may be used in order to better comprehend the data. Syntax and Usage Use Matplotlib's annotate() function. The method accepts a number of inputs, such as the text to annotate, where the annotation should be placed, and several formatting choices including font size, color, and style. The ... Read More

Animate an Object Using the Arcade Module

Atharva Shah
Updated on 24-Mar-2023 15:03:18

440 Views

Introduction Python's Arcade module allows users to build interactive animations. It has simple and straightforward documentation for making interactive games, and its object-oriented architecture makes working with animated objects simple. Wonderful Animations with Arcade Module The Arcade module in Python is a Python library for creating 2D video games and can be easily installed by pip installing the arcade package. In order to use Arcade in your Python project, you need to install the Arcade external dependency by running the command "pip install arcade" in the terminal. Let's look at two fantastic uses for this Python package. Create a ... Read More

Advertisements