Posts Tagged ‘howto’

terminal shortcuts usage:TAB

It is just one to just know it but another to know its perfect usage. I will try to cover its usages on my daily administration in this log. Any suggestion on the perfect or possible usage is welcome in the comments.

The most used would be the TAB auto-completion technique:

NOTE:: BACKSPACE to exit from the system manual pager.

Command completion:: If you want to find the list of any device information then you would look for ls(list) command. just type ls and press TAB twice.

You will get the short list of possible completion, try $lsusb for list of detected USB devices.

File-name/Directory completion:: You never have to write your complete file-name again. It will manage even if you are in a different directory. try looking for your wvdial.conf(/etc/wvdial.conf) file, easiest way- type $vim -v /e+TAB(2)+wv+TAB(2) ,you got through.

LOOKOUT:: TAB completion is smart enough to distinguish among a file to a directory. Use vim -v(or any editor) for file-names and  cd(or any directory related command)  for directories.

Environment Variable completion:: try $+TAB(2) for full list of variables. For anything particular or use it for digging deep into linux try some sequences like $PA+TAB(2) for $PATH


Linux is easy on your task right?? It takes a sh** load of your job off… 😛


wvdial configuration

This configuration is valid for 1.56 and 1.60 version. Most common mistakes in configuring the dialer configurations are worked out.

NOTE:: The semicolon should be removed and append stupid mode =1 at the end of wvdial.conf. The /etc/ppp/pap-secrets and /etc/ppp/chap-secrets need to be modified only once, so dial as (root) for first time. You can run as normal user and lock the root account, it will give a permission denied error, its fine(stupid mode =1 will do the job)

wvdialconf – will detect the settings and edit the wvdial.conf.
wvdial – is the dialer.

$ wvdialconf /etc/wvdial.conf #run as root/normal user. (no need for the path if its a fresh installation or unedited conf file)

Check the wvdial.conf for the resolved modem and detected the initialization strings. ENCLOSURE:: wvdial.conf
# wvdial&; #run as root only for first time, push the job to background.


  • enable root: $ sudo passwd root (for debian users)
  • disable root: $ sudo passwd -l root (for locking the account)
  • job control: append ‘&’ at the end of the command, bring back by using fg or fg %n(process number, not PID) and press CTRL + C to safe exit.