Satish Kumar has Published 1041 Articles

Find all links for a specific file on Linux

Satish Kumar

Satish Kumar

Updated on 23-Dec-2022 12:43:49

379 Views

Overview In this tutorial, we will learn how to find all links for a specific file on Linux. We will use the command lsof to list all files that are opened by any process and then grep to filter out only those files that have a link to our target ... Read More

Count occurrences of a char in a text file

Satish Kumar

Satish Kumar

Updated on 23-Dec-2022 12:35:03

504 Views

Overview We'll learn how to use Linux commands to get the number of occurrences of a specific character in an input file. We're assuming that you know some common Linux commands, including grep, awk, and tr. We'll also suppose that our input file tpoint.txt contains some dummy data − $ ... Read More

Find the Java SDK location on Linux

Satish Kumar

Satish Kumar

Updated on 23-Dec-2022 11:45:20

19K+ Views

Overview Finding software’s installation directory is a very common operation. One common reason is for updating the PATH environment variable. For example, Java developers are often interested in finding the installation directory of Java. This article shows how to find the location of the JDK on Linux. The method described ... Read More

Check if Hard Drive is SSD or HDD on Linux

Satish Kumar

Satish Kumar

Updated on 23-Dec-2022 11:43:30

1K+ Views

Overview To determine whether our file system uses SSD or HDD technology, we need to know which type of storage device is used by our operating system. There are many different aspects of Linux storage. There seem to be just as many tools available for reading and configuring our storage. ... Read More

Understanding Stale file handles in Linux

Satish Kumar

Satish Kumar

Updated on 23-Dec-2022 11:37:48

2K+ Views

Overview In this article, we will discuss about the concept of stale file handles and how to avoid it in your application. We will also see some examples on how to use fcntl() function to check if a file handle is valid or not. The code in this tutorial has ... Read More

Delete expoted environment Variable in Linux shell

Satish Kumar

Satish Kumar

Updated on 23-Dec-2022 11:36:17

15K+ Views

Overview This article explains how to delete an environment variable from the system. An environment variable is a special kind of variable that can be used by all processes running on your machine. The name of this variable is EXPORTED_VARIABLE. You can use it to pass information between different programs ... Read More

Difference Between .a and .so files

Satish Kumar

Satish Kumar

Updated on 23-Dec-2022 11:32:45

2K+ Views

Overview A programmer may want to write three different programs. However, he realizes that some of the functionality needed for each program could be shared among them. Therefore, he decides to create a library containing these shared features. A library is basically a collection of code and data that other ... Read More

Implement shell file protection in Linux

Satish Kumar

Satish Kumar

Updated on 23-Dec-2022 11:29:32

159 Views

Overview This article will show you how to protect your files from unauthorized access using the Linux file system permissions, and how to use chmod command to set permissions for a specific user or group of users. Besides the Linux file permission mechanisms that help us keep our files safe ... Read More

Avoiding unwanted directory while using zip

Satish Kumar

Satish Kumar

Updated on 23-Dec-2022 11:24:15

92 Views

Overview There are many different ways to compress and collect file on Linux systems. We have several options for doing so: using the command line tools, GUI applications. However, if we share files with Windows or Mac users, the ZIP file remains the most convenient option. We want to maintain ... Read More

Delete empty files and directories in Linux

Satish Kumar

Satish Kumar

Updated on 23-Dec-2022 11:18:30

8K+ Views

Overview We'll learn how to remove empty directories and empty file on Linux. Empty directories don't take up any disk space, but they're good to keep them tidy. We should clear out old files and folders periodically. All the instructions in this tutorial are for Linux systems. They won't work ... Read More

Advertisements