How to view and open a chm file on Linux easily.

Opening and reading chm files on Linux is very easy, they are compressed archives and can be opened with 7zip. This is how to extract a chm file on Linux with 7zip. Then open the index.html file in Firefox to view the contents easily. jason@jason-desktop:~/Documents/kabylakeplatform_3_7_9/KabylakePlatSamplePkg/Docs$ 7z x PlatApi.chm 7-Zip [64]…

Read More

How to get Mac OS to read the .bashrc file on every login.

By default, Macintosh OSX does not read the .bashrc file when you login to the operating system. But it does read the .bash_profile script if it does exist. Therefore, create the .bash_profile in your home directory and put this in it. if [ -s ~/.bashrc ]; then source ~/.bashrc; fiif…

Read More

Some very useful VIM tricks for the Linux/UNIX user.

VIM is a very useful and versatile editor for Linux. This is how to use it to its full potential. Some great VIM tricks to help for a Linux user or programmer. To read the output of a command into a text file, use the :r command in the command…

Read More

How to read a file and display the contents with Python.

How to read a file and display the contents with Python. This sample code reads and outputs the contents of a file using Python. This is a very simple code sample for reading in a file and displaying it. #!/usr/bin/env python   forme = "f.txt";   # Read a file…

Read More