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
Operating System Articles
Page 90 of 171
Remove Blank Lines From a File in Linux
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 MoreGuide to chgrp Command in Linux
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 MoreHow to Kill a Background Process in Linux
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 MoreLinux ping Command
Introduction In world of networking, ability to check if a networked device is reachable or not is a basic requirement. One of tools that can help us achieve this is ping command. ping command is a tool that sends a signal to a specified networked device, and then waits for a response. ping command is available in almost all operating systems, including Linux. In this article, we will explore Linux ping command in detail, including its syntax, options, and examples. What is ping command in Linux? The ping command in Linux is a utility that helps to test connectivity ...
Read MoreHow to find number of RAM Slots in Linux
Random Access Memory (RAM) is an essential component of any computer system. It stores data that processor uses frequently to speed up processing of programs and applications. As number of RAM slots available on a computer determines maximum amount of RAM that can be installed, it is important to know number of RAM slots on a computer system. In this article, we will discuss how to find number of RAM slots in Linux. Why do you need to know number of RAM slots in Linux? How to find number of RAM slots in Linux a. Using dmidecode command b. ...
Read MoreUsing gzip and gunzip in Linux
Introduction When working in Linux, it's common to encounter large files that need to be compressed for storage or transfer. One popular compression tool available in Linux is gzip, which is used to compress files to save disk space and reduce transfer time. In this article, we'll explore how to use gzip and gunzip in Linux, including how to compress and decompress files, and how to work with compressed archives. What is gzip? Gzip is a compression utility tool used in Linux and other Unix-based systems. It's used to compress and decompress files, reducing their size for storage and transfer. ...
Read MoreHow Do so (Shared Object) Filenames Work in Linux
Introduction Linux is an open-source operating system that provides users with a wide range of features and functions. One of essential aspects of Linux is use of shared objects (so) files. Shared objects are files that are used by Linux programs to share code and data between different processes. In this article, we will discuss how shared object filenames work in Linux and provide examples to illustrate concepts. What are Shared Objects (so) Files? Shared objects are a type of file that contains code and data that can be shared between multiple processes in Linux. They are similar to dynamic ...
Read MoreString Manipulation in Bash on Linux
Bash is a shell language used in Linux systems that allows users to interact with system through command-line interface. Bash offers several string manipulation capabilities that can help users manipulate and process text strings. In this article, we will explore various techniques available for string manipulation in Bash. Basic String Operations Bash provides basic operations for manipulating strings. To create a string variable in Bash, you simply assign a value to a variable name − mystring="Hello, world!" To display contents of string variable, you can use echo command − echo $mystring The output will be − Hello, world! ...
Read MoreHow to Reverse Order of Lines in a File in Linux
As a Linux user, it is common to come across situations where you need to reverse order of lines in a file. This could be necessary when you want to read a file in a reverse order or when you want to perform certain operations that require content of a file to be in reverse order. In this article, we will explore how to reverse order of lines in a file in Linux. Introduction to Linux Commands for Reversing Order of Lines in a File Linux provides several commands that can be used to reverse order of lines in a ...
Read MoreDelete Lines in a Text File That Contain a Specific String
Introduction Text files are widely used for storing data and information in various fields such as computer science, engineering, healthcare, finance, etc. However, sometimes it is necessary to remove certain lines that contain specific strings or patterns from a text file. This task can be accomplished easily using various programming languages such as Python, Perl, Bash, etc. In this article, we will focus on how to delete lines in a text file that contain a specific string. Prerequisites Before proceeding further, we need to make sure that we have following prerequisites − A text file containing data and information. ...
Read More