Pradeep Elance has Published 298 Articles

How to disable delete permission of File and Directory in Linux?

Pradeep Elance

Pradeep Elance

Updated on 03-Jan-2020 06:37:46

2K+ Views

Many times there can be un-intentional delete of files or directories. That can lead to loss of important data or some misconfiguration of the system so we need a way to stop the accidental deletion of files and directories it may not be applicable to all the files and directories ... Read More

How to Determine the File System Type in Linux (Ext2, Ext3 or Ext4)?

Pradeep Elance

Pradeep Elance

Updated on 03-Jan-2020 06:36:36

27K+ Views

The file systems in Linux can be of different types. They support different file sizes and some mechanism like journaling etc. Also different types of file systems are supported by different Linux Kernel systems. So for the devices which are available as memory in the Linux System, we can determine ... Read More

How to Create Multiple User Accounts in Linux?

Pradeep Elance

Pradeep Elance

Updated on 03-Jan-2020 06:32:22

4K+ Views

Adding a single new user to a Linux system can be achieved through the useradd command. But system admins often get request to add many users. So Linux provides a different to do a bulk addition of many users to a system.This is the newusers command.Synatxsudo newusers user_deatils.txt user_details.txt is ... Read More

How to Count Word Occurrences in a Text File using Shell Script?

Pradeep Elance

Pradeep Elance

Updated on 03-Jan-2020 06:29:40

11K+ Views

Linux shell scripting has many powerful tools to process the data in files. One such feature is to find patterns and count the number of occurrences of matched patterns. One such example is to count the number of occurrences of a specific word in a given file. This is achieved ... Read More

How to Count Number of Files and Subdirectories inside a Given Linux Directory?

Pradeep Elance

Pradeep Elance

Updated on 03-Jan-2020 06:27:19

3K+ Views

It often becomes essential to know not just the count of files in my current directory but also the count of files from all the subdirectories inside the current directory. This can be found out using theUsing lswe can use ls to list the files, then choose only the ones ... Read More

Create Shortcuts to Long and Complicated Paths in Linux (Gogo)

Pradeep Elance

Pradeep Elance

Updated on 03-Jan-2020 06:20:28

165 Views

Gogo is a tool to bookmark directories with long and complicated paths in the Unix shell. Because the long parts are difficult to remember and cumbersome to type in. In this article we'll see how to install go go and use it.Installing gitWe first need to have git installed in ... Read More

Python - Column summation of tuples

Pradeep Elance

Pradeep Elance

Updated on 02-Jan-2020 10:26:34

321 Views

Python has extensive availability of various libraries and functions which make it so popular for data analysis. We may get a need to sum the values in a single column for a group of tuples for our analysis. So in this program we are adding all the values present at ... Read More

max() and min() in Python

Pradeep Elance

Pradeep Elance

Updated on 02-Jan-2020 10:16:18

2K+ Views

Finding maximum and minimum values from a given list of values is a very common need in data processing programs. Python has these two functions which handle both numbers and strings. We will see both the scenarios in the below examples.Numeric ValuesWe take a list of numeric values which has ... Read More

Getter and Setter in Python

Pradeep Elance

Pradeep Elance

Updated on 02-Jan-2020 10:13:52

21K+ Views

For the purpose of data encapsulation, most object oriented languages use getters and setters method. This is because we want to hide the attributes of a object class from other classes so that no accidental modification of the data happens by methods in other classes.As the name suggests, getters are ... Read More

Fractal Trees in Python

Pradeep Elance

Pradeep Elance

Updated on 02-Jan-2020 10:07:38

1K+ Views

Fractal patterns are all around us in nature. Like a small branch taken out of the leaf of a fern leaf resembles the leaf itself. Or a pebble often resembles the shape of a mountain! So this idea of a repetition of small pattern to generate a large pattern is ... Read More

Advertisements