Found 1437 Articles for Linux

Print Linux Directory Structure as a Tree

Satish Kumar
Updated on 24-Mar-2023 16:02:36

2K+ Views

Introduction Linux is an open-source operating system that has gained a lot of popularity among developers and system administrators. It offers various powerful tools and commands to manage files, directories, and other resources on system. One such command that comes in handy is tree command, which helps in displaying directory structure of system in a tree-like format. In this article, we will explore tree command and its usage in detail. What is tree command? The tree command is a command-line tool that displays directory structure of a file system in a tree-like format. It shows nested structure of directories, sub-directories, ... Read More

How to Use cd Command in Bash Scripts

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

11K+ Views

The cd command is one of most fundamental commands in Bash shell. It is used to change current working directory to a specified location. This command is particularly useful when navigating through file system, especially in situations where you need to access files or directories in a different location. In this article, we will explore how to use cd command in Bash scripts. What is cd Command? Before diving into usage of cd command, it is important to understand what it does. cd command is a built-in command in Bash that is used to change current working directory. When you ... Read More

Guide to vi Editor on Linux

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

486 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

Advertisements