If you want to find the relationship between files on your system and RPM packages (which one owns/belongs-to which) then this page will be of help to you. 1. Contents of an RPM package 1.1.1. This RPM command will show you the contents of a package which is already installed on your system: rpm -ql […]
Month: March 2011
INIT: cannot execute “/etc/init.d/rcS” (or rc)
PROBLEM: The Linux init process gets an error that looks like this (in the stderr output): INIT: cannot execute “/etc/init.d/rc” Several things may cause this error but in my case it was happening because the rc script had #! /bin/sh on the first line, and /bin/sh was missing. SOLUTION: In /bin provide a link called […]
How to use emacs to replace Mac carriage returns (the ^M line endings, and that includes even the “stubborn” ones!)…
The below information was shamelessly copied, word for word, from http://mike.kruckenberg.com 🙂 Changing end-of-line Mode in Emacs (replaces ^M line return) Every now and then I run into this. I export CSV data from Excel and find that when trying to use it in other places the line-returns aren’t quite right and unix tools like […]
Help! Unable to automount my usb flash disk!
PROBLEM: On certain Linux distributions removable media (USB flash drives, CD’s,…) are auto-mounted by default and all users can read and write to them (if media is writeable of course). On others, inserting a removeable media results in an error message similar to Failed to mount “200GB Volume”, e.g. an error message from your file-manager […]
How to get VirtualBox (Oracle VBox VM) running
After installing the VirtualBox software from Oracle start it up. Depending on your distribution and window manager it will be in the “System’ start menu or it may be somewhere else. Create a new Virtual Machine (e.g. another Linux box with Fedora – select these from the ‘OS Type’ drop-down boxes). You may select an […]
Help I can’t write to my windows disk/partition from linux!
There may be several possible causes why one would not be able to access their Windows hard disk or windows partition. If we assume that obvious human errors are out of the question (e.g. permissions errors due user not having write permissions to the directory of the mount or user not specifying the ‘-o w’ […]
How can I make gcc do this…

This post will be dedicated to gcc’s command line options and various other questions related to compiling/building your code with gcc. For example… ——————– How can I get gcc to generate assembly code for my C file: gcc -O2 -S -c foo.c ——————– How can I tell gcc to generate an assembly listing? (that is […]
How to move a branch in git?

“Moving a branch” may mean two things: 1. Move the contents (the commits, the changes) associated with a branch name somewhere else in the repository. 2. Move the branch name (not the code changes!) to point to some other commit. Let’s examine the two possibilities in detail: 1. Move branch contents and name: This case […]
How to make ‘man’ or ‘less’ paged text not disappear from screen after exit?
Problem: Depending on your Linux distribution, the text displayed by the ‘man’ command (or any other text piped into ‘less’ for that matter) may stay on your screen upon exit from man/less or be cleared from your screen upon exit. Many people find it useful to have the man page text stay on the screen, […]