Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Articles by Prateek Jangid
165 articles
Reverse a Number in PL/SQL
PL/SQL is a block-structured language that combines SQL's functionality with procedural commands. In this article, we will discuss a program in PL/SQL to reverse a given number for example −Input : 98765 Output : 56789 Explanation : reverse number of 98765 is 56789. Input : 56784 Output : 48765 Explanation Reverse number of ‘56784’ is ‘48765’.Approach to find The SolutionTake out the last digit from the number by finding the remainder of num/10.Now add the last digit to another variable reversed_num.Now check if num becomes 0 −If YES, then go to STEP1.If NO, then go to STEP4.Finally, print the ...
Read Moredutree – A CLI Tool to Analyze Disk Usage in Coloured Output
The dutree is an open-source and free command line tool in Linux that lets you analyze disk usage and display the output in a colored format. This command combines two well-known Linux commands, the durep (generates disk usage report) and the tree (lists the contents of a directory in tree format) commands, and their attributes, written in the Rust language. Whenever you use this command to determine disk usage, it displays the result in a tree-like format. The dutree command is mainly used to see which directories and files take up the most space on the hard disk and lists ...
Read MorePreserve Linebreaks When Storing Command Output to a Variable
In Linux, command substitution allows a user to use the output of a command as an argument for other commands. Here you can substitute all commands that can write standard output. Moreover, you can use the command substitution to create a shell script and save the command's output as a variable. Some of the output consists of multiple lines, so the output may not appear in the same pattern when you perform command substitution. When you don't use the proper shell variable, the output shows in a single line, i.e., without preserving the linebreaks. In this tutorial, we will look ...
Read MoreEasyTAG: A Tool for Viewing and Editing Tags in Audio and Video Files
EasyTAG comes in handy when editing associated text tags of an image, audio, or video. It is an open-source, cross-platform, feature-rich, and free tool released under the GNU General Public License. EasyTAG tool acts as a backbone for animation, video, audio, application, etc., in which the details of the files, like tags, data, and image information, can be edited. EasyTAG also supports ID3 tags using the tag manipulation library of the MAD project. Originally, EasyTAG was designed to organize the music collection and is available for different platforms, including Windows and macOS. EasyTAG currently has various features, including: ...
Read MoreList the Size of Each File and Directory and Sort by Size in Linux
Listing the size of each file and directory is good because it helps a user sort them according to the size. Sorting files according to size is necessary to free up space, make them more organized, etc. You can organize the Linux file system through the command line and graphical methods. It helps you to quickly locate the files and directories as per their contents available. So in this long guide, we will explain various ways to easily List each directory and sort them according to the size in Linux. List the Size of Each File and Directory and Sort ...
Read MoreFind the Total Size of All Files in a Directory on Linux
You can use various types of commands to get the total size of all files in a directory on Linux. There are also some GUI tools in Linux to display the total size of the directory in a more simple format. Getting the correct information about the directories can help a user to find the storage allocation of the complete system. That's why Linux users always look for ways to find the total size of the directory. In this guide, we will explain various methods to find the total size of all files in the directory on Linux. Finding the ...
Read MoreHow To List All Group in Linux ?
Groups in Linux are the collection of all the users of a system. These groups offer a convenient and simple way for the system users to share the directories with no issues. A Linux system can have many users who are divided into several groups. Admin must rank each member of these groups to assign the resource-driven permissions privileges. Users can mainly belong to two types of groups − Primary / Login Group Secondary / Supplementary Group User-created files are assigned to this group. The primary group usually has the same name as a user's name. ...
Read MorePrint Lines Between Two Patterns in Linux
Printing lines between two patterns is functional when you need to print only a few lines from these files or keep your lines under a specific pattern. Although you can print the lines through the grep command, it is impossible to print the particular line. In this case, you can use commands like sed or awk to print lines between two patterns. So In this article, we will elaborate on various examples to print lines between two patterns in Linux. We will also include multiple conditions for using the sed and awk command to print lines between patterns. Printing Lines ...
Read MoreProcessing Linux Commands in Parallel
Processing the commands in parallel can ease your work while executing multiple commands in Linux. As a Linux administrator, you can process multiple commands in parallel to perform various tasks, such as restarting services, installing system patches, and installing applications. Combining two or more commands in the command line is called command chaining. You can use command chaining to execute multiple commands in parallel. You can easily chain different commands at once to simplify the process. So in this long- guide, we will explain every process you can try to process Linux commands in parallel. Processing Linux Commands in Parallel ...
Read MoreSet Up cURL to Permanently Use a Proxy on Linux
cURL is used to request data from a server and send it to a device. Through this command, the user specifies the server URL and the data it needs to send the URL (the location to which the request is sent). Curl works on Windows, MacOS, and Linux and supports over 25+ protocols, including SFTP, FTP, HTTPS, and HTTP. Regarding API calls and debugging network requests, curl is one of the best open-source and free tools. The word 'Proxy' stands for 'act on behalf of another.' Similarly, the proxy server also acts on behalf of the end user. Proxy servers ...
Read More