Category Archives: Ubuntu

Linux OS Related

Useful Ubuntu Terminal commands!

Movement In The directory
* cd – Change Directory
* pwd – Print Working Directory

Managing Files and Text
* cp – Copy
* ls – List
* mkdir – Make Directory
* mv – Move
* rm – Remove
* grep – Search for Text Strings
* head – Display Start of File
* less – Display Part of File
* more – Display Part of File
* tail – View the End of a File
* file – type checking of one or more files
* ps – the ultimate system monitor for command line – also good for scripts
* pidof – get pid in an useful format
* cat – print out a file in the command line
* crontab – time-driven events
* man – open the manual of programms – the most important command
* sleep – wait x seconds until continue with the next command

Managing System and Program Information
* cal – Calendar
* date – Date

* fsck – File System Check

Managing Network Connections
* chkconfig – Check Activated Services
* ping – Test Network Connections
* ftp – file Transfer Protocol
* host – Check IP of Domain
* ifconfig – Configure Network Devices
* netstat – Display Routing Table
* route – Set Routes
* telnet – Connect to telnet
* traceroute – Display Route

Manage Drives and Formats
* mount – Mount a Drive
* umount – Unmount Drive
* fdisk – Format Disk
* dd – Dupliate Disk
* df – Disk Free Space

Managing Rights to Files and Directories
* chmod – Change Mode
* su – Switch User

Managing Users and Groups
* passwd – Create Password
* groupadd – Add a Group
* groupmod – Modify a Group
* chgrp – Change Group
* groupdel – Delete Group

Managing Shutdown & Restart
* shutdown -h – If you want to shutdown now the cmd “shutdown now” or specify the exact time such as 10:30 or min (ex.5, 10, etc…).
* restart -h – If you want to restart now the cmd “restart now” or specify the exact time such as 10:30 or min (ex.5, 10, etc…).

* gksudo nautilus – This command will open nautilus with root privilege. It’s just like sudo, but in GUI mode.

* sudo command – Executing Commands with Elevated Privileges

Most of the following commands will need to be prefaced with the sudo command. This elevates privileges to the root-user administrative level temporarily, which is necessary when working with directories or files not owned by your user account. When using sudo you will be prompted for your password. Only users with sudo (administrative) privileges will be able to use this command. also take a look in coreutils

* apt-get – used to install, remove, upgrade and more.

Leave a comment

Posted by on May 26, 2013 in Ubuntu


Tags: , , ,

How to change bluetooth device name in Ubuntu?

How to change bluetooth device name after changed system name?

Bluetooth device name is stored in /var/lib/bluetooth/XX:XX:XX:XX:XX:XX/config

Delete it.

Restart bluetooth service using below terminal command:

sudo /etc/init.d/bluetooth restart

Bluetooth device name is rewritten in config according to the system name.


Posted by on May 16, 2013 in Ubuntu



How to change System name in Ubuntu?

You have to change the computers hostname & hosts files.

  • Open a terminal window using following shortcut keys “ctrl+alt+t
  • Edit the hostname file and replace the name
  • gksudo gedit /etc/hostname
  • When prompted, enter the administrator password and click the OK button.
  • The hostname file will open, displaying the current computer name. Replace the current computer name with the desired new name.
  • Click Save.
  • also change the name in hosts
  • gksudo gedit /etc/hosts
  • Leave the other stuff there untouched.

Close all open windows and restart your system.

Leave a comment

Posted by on May 16, 2013 in Ubuntu



How do I disable the guest session in Ubuntu 11.10 or higher?

Method 1:-

Open terminal using shortcut Key “ctrl+alt+t”. Type this in the terminal.

gksudo gedit /etc/lightdm/lightdm.conf

You will see the following:


Add allow-guest=false to the end so your final result should look like:


Save the document and quit the text editor.

