Found 2065 Articles for Operating System

Linux last Command

Pradeep Jhuriya
Updated on 20-Jan-2023 15:18:21

6K+ Views

Introduction On Linux, the "last" command is used to display a list of users who have previously logged in to the system. This command is especially useful for system administrators who need to track user activity on a server. The last command can display a variety of information, including the date and time of access, the duration of the session and the terminal or device used to access the system. Options and Syntax The basic syntax of the last command is as follows − $ last [options] [username] Options available with the last command include − -a − Display ... Read More

Managing Processes in Linux

Pradeep Jhuriya
Updated on 20-Jan-2023 15:15:48

430 Views

Introduction In this article, we will discuss how to manage processes in Linux. A process is an instance of a program that is executed by the operating system. Understanding how to manage processes in Linux is essential for system administrators and developers working with Linux systems. One of the most important aspects of process management in Linux is the ability to see running processes and their status. This information can be used to identify any problems that may be occurring on your system, as well as to monitor system performance and resource usage. Furthermore, being able to manage and ... Read More

Linking to Files in Linux

Pradeep Jhuriya
Updated on 20-Jan-2023 15:14:02

321 Views

Introduction File linking in Linux is a powerful feature that allows users to create multiple references to the same file. This can be useful in a variety of situations, such as when you want to link to a file or when you want to share a file across multiple directories. In this article we will discuss the different types of shortcuts that can be created in Linux and the commands used to create them. We'll also explore the differences between hard links and soft links, and when to use each type. Hard Links A hard link is a direct link ... Read More

Evolution of Docker from Linux Containers

Pradeep Jhuriya
Updated on 20-Jan-2023 15:12:00

248 Views

Introduction Docker is a powerful tool that allows developers to easily build, deploy and run containerized applications. Containers are a lightweight and portable form of virtualization that packages an application and its dependencies, making it easy to move between different environments. The evolution of Docker began with Linux Containers (LXC) and has since revolutionized the way we think about software development and distribution. In this article, we'll explore the evolution of Docker from Linux containers, the benefits of using containers, and how Docker enhances the LXC concept. What are Containers? Containers are a logical packaging mechanism that extracts applications from ... Read More

Check if a String Contains a Substring in Linux

Pradeep Jhuriya
Updated on 20-Jan-2023 15:10:16

382 Views

Introduction Working with strings in Linux can be a bit tricky, but with the right tools it can be a piece of cake. A common task many Linux users have to perform is to check if a string contains a specific substring. This can be done using a variety of methods, including regular expressions, string manipulation commands, and programming languages ​​like Python or Perl. However, in this article, we will explore one of the most popular and efficient methods to check if a string contains a substring in Linux, that is by using the special shell variable IFS (Internal Field ... Read More

The Meaning of IFS in Bash Scripting on Linux

Pradeep Jhuriya
Updated on 20-Jan-2023 15:07:52

10K+ Views

Introduction In Bash scripts on Linux, the "IFS" (Internal Field Separator) variable plays an important role in controlling how fields in a string are separated. IFS defaults to a space, tab, and newline character, which means that, by default, fields in a string are separated by any combination of these characters. However, the IFS value can be changed to meet the specific needs of a script. In this article, we will explore the meaning of IFS in Bash scripting and how it can be used in various scenarios. Linux IFS is a special variable in Bash which is used to ... Read More

Using the find -exec Command Option on Linux

Pradeep Jhuriya
Updated on 20-Jan-2023 15:02:13

6K+ Views

Introduction The find command in Linux is a versatile and powerful tool for finding files and directories on a file system. The “-exec” option is a useful addition to the find command that allows you to execute a command on any file or directory it finds. This can be useful for tasks like finding specific files and then performing an action on them, like deleting, moving, or editing. In this article, we will discuss the syntax and usage of the find -exec command option and provide examples of how it can be used. Syntax and Usage The basic syntax of ... Read More

Using Vim Registers on Linux

Pradeep Jhuriya
Updated on 20-Jan-2023 14:58:48

269 Views

Introduction Vim is a powerful text editor widely used on Linux systems. One of the features that makes Vim so powerful is its support for registers. registers are essentially notes that allow you to quickly and easily store and retrieve text. In this article, we will discuss the basics of using registers in Vim in detail, including how to copy and paste text using registers, how to display register contents, and how to manipulate register contents. We'll also look at some advanced uses of registers and examples to help you understand how to use them effectively. Understanding Registers Before we ... Read More

Ensure Only One Instance of a Bash Script Is Running on Linux

Pradeep Jhuriya
Updated on 20-Jan-2023 14:55:35

2K+ Views

Introduction When running a bash script on Linux, it's important to ensure that only one instance of the script is running at a time. This is especially important for scripts that perform critical tasks, such as scripts that update databases or scripts that send email. Running multiple instances of the same script simultaneously can cause conflicts, data loss, and other errors. In this article, we will discuss different methods to ensure that only one instance of a bash script runs on Linux. Using Flock One way to ensure that only one instance of a bash script runs on Linux is ... Read More

Pass the Output of a Command as an Argument for Another on Linux

Pradeep Jhuriya
Updated on 20-Jan-2023 14:51:39

1K+ Views

Introduction When working with the Linux command line, we often use multiple commands that take important data as arguments. In this tutorial, we'll explore various scenarios on how to use the output of one command as an argument to another. We will create an environment to test our strategies and use examples to illustrate each scenario. Preparing Sample Files To get started, we need to create a directory called "dir_example" and another called "target". These directories will be used to store the files that will be used as examples in this tutorial. $ mkdir dir_example target Next, we will ... Read More

Advertisements