Found 2065 Articles for Operating System

Guide to vi Editor on Linux

Satish Kumar
Updated on 24-Mar-2023 15:58:36

488 Views

Introduction The vi editor is one of most popular text editors on Linux. It is a command-line-based editor that comes pre-installed on most Linux distributions. Although it may seem daunting to new users, it is a powerful and efficient tool for editing text files. In this guide, we will cover basics of using vi editor on Linux. Opening vi Editor To open vi editor, open a terminal window and type "vi" followed by name of file you want to edit. For example, to edit a file called "example.txt", type − vi example.txt If file does not exist, vi will ... Read More

Preventing Bash Fork Bombs in Linux

Satish Kumar
Updated on 24-Mar-2023 15:57:59

451 Views

Introduction Bash Fork Bomb is a type of denial of service (DoS) attack that can crash or freeze a Linux system by overwhelming its resources. attack uses a malicious script that creates a large number of child processes, causing system to run out of available resources, such as memory or CPU time. These child processes then spawn more child processes, and cycle continues until system is unable to respond. Preventing Bash Fork Bombs in Linux is essential for system administrators to ensure stability and availability of their systems. In this article, we will explore what a Bash Fork Bomb is, ... Read More

Decompressing Files in Linux with Gunzip

Satish Kumar
Updated on 24-Mar-2023 15:45:39

448 Views

In the world of Linux, file compression is a common practice to reduce file sizes and save disk space. There are many compression algorithms available, and each has its own strengths and weaknesses. One of the most popular compression algorithms in Linux is gzip. In this article, we will explore how to decompress files in Linux with gunzip. What is gzip? gzip is a file compression utility used to compress and decompress files. gzip is a lossless compression algorithm, which means that the original data can be reconstructed perfectly after decompression. gzip is widely used on Linux systems, and it ... Read More

Linux man Command

Satish Kumar
Updated on 24-Mar-2023 15:45:13

1K+ Views

Introduction In world of Linux, man command is an essential tool for anyone who is serious about using command line interface. It stands for "manual", and it is a built-in help system that provides users with detailed information on how to use various Linux commands. In this article, we will dive deep into Linux man command, exploring its functionality and usefulness, as well as providing examples of how to use it. Overview of Linux man Command The Linux man command is a built-in help system that provides users with detailed information about commands, utilities, and functions on Linux operating system. ... Read More

How to Count Number of Files in Linux

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

25K+ Views

Introduction Linux is a popular open-source operating system used by millions of users worldwide. One of most common tasks in Linux is to count number of files in a directory. Counting number of files is an essential operation when dealing with large data sets and is also useful when cleaning up system or performing other maintenance tasks. In this article, we will discuss various methods to count number of files in Linux, along with examples. Method 1: Using ls command with option -l The 'ls' command is one of most commonly used commands in Linux to list files in a ... Read More

Ifconfig Command in Linux

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

431 Views

Introduction ifconfig command is an important tool used in Linux operating system for network administration. It is a command line utility that is used to configure network interfaces and display network interface parameters. In this article, we will discuss ifconfig command in detail, including its syntax, options, and usage. Syntax of ifconfig Command The syntax of ifconfig command is as follows − ifconfig [interface] [options] In above syntax, "interface" parameter specifies network interface for which you want to configure or display information. If you do not specify any interface, command will display information for all available interfaces. The "options" ... Read More

Remove Blank Lines From a File in Linux

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

10K+ Views

Introduction When working with files in Linux, it is common to come across files that contain blank lines. These blank lines can make it difficult to read file, especially when dealing with large files. In this article, we will discuss different methods to remove blank lines from a file in Linux. Why Remove Blank Lines from a File? There are several reasons why you may want to remove blank lines from a file. First, it makes file easier to read, especially when dealing with large files. Second, it can help reduce file size, which can be beneficial when transferring or ... Read More

Guide to chgrp Command in Linux

Satish Kumar
Updated on 24-Mar-2023 15:41:26

8K+ Views

Introduction In Linux, chgrp command is a useful tool for changing group ownership of files and directories. It is an important command for system administrators who need to manage user permissions and access control on a Linux system. chgrp command is also useful for collaborative work where users need to share files and directories with specific groups. In this article, we will explore chgrp command and its usage in detail. What is chgrp Command in Linux? The chgrp command is used to change group ownership of files and directories in Linux. chgrp command changes group ownership of a file or ... Read More

Introduction to tee Command in Linux

Satish Kumar
Updated on 24-Mar-2023 15:40:47

286 Views

Introduction The tee command is a commonly used command in Linux. It is a simple yet powerful command that is used to read standard input, then write it to a file, and also to standard output. tee command takes its name from T-splitter used in plumbing, which splits a stream of water into two streams. The tee command is a part of coreutils package in Linux, and it is pre-installed on almost all Linux distributions. tee command is useful for a wide variety of tasks, such as creating backups, debugging scripts, and monitoring system logs. In this article, we will ... Read More

How to Kill a Background Process in Linux

Satish Kumar
Updated on 24-Mar-2023 15:40:12

12K+ Views

Linux is a powerful and flexible operating system that is popular among developers and system administrators. One of benefits of Linux is that it allows users to run multiple processes simultaneously, which can increase productivity and efficiency. However, sometimes a background process may become unresponsive or cause system performance issues. In such cases, it becomes necessary to kill process. In this article, we will discuss how to kill a background process in Linux. Understanding Background Processes Before we dive into process of killing a background process, it's essential to understand what background processes are and why they are important. In ... Read More

Advertisements