Found 1383 Articles for Open Source

Advanced File Permissions in Linux

Pradeep Jhuriya
Updated on 19-Apr-2023 11:17:02

271 Views

Introduction Linux is a powerful and adaptable operating system with numerous features that make it suitable for both personal and business use. File permissions are one of these features that is very important because they let you control who can access and change your files. We'll take a closer look at Linux's advanced file permissions in this article, focusing on some of the most important ideas and commands. Setting File Permissions in Linux Understanding Linux file permissions starts with knowing how to set them. The chmod command, which stands for "change mode, " is used to accomplish this. Change the ... Read More

Linux ps Command

Pradeep Jhuriya
Updated on 19-Apr-2023 11:12:26

7K+ Views

Introduction The ps command is a widely used utility in Linux that provides a snapshot of current processes and their status. It helps monitor running processes, identify process ID (PID), terminal type (TTY), CPU time usage, command name, user ID and other information. This article provides a comprehensive overview of the various use cases of the ps command in real life. Syntax of ps Command The basic syntax of the ps command is as follows − $ ps [OPTIONS] The ps command supports three different syntax styles: Unix, BSD, and GNU. Unix-style syntax can be wrapped and preceded by ... Read More

How to Find and Replace Text in a File on Linux

Pradeep Jhuriya
Updated on 19-Apr-2023 11:09:00

16K+ Views

Introduction In Linux-based operating systems, there are many ways to search (find) and replace text in a file. Depending on the size of a file and the complexity of the find and replace operation, different tools and commands may be more appropriate. In this article, we'll learn a few different methods of finding and replacing text in Linux environments. Using the sed command to find and replace text The sed (stream editor) command line tool is another powerful tool that can be used to find and replace text in files on Linux. This tool is often used to perform more ... Read More

Bash wait Command with Examples

Satish Kumar
Updated on 12-Apr-2023 13:03:22

7K+ Views

Introduction The Bash shell is one of most widely used shells in Unix/Linux environment. One of its most useful commands is wait command. In this article, we will explore Bash wait command and its usage with examples. What is Bash wait Command? The wait command is a built-in Bash shell command that waits for termination of a background process. This means that Bash shell will pause execution until specified process has completed. Usage of Bash wait Command The basic syntax of wait command is as follows − wait [n] Here, 'n' is process ID of background process that we ... Read More

Bash trap Command Explained

Satish Kumar
Updated on 13-Apr-2023 16:55:57

3K+ Views

Bash is a powerful shell used in Linux systems for executing commands and managing processes. trap command in Bash is a useful tool for handling signals and errors that can occur during script execution. In this article, we'll explain what Bash trap command is, how it works, and give some examples of how you can use it. What is Bash Trap Command? The Bash trap command is a mechanism that allows you to handle signals and errors that can occur during script execution. Signals are software interrupts that are sent to a process to notify it of an event, such ... Read More

Bash String Comparison

Satish Kumar
Updated on 12-Apr-2023 12:50:57

2K+ Views

When it comes to programming in Bash, string comparison is a fundamental concept that every developer needs to be familiar with. Bash string comparison involves comparing two strings and evaluating whether they are equal, not equal, greater than, or less than each other. Understanding how to compare strings in Bash is essential for writing reliable and robust scripts. In this article, we'll explore basics of Bash string comparison and provide examples to help you understand concept better. We'll start with an introduction to comparison operators and then move on to different types of string comparison techniques. Comparison Operators Bash provides ... Read More

BCC – Dynamic Tracing Tools for Linux Performance Monitoring, Networking and More

Satish Kumar
Updated on 11-Apr-2023 11:23:33

368 Views

If you are a Linux user or administrator, you might have heard of term "BCC tools" or "BPF Compiler Collection." BCC is a powerful set of dynamic tracing tools that provides a simple yet effective way to monitor system performance, networking, and much more. In this article, we will discuss what BCC tools are, their benefits, and how to use them with examples. What are BCC Tools? BCC (BPF Compiler Collection) is a set of dynamic tracing tools built on top of eBPF (extended Berkeley Packet Filter) technology in Linux kernel. eBPF is a virtual machine that runs inside kernel ... Read More

Bash-it – Bash Framework to Control Your Scripts and Aliases

Satish Kumar
Updated on 11-Apr-2023 11:15:30

445 Views

As a developer, you might find yourself using command line interface (CLI) quite often. CLI allows you to interact with your computer through a terminal window and run commands to perform tasks. One of most popular shells used in CLI is Bash shell. Bash is a powerful tool, but it can be overwhelming to manage your scripts, aliases, and functions. This is where Bash-it comes in. Bash-it is a framework for managing your Bash configuration files. It provides a collection of scripts, aliases, and functions that you can use to customize your Bash environment. With Bash-it, you can easily control ... Read More

Bash Single vs. Double Quotes What's Difference

Satish Kumar
Updated on 12-Apr-2023 09:28:01

729 Views

If you've spent any time using Bash, you've probably noticed that there are two types of quotes you can use when defining variables or passing arguments to commands: single quotes (' ') and double quotes (" "). At first glance, these quotes might seem interchangeable, but there are actually some key differences between them that can impact behavior of your Bash commands. In this article, we'll explore those differences and explain when you should use single quotes, when you should use double quotes, and what happens when you mix them up. Defining Single and Double Quotes Before we dive into ... Read More

Bash Script for Loop Explained with Examples

Satish Kumar
Updated on 12-Apr-2023 09:24:27

273 Views

If you're a Linux or Unix user, chances are you've used Bash at least once or twice. Bash is a command-line shell that lets you interact with your operating system in a more direct and powerful way than using a graphical user interface. One of most powerful features of Bash is for loop, which lets you automate repetitive tasks by iterating over a list of values. In this article, we'll explore how Bash for loop works and provide some examples of how you can use it in your own scripts. What is a For Loop? A for loop is a ... Read More

Advertisements