If you are spending too much time on a terminal, there is a good chance that you would like to download a file or a directory from the web, but without really using a browser. You can use the command line utility “wget” to download a file or a directory right from your terminal. The […]
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 […]
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 […]
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 […]
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 […]