Satish Kumar

Satish Kumar

936 Articles Published

Articles by Satish Kumar

Page 84 of 94

Find and tar Files on Linux

Satish Kumar
Satish Kumar
Updated on 25-Jan-2023 2K+ Views

One of the most powerful features of the Linux operating system is the ability to find and manipulate files quickly and easily from the command line. This can be especially useful when working with large numbers of files or when you need to automate certain tasks. In this article, we will take a look at two of the most commonly used command-line tools for finding and compressing files on Linux: the find command and the tar command. Finding Files with the find Command The find command is a powerful tool that allows you to search for files on your Linux ...

Read More

The netcat Command in Linux

Satish Kumar
Satish Kumar
Updated on 25-Jan-2023 23K+ Views

The netcat command in Linux is a powerful tool for network communication and troubleshooting. It allows users to read and write data to network connections using the TCP or UDP protocols. In this article, we will explore the various uses and capabilities of the netcat command, including examples of how to use it for network communication and troubleshooting. What is the netcat command? The netcat command, also known as nc, is a command-line utility that allows users to read and write data over a network connection. It can be used to establish connections to servers and clients, send and receive ...

Read More

Remove the First Line of a Text File in Linux

Satish Kumar
Satish Kumar
Updated on 25-Jan-2023 30K+ Views

There are several ways to remove the first line of a text file in Linux. In this article, we will go over three different methods that can be used to accomplish this task. Method 1: Using the head Command The head command is a Linux utility that is used to display the first few lines of a text file. It can also be used to remove the first line of a text file by using the -n option. The -n option is used to specify the number of lines that should be displayed. By specifying -1, we can remove the ...

Read More

Redirecting the Output of an Already Running Process on Linux

Satish Kumar
Satish Kumar
Updated on 25-Jan-2023 2K+ Views

Linux is a powerful operating system that allows users to perform a wide range of tasks, including redirecting the output of an already running process. This feature is particularly useful when you want to send the output of a process to a file, a different terminal window, or even a remote server. In this article, we will discuss how to redirect the output of an already running process on Linux, with examples and sub-headings. Using gdb to Redirect the Output Another method to redirect the output of an already running process on Linux is by using the GNU Debugger (gdb) ...

Read More

How to Clean a Linux Zombie Process

Satish Kumar
Satish Kumar
Updated on 25-Jan-2023 15K+ Views

Introduction A Linux zombie process is a process that has completed execution, but its parent process has not yet collected its exit status. These processes can cause system slowdowns and memory leaks if left unaddressed. In this article, we will discuss how to clean up a Linux zombie process and prevent them from occurring in the future. Checking for Zombies In order to check for zombies, you can use the command "ps aux | grep Z" in the terminal. This command will display all processes that are in the zombies state, showing the process ID (PID), the parent process ID ...

Read More

Why Should We Disable Root-login over SSH on Linux

Satish Kumar
Satish Kumar
Updated on 25-Jan-2023 2K+ Views

Root-login over SSH is a common method for gaining access to a Linux server, but it is not always the most secure option. In this article, we will explore the reasons why disabling root-login over SSH is a good idea, and provide examples of how to do so. What is Root-Login Over SSH? When a Linux server is set up, the root user is created by default. The root user is the most powerful user on the system, and has the ability to perform any task, including making changes to the system configuration, installing software, and creating new users. When ...

Read More

How to Create a crontab Through a Script on Linux

Satish Kumar
Satish Kumar
Updated on 25-Jan-2023 451 Views

Creating a crontab through a script on Linux is a simple and efficient way to automate repetitive tasks and schedule them to run at specific intervals. In this article, we will take a closer look at how to create a crontab through a script on Linux, including examples and tips for troubleshooting. What is a Crontab? A crontab is a Linux feature that allows users to schedule tasks to run automatically at specific intervals. This can be useful for tasks such as running backups, sending email reminders, or performing maintenance tasks. The crontab is controlled by a daemon called cron, ...

Read More

Difference Between .bashrc, .bash-profile, and .profile

Satish Kumar
Satish Kumar
Updated on 25-Jan-2023 10K+ Views

When working with the command line on a Unix or Linux operating system, there are three files that play an important role in setting up and configuring your shell environment: .bashrc, .bash_profile, and .profile. These files are used to customize your shell environment and set up different settings and configurations depending on your needs. In this article, we will take a closer look at each of these files and explore the differences between them, including examples of how they can be used to customize your shell environment. Bashrc The .bashrc file is a configuration file that is used to set ...

Read More

Checking Host’s Network Availability in Linux

Satish Kumar
Satish Kumar
Updated on 25-Jan-2023 4K+ Views

When working with Linux systems, it is important to be able to check the network availability of a specific host. This can be useful for troubleshooting connectivity issues, monitoring network performance, or simply checking the status of a specific server or device. In this article, we will discuss several methods for checking the network availability of a host in Linux. Ping Command The most basic method for checking network availability is to use the ping command. This command sends an Internet Control Message Protocol (ICMP) echo request packet to the specified host and waits for a response. If the host ...

Read More

Using sed With a Literal String Instead of an Input File

Satish Kumar
Satish Kumar
Updated on 25-Jan-2023 1K+ Views

Introduction Sed, short for Stream Editor, is a powerful command-line tool that is used to manipulate and transform text. It is commonly used to perform operations on input files, such as replacing text, deleting lines, and inserting new text. However, sed can also be used with a literal string instead of an input file, which can be useful in certain situations. In this article, we will discuss the different ways to use sed with a literal string and explore some examples of how to use this feature. Using the -e Option The most straightforward way to use sed with a ...

Read More
Showing 831–840 of 936 articles
« Prev 1 82 83 84 85 86 94 Next »
Advertisements