Sunday 21 November 2021

10 ways to kill a process in linux complete guide

Linux is a powerful operating system that offers users multiple options for controlling and managing running processes. However, there may be instances when a process needs to be terminated for various reasons. In this article, we will explore different methods that can be used to kill a process in Linux. We will also provide code examples to demonstrate each of the methods discussed.

Method 1: Using the "kill" command

The "kill" command is one of the most commonly used methods for terminating a process in Linux. This command sends a signal to the process, indicating that it should be terminated. By default, the signal sent by the kill command is SIGTERM, which allows the process to perform a graceful shutdown. If the process does not respond to SIGTERM, the user can send a more forceful signal using the SIGKILL option.

Read more »

Labels: , ,

Monday 21 November 2022

Understanding Differences in Behavior of Process.join() in Windows 10 and Ubuntu 18.04 in Python 3.6

When it comes to multi-processing in Python, developers often run into differences in behavior between different operating systems. One such difference is in how Windows 10 and Ubuntu 18.04 handle the Process.join() function. In this article, we will explore this difference in behavior and understand what accounts for it.

Read more »

Labels: , ,

Sunday 29 March 2020

Linux User Management - Granting/Revoking sudo access

we will learn how to manage user accounts and grant or revoke sudo access on a Linux system. We will be using Ubuntu as our operating system for this project.

Requirements:

    • Ubuntu installed on a machine

    • Sudo access

    • Basic understanding of Linux commands

Read more »

Labels: , , , ,

Sunday 13 December 2020

Finding IP address from hostname in UNIX and Linux

In Unix and Linux operating systems, it is often necessary to find the IP address associated with a hostname. This can be useful for a variety of reasons, such as troubleshooting network connectivity issues, configuring network services, or performing security audits. There are several commands available in Unix and Linux that can be used to find the IP address of a hostname, including nslookup, dig, and host. These commands query the DNS server to retrieve the IP address associated with a given hostname. In this way, they help to resolve human-readable domain names into machine-readable IP addresses. In this context, we will explore some examples of how to find the IP address of a hostname in Unix and Linux

In Unix and Linux operating systems, there are several ways to find the IP address of a hostname. Some of the most common methods are:

Read more »

Labels: , , ,

Tuesday 21 April 2020

Top 10 example of using Vim or VI editor in UNIX and Linux

Vim or VI is a popular text editor used in UNIX and Linux systems. It is a powerful tool that allows users to edit and manipulate text files efficiently. In this article, we will discuss 10 examples of using Vim or VI editor in UNIX and Linux.

1. Opening a file

To open a file in Vim or VI editor, we can use the following command:

vim filename.txt

This command will open the file named filename.txt in Vim or VI editor.

Read more »

Labels: , ,

Thursday 21 March 2019

How to Remove CTRL-M characters From a File in UNIX and Linux? Example

If you're working with text files in a UNIX or Linux environment, you may encounter the issue of unwanted control-M characters, which can cause problems with formatting and readability. These characters are also known as carriage return characters, and they can be removed using a few simple commands in the terminal. In this article, we'll go over how to identify and remove control-M characters from your files using UNIX and Linux.

Identifying Control-M Characters

Before we can remove control-M characters from our files, we need to be able to identify them. One way to do this is by using the cat command with the -v option, which displays non-printing characters in a file.

cat -v file.txt


This command will display the contents of the file.txt, showing control-M characters as "^M" in the output. If you see these characters in your file, you'll need to remove them.
Read more »

Labels: , ,

Thursday 7 December 2023

14 Essential Free Courses Every Developer Should Learn

In today's fast-paced world, technology is constantly evolving, and it's essential for developers to stay up-to-date with the latest tools and trends. Whether you're a seasoned pro or just starting out, there are certain technologies that are must-knows for any developer. In this article, we'll explore 14 essential tools and technologies that every developer should master to take their skills to the next level.


1. Git: The Foundation of Version Control 💻

Git is a version control system that allows developers to track changes in code over time. It's an essential tool for collaborative work and is used by many organizations worldwide. Learn how to use Git effectively with our comprehensive course on LinkedIn Learning. 🔗 https://t.co/tjoVxVoKk4

Read more »

Labels:

Wednesday 15 January 2020

top 10 examples of date command in Linux

The date command in Linux is used to display and set the system date and time. It is a powerful tool that can display the date and time in various formats, set the system date and time, and perform simple date calculations. 

Here are 10 examples of how the date command can be used in Linux:

Display the current date and time:

date Output: Thu Mar 24 13:25:36 EDT 2022

Read more »

Labels: , ,