Have a new executable file/program? Want to execute it just by typing the name of the program instead of full path where the program is located? The best solution is to add the path to new executable to your list of all search paths. The idea is that every time one types a command the […]
The Great Dropbox Space Race: A way to get free Dropbox space for students
Dropbox announced the Great Dropbox Space Race for students that offers students free space of up to 25GB for two years. The way the Dropbox space Race works is as a student refers a classmates and professors to Dropbox, not only the students/professors earn free space, everyone from the school who were signed up of […]
3 Ways to Write Text to a File in Python
If you are interested in writing text to a file in Python, there is probably many ways to do it. Here is three ways to write text to a output file in Python. The first step in writing to a file is create the file object by using the built-in Python command “open”. To create and […]
How To Check If a File or Directory Exists Using Shell Script?
One of the common tasks in shell scripting in Linux/Mac OS, checking if a file or directory exists already and to create the file/directory if it does not exists. Here is how to check if a file or directory exists in Linux shell script. The basic syntax to check if a file exists is and […]
7 Tips to Play With File Names, Directory Names, and Paths in Python
Python’s OS.path module have a lots of commands/methods that are greatly useful for all things files/directories/paths. Here are seven tips for playing with files, directories, and paths using Python os.path. These commands will help you check if a given path is a directory or not? find given path is a file? check if a file […]