How to Find the List of Directories in a Directory in Linux/Mac OS X?

Anyone who has used command line on a terminal must have used the linux command “ls” to list the files and directories in a directory. Simple use of “ls” command will list directory and files in a given directory. Often you might want to know only about the directories in a directory. One can use… Continue reading How to Find the List of Directories in a Directory in Linux/Mac OS X?

3 Ways to Read A Text File Line by Line in Python

Opening a file and reading the content of a file is one of the common things you would do while doing data analysis. In this tutorial, we will see 3 examples of reading a text file in Python 3. One easy way to read a text file and parse each line is to use the… Continue reading 3 Ways to Read A Text File Line by Line in Python

How to Count the Number of lines, Words, and, Characters in a Text File from Terminal?

How can we get the number of lines or number of words in a file? The most easiest way to count the number of lines, words, and characters in text file is to use the Linux command “wc” in terminal. The command “wc” basically means “word count” and with different optional parameters one can use… Continue reading How to Count the Number of lines, Words, and, Characters in a Text File from Terminal?

How to Make Vim More Colorful? Hint: Use Color Scheme

Are you not satisfied with the colors you have on Vim? Vim has loads of options to make your Vim editing colorful and cheerful experience.  The basic command in Vim to switch on colors or switch off colors is “syntax”.  Just to try and see how the syntax command changes the colors on your Vim… Continue reading How to Make Vim More Colorful? Hint: Use Color Scheme

How to Find Largest Files in a Directory with ls command

One of the advantages in having bigger hard drives is that we hardly worry about the available space. However, there comes a time, you want to clean up unwanted files and want to free up space really quick. One way to do that is to find the largest files and remove them if they are… Continue reading How to Find Largest Files in a Directory with ls command