Tag Archive: linux

Jul 17

How to install Windows on a system having a Linux installation

Below are the steps enumerated on how to install Windows on a system with Linux installation (the steps apply to Ubuntu for sure and may/may not work for other flavors of Linux) – Create a live Linux installation on a USB from http://www.linuxliveusb.com/ Boot from the USB Linux-live installation and create a new partition for …

Continue reading »

Jul 03

Grep for Multiple Words

You can grep for two (or more) words at once. For example, create a file containing: One Two Three Four Five Then use the following grep command (the -E option enables extended regular expressions, which lets you use the | as an “or” operator): grep -E ‘One|Two|Three’ file.txt Output is: One Two Three

May 23

Changing CPU frequencies on Linux

CPU frequencies in Linux (Ubuntu specifically) can be temporarily modified by writing to the “scaling_governor”  in – /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor One needs to be root to be able to write to this file. The available governors can be found by – cat s/ys/devices/system/cpu/cpu1/cpufreq/scaling_available_governors The available governors are – conservative ondemand userspace powersave performance. By default, the governor …

Continue reading »

Dec 07

How to build a linux kernel (Ubuntu)

Create a .config file for your new kernel using the config file of your existing kernel. # cp /boot/<config-kernel_version_#> <kernel_dir>/.config If the .config file is modified using an editor like vim, etc, do # make oldconfig The kernel configuration can also be modified by # make menuconfig Make changes and then save and exit. To …

Continue reading »