Airtel and MTN SMS center number for cyanogen modded android phones


As you already know, I modded my Samsung Galaxy S2 with CyanogenMod 

At the beginning of this month I noticed something very disturbing.
I got a happy new month message from a dear friend and I tried replying and no way. I tried and tried repeatedly, I kept getting message not sent. I googled the MTN SMSC code and as expected it was still +2348030000000, I tapped that into my modded android phone and got an error. I googled all the combination of mtn + android + sms + message + error + can't send and no suggestion found worked. I switched on and off the phone severally, no result.

So for more than 8 days I couldn't send an SMS.
Then suddenly on Wednesday, like a flash bulb, an idea lit up in my head. I removed my Airtel SIM from my Blackberry and put the SIM in the android phone, then I went to the settings to see the SMSC number. To my surprise it was 089132420000000f8 instead of +2348020000000 that is in the documentation. I tried sending an SMS and it was successful. 
So I did what anyone would do.

Mastering Linux vi editor


vi editor is a very powerful text editor that comes pre-installed on all Linux OS.
vim is variant of vi editor, basically an improved version. Practically, it is more error tolerant than vi.
There are two modes –
Command mode, which is the default mode. You basically scroll through the file content or enter commands.
h moves the cursor to the left,
l moves it to the right,
k to move up, and
j to move down
dd  will delete current line
:w to save (write) the changes made
:q will exit the editor

:q! will exit the editor without saving changes
Text input mode. You enter this mode by pressing the Insert key. There are some basic guidelines to note -
don’t attempt to scroll or change the cursor position in this mode, position the cursor where you want to add extra text before changing to the text input mode. The only exception is when you are using vim.
To change to this mode pressing -
a will append, move the cursor one position to the right before switching to the inserting mode
i will insert
o will insert a blank line under the current cursor position and move the cursor to that line
Vim is better, just not as pre-installed on Linux OSs as Vi.
Run vimtutor to start a recommended 30 minutes tutorial on using vim.

Manipulating Linux command line output


The following are ways to manipulate the screen/standard output of any Linux command,
Piping the output to another command using |
Redirecting output via >
Redirecting output via >> (to append)
Redirecting only errors via 2>
Redirecting standard input via <
Use tee option with | (pipe) to copy input to standard output (terminal) and more than one output files. e.g. cat original | tee copy1 copy2

Use tee –a to append to files. e.g. cat file.txt | tee -a file_all.txt
Grep: It scans output line per line, searching for matching patterns.
All lines containing the pattern will be printed to standard output. e.g. cat countriesandcapitals.txt | grep Nigeria
This can be reversed using the –v option.
 Sort: It allows you to sort the output lines before displaying.
Default is in alphabetical order. e.g. cat alphabets | sort
It can also sort by file size, when sorting ls output. e.g. ls ~/ -la | sort -nk 5
And when used with uniq, it can sort and filter out double entries. e.g. sort itemlist | uniq

Follow me on Twitter | About me | Terms of Service | Privacy Policy