Handy Terminal Keyboard Shortcuts

Take these short-cuts handy to increase your productivity.

Cursor Movement Control
Ctrl-a: Move cursor to the start of a line
Ctrl-e: Move cursor to the end of a line
Ctrl-Left/Right: Navigate word by word (may not work in all terminals)

Modify Text
Ctrl-w: Delete the whole word to the left of the cursor
Ctrl-k: Erase to end of line
Ctrl-u: Erase to beginning of line

Scrolling/Buffer Control
Shift-PageUp/PageDown: Scroll through current buffer
Ctrl-s: Pause terminal output (program will keep running)
Ctrl-q: Release terminal output (after being paused)
Ctrl-l: Clears the screen. Use this instead of the clear command.

History
Ctrl-r: Search the history (enter to run the command once found)

Bonus Tip: Use ‘!!’ command to run last command and ‘!com’ to run the last command starting with ‘com’.

Process Control
Ctrl-d: Exit
Ctrl-c: Kill the current process
Ctrl-z: Put the current process in the background (fg will restore it)

if any other Short cut key comes to my mind, It will be posted on Social media @facebook @twitter.

Source: thelinuxdaily

Advertisements

Steps to configure Mobile Broadband in your Ubuntu

These are the steps to add the repository and configure the mobile broadband in your ubuntu .

1) Open Terminal and switch to the root user by using this command:

/#  sudo su

2) First and foremost you have to install wvdial. Use the command to do the same:

/# sudo apt-get install wvdial   

You will be prompted whether to install or not. Press Y and complete the installation.Now you can configure the settings for the mobile broadband.

3)  Type the following command:

/# gedit  ./etc/wvdial.conf

A new gedit window(blank) will open and with the name wvdial.conf

4) Now add the following codes in that file and SAVE it.

[Dialer Defaults]
Stupid Mode = 1
Inherits = Modem0
Password = mts //password as given by your broadband provider//
Username = internet@internet.mtsindia.in //username as given by your broadband provider//
Phone = #777
[Modem0]
Init1 = ATZ
SetVolume = 0
Modem = /dev/ttyUSB0
Baud = 115200
FlowControl = Hardware (CRTSCTS)
Dial Command = ATDT
Note: Identify the USB port in which you have plugged in the device and replace the that port number in
the 4th line of code from the bottom. The default is USB port 0
Modem = /dev/ttyUSB0

Screenshot-from-2013-01-24-1741171

4) Mobile braodband is setup successfully.

5) To connect to the internet, open terminal and switch to root user and type:
/# wvdial