Found 1436 Articles for Linux

Introduction to Bash Globbing on Linux

Satish Kumar
Updated on 24-Jan-2023 19:21:57

888 Views

Bash globbing is the process of using wildcard characters to match multiple filenames or paths. Bash provides several special characters that can be used for globbing, such as *, ?, and []. The * character is a wildcard that can match zero or more characters in a filename or path. For example, the command ls * would list all files in the current directory, while the command ls *.txt would list all files with the ".txt" extension in the current directory. The ? character is similar to the * character, but it only matches a single character. For example, the ... Read More

Find and Convert Files Ending With CRLF on Linux

Satish Kumar
Updated on 24-Jan-2023 19:20:20

10K+ Views

You can use the find command in Linux to search for files ending with CRLF, and the dos2unix command to convert those files to use LF line endings. To search for files ending with CRLF, you can use the following command − find /path/to/search -type f -exec grep -Iq . {} \; -and -exec grep -Il $'\r' {} + This command searches for all regular files in the directory "/path/to/search" and its subdirectories, and prints the names of the files that contain CRLF line endings. Once you have identified the files that need to be converted, you can use ... Read More

How to List All Connected SSH Sessions on Linux

Pradeep Jhuriya
Updated on 20-Jan-2023 15:37:34

26K+ Views

Introduction Secure Shell (SSH) is a commonly used protocol for secure remote access to Linux servers. When multiple users are connected to a Linux server via SSH, it can be useful to list all connected SSH sessions for administrative or monitoring purposes. In this article, we will discuss how to list all connected SSH sessions on Linux using various command line tools. List of SSH sessions connected with the who command The who command is a simple and widely available command-line tool for listing logged in users on a Linux system. To list all connected SSH sessions, you can use ... Read More

What is a .pid File in Linux?

Pradeep Jhuriya
Updated on 20-Jan-2023 15:35:04

5K+ Views

Introduction On Linux, a “.pid” file is a process identification (PID) file. It is used to store the process ID (PID) of a running process. The PID is a unique number assigned to each process when it is created and is used to identify the process in the operating system. The .pid file is usually located in the /var/run or /var/run/ directory and is named after the process it represents. In this article, we will discuss what .pid files are, how they are used, and how to work with them. What is a PID file? A PID file is a ... Read More

How to Use the mysql Client and Related Utilities in Linux

Pradeep Jhuriya
Updated on 20-Jan-2023 15:32:28

470 Views

Introduction MySQL is an open source relational database management system (RDBMS) that has been popular for over twenty years. It is widely used on Linux systems for both web server solutions and standalone applications. This article will provide an overview of the most commonly used MySQL utilities, including mysql and mysqladmin, along with some examples on how to use them. It's worth noting that the explanations in this article also apply to MariaDB, a popular fork of MySQL created by the original developers, due to concerns that MySQL may not remain open source and intend to maintain high compatibility with ... Read More

Linux last Command

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

5K+ 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

422 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

310 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

239 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

372 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

Advertisements