Tuesday, July 17, 2012

Bluetooth icon missing in Ubuntu

Sometimes you see, that, your Bluetooth icon, which is supposed to be at the panel is not there OR sometimes you unintentionally remove it.
And when you right click on panel you see no options to get it back.

Steps to get back your bluetooth applet icon on your panel:
  1. Right click on the top panel and scroll down until you find Notification area and Indication Applet and add it to the panel. after that
  2. Open terminal: bluetooth-applet then ENTER



  3. Now the blooth applet icon will start showing on your panel until you close the terminal.
  4. Before closing the terminal window, Right click on the bluetooth applet icon on the panel and Lock to panel.
  5. After that, exit the terminal window.
You will get your bluetooth applet icon.



Monday, July 16, 2012

Top vs ps command

Top Command

Top command is used for displaying top CPU processes which are currently live.
It periodically updates the selection of processes and displays it.

It is similar to Windows Task Manager in Windows.


Line 1 time, users load averagzombiee.
Line 2 total tasks, how many of them are running, stopped or zombie
Line 3 CPU usuage
Line 4 Memory Analysys

Highlight the running process by pressing z.

Kill a task: Press k - to kill a task and then PID 
Example: 3290 is PID of docky.
                Press k then PID : 3290


Learn more about top: $man top



ps command

ps (process status) command gives a snapshot of the current processes.

Example: $ps -ef    ---->to see all processes
             



Column 1 UID - user id
Column 2 PID - process id
Column 3 PPID - parent process id
Column 4 TTY - gives the name of the terminal connected to the standard input

Learn more about ps: $man ps


Zombie processes are those processes which have finished the execution and have released all the resources but still had an entry in the process table.

Example: $ps aux   ----> snapshot of all the processes will come and processes with STAT "z" are zombie processes







FIND Command in Linux Ubuntu

It has been occurred many times that we want to search some document or movie which we know is somewhere available on the hard disk but don't know the exact location.

In Linux, it won't be a much of a headache.
Find is one powerful command that will help you to search anything on your computer.

In terminal: find [directory where you want to search] -iname *[name or part of the file]*

Example: $find /home/ubuntu/Desktop -iname *programming*.doc
Here I want to search a document on Desktop and all the directories on it and it will show the documents which contain programming word in it.


It is a simple example of a Find command.
If you want to learn more about it
In Terminal: $man find