Back in the Terminal, restart the display manager. (This will end the graphical login session, immediately quitting all programs running in it, so make sure your work–like any open documents–is saved first!

sudo restart lightdm

With the graphical login session ended, you’re returned to the login screen, where you’ll notice that guest account is disabled.

That’s it the guest account is no longer usable.

Simplest method.

Just run this (once) at terminal:

sudo /usr/lib/lightdm/lightdm-set-defaults -l false

You will no longer have ‘Guest’ as login option, on your next login.

  • This simply appends allow-guest=false to /etc/lightdm/lightdm.conf.
  • Confirm works on Ubuntu 12.04; should work for 11.10 and upwards (since those versions use LightDM as well).

To undo (restore Guest option):

sudo /usr/lib/lightdm/lightdm-set-defaults -l true

Method 2:-

Ubuntu Tweak is an application to config Ubuntu easier for everyone. It provides many useful desktop and system options that the default desktop environment doesn’t provide with its help, you will enjoy with the experience of Ubuntu!

Install ubuntu-tweak, get to the tweak tab, turn off the guest button and reboot. That’s it!

Home Page

Download Link

Leave a comment

Posted by on May 15, 2013 in Ubuntu



How to Remove Linux Boot Loader From Startup After Deleting Linux Partition on a Dual-Boot System?

If you have a dual-boot system with Linux and Windows, then you probably know that when you start your system first Linux boot loader appears showing Linux as well as Windows boot entries and if you select Windows from the list, it starts Windows.

Suppose a situation when you want to remove Linux from your system and want to use only Windows, then how will you do it?

Many times people delete the partitions having Linux installed from “Disk Manager” but it doesn’t remove Linux completely. The Linux boot loader still appears at startup but since you deleted Linux partitions, the boot loader gets corrupted and your system becomes unusable.

So if you are also facing this problem or you faced this problem in past and could not get a working solution, then read this tutorial and you can follow it if you find yourself in a similar situation.

This tutorial will help you in completely removing Linux from a dual-boot system:

STEP 1. First you’ll need to boot using Windows setup CD. You can use Windows 98 Setup CD or Windows 2000, XP, 2003 CD or Windows Vista, Server 2008, Windows 7 DVD.

Using Windows 98 CD:

Boot into Command Prompt and provide following command:

fdisk /MBR

Now exit from command prompt by typing Exit and press Enter.

Using Windows 2000, XP, 2003 CD:

Enter into “Recovery Console” by pressing “R“, select your Windows installation and enter administrator password. Now provide following command:


Press “Y” to confirm and type Exit to exit from recovery console.

Using Windows Vista, Server 2008, Windows 7, Windows 8 DVD:

Boot using setup DVD and click on “Repair Computer” link, then click on “Command Prompt”. Now navigate to your DVD drive using CD command and at last provide following command:

bootsect /nt60 SYS /mbr

Exit from Command prompt and restart your system.

STEP 2. The above commands will remove the Linux boot loader from startup and you’ll be able to directly boot into Windows.

STEP 3. If you have not deleted Linux partitions, then you can delete them using “Disk Manager” tool in Windows.

Leave a comment

Posted by on May 12, 2013 in Ubuntu, Windows


Tags: ,

Ubuntu 12.04 fix Fn Brightness keys

So HP Pavilion g6 laptop encountered the oh-the-Brightness-Function-keys-are-not-working-yet-again issue after the installation of Ubuntu 12.04. There is a simple fix. So here we go …..

#1 (open the file in gedit or vi)

$ sudo vi /etc/default/grub
[sudo] password for sudharsan:

#2 (find an insert the arguments in gray)

GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash acpi_backlight=vendor“

#3 (update the grub configuration)

$ sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.5.0-23-generic
Found initrd image: /boot/initrd.img-3.5.0-23-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 8 (loader) on /dev/sda1

Just reboot the machine.


At times the screen would go entirely dark. Or would not apparently resume from a blank screen.

For such cases, all you need to do is press “Fn + Brightness UP button” and screen will GLOW. Simple!!

Works for Ubuntu 12.10 perfectly

You can use “sudo gedit /etc/default/grub” if you are not very familiar with vi editor!

1 Comment

Posted by on May 11, 2013 in Ubuntu



How to Charge iPad, iPhone, iPod in Ubuntu 13.04, 12.10

This simple and brief tutorial is going to show you how to charge Apple devices in Ubuntu system via USB port. There’s a project ipad_charge that provides USB charging control utility used to enable/disable charging of an Apple device connected to USB port.

This tutorial works on all Ubuntu releases (not only Ubuntu 13.04, 12.10 as the title said), Linux Mint and even other Linux.

List of supported devices:

iPad Mini
iPod Touch 2G
iPod Touch 3G
iPod Touch 4G
iPhone 3GS
iPhone 4
iPhone 4S
iPhone 5

Install ipad_charge in Ubuntu Linux:

Hit “ctrl+alt+t” to open terminal, then run this command to install required packages:

sudo apt-get install libusb-1.0-0 libusb-1.0-0-dev

Then get the source code:

git clone

Finally, install ipad_charge to /usr/bin, and 95-ipad_charge.rules to /etc/udev/rules.d via following 3 commands:

cd ipad_charge/
sudo make install

After installation, reboot. The udev rule automatically enables charging when an iPad is connected.

Simply running ipad_charge with no arguments enables charging on all connected iPads. Running with argument --off disables charging.
If you want to control only one device, set environment variables BUSNUM and DEVNUM.
For example $ BUSNUM=004 DEVNUM=014 ipad_charge --off


Posted by on May 11, 2013 in iPad, iPhone, Ubuntu


Tags: , ,

%d bloggers like this: