Author: Rahul

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

One of the directories has millions of files, which is no more required. When trying to delete all files from that folder using the rm command, I got this error message /bin/rm : Argument list too long If there are a large number of files in a single directory, Then the traditional rm command can not delete all files and ends with an error message Argument list too long. To resolve this issue and delete all files use xargs command-line utility with the find command. First change to the directory where all files exists: cd dir_contains_file Then execute command to…

Read More

Desktop environments are a collection of software packages and different components that run on top of an operating system and manage the look and feel (GUI; Graphical User Interface) of the operating system. They consist of window managers, text editors, folders, drag and drop functionality, and many other features to make it easier for the user to use an operating system. Desktop environments are super user-friendly and intuitive; they help the user access, manage and manipulate files easily. But they do not provide full control over the functionality/capabilities of the OS. To get the most out of an operating system…

Read More

SELinux (Security-Enhanced Linux) is a Linux kernel security module that provides enhanced security for Linux systems. SELinux provides a mechanism for supporting access control security policies. This specifies how the processes communicate with each other and interact with the files. It’s not a good practice to disable SELinux on a system, especially on production servers. For developer systems, you can disable it only if facing issues due to its policies. In this how-to-guide, you will learn to disable SELinux on a CentOS 8 or RHEL 8 Linux system. SELinux Modes SELinux has three modes to run as described below. The…

Read More

SFTP (SSH/Secure File Transfer Protocol) is a network transmission standard used to transfer, access, and manage files over a remote network. It contains SSH (Secure Shell), making it a lot more secure than the FTP protocol. Files are transferred through a single control channel in SFTP. It requires authentication and runs on port 22. In SFTP, the SSH shell provides encryption that helps protect usernames, passwords, and other personal data transferred through SFTP. In this how-to guide, we will learn to create SFTP users for web server document root. Step 1 – Installing SSH (Secure Shell) SFTP is a very…

Read More

Most Desktop computers and laptops come with a pre-installed Graphic Card. You can also upgrade or install a custom graphic card according to your requirements. The wildly popular graphic card manufacturers are Nvidia and AMD. We need drivers to configure and manage our graphic cards. The Ubuntu operating system has a default open-source driver named Nouveau for Nvidia Graphic Cards. This default driver is very unstable and does not offer reliability. It isn’t compatible with the latest hardware. The default drivers are mostly being used by old cards. These old cards are not by Nvidia anymore. Hardcore open-source believers and…

Read More

Shell, the command interpreter of an OS, processes the commands entered into the command line and widely used in Linux. A variable is like a pointer to a particular data and holds a particular value that could be anything. A user can create, delete or assign variables with the help of Shell. When a Shell is running there are three types of variables present: Local Variables Shell variables Environment variables In this tutorial, we will see how you can set Environment and Shell variables in Linux. What are Shell Variables? The Shell variables are specific to the current shell and…

Read More

All the Linux systems keeps the users information in /etc/passwd and /etc/shadow files. User password and account aging details are stored in the shadow file. The aging information contains the details of the password change and account status. In this tutorial, you will learn about forcing a user to change their password in Linux. Also will discuss the content stored in the shadow file. Force User to Change Password We use passwd command to create or change user passwords in Linux systems. It also allows us to expire any user’s password. Once the password is expired, the system will allow…

Read More

JavaScript Object Notation aka JSON is a very lightweight standard data representation format. It is used for storing and transporting data. It was derived from Javascript but is now language-independent. It was created with the intention of making a text-based interchange format that is easily readable by humans. JSON is compatible with most programming languages and can easily be integrated as they have built-in functionalities to read, write and parse JSON. JSON is commonly used across the computing world for APIs and for Config files of different programs such as games. It is also used to transfer data from a…

Read More

The “chattr”, short for change attribute, is a command-line utility in Linux used to change attributes of a file e.g a, i. This command is primarily used to make various files immutable and undeletable for regular users. File management is a complicated process in Linux as it is a multi-user operating system. The administrators can change the attributes of a file using the “chattr” command so it cannot be accessed and changed by anyone except the superuser. This saves the important files from accidental deletion. In this write-up, we will focus on how to modify the attributes of a file…

Read More

Write a JavaScript program to calculate the sum of two integers and display the results. In this tutorial, we will show you the two examples of adding numbers. JavaScript Program to Add Two Numbers In this JavaScript program, we will calculate the sum of to number and print the results on the console. Here we will use the common + sign to add numbers.

Output The sum is: 5 Here we have defined two variables with static integer values. Then calculate the sum of both values and store them in a third variable. Finally, the result is displayed on…

Read More