Friday, March 16, 2012

How to delete a file/directory


# rm file_name

# rm -rf directory_name

How to create a file

1. touch [create blank file]

2. cat [create blank file,no edit but line can be added]

3. vi [everything can be done]

Creating a file with touch editor

# touch file_name [to create a blank file]

# touch /home/file_name [to create a file in home directory from root directory]

# touch folder_name a1 a2 a3 [ to create more than one file at a time ]

Creating a file with cat editor

# cat > file_name , then write & press Ctrl+D to save.

# cat > file_name [to read a file]

# cat >> file_name [to write in a file from last line]

Creating a file with vi editor

# vi file_name [to create a file, #vi -O a1 a2 (two file at a time),ctrl+w n/s/v/↕]

Then press ‘ i ’ to write and then press ‘Esc’ then write,

1. :w -> to save and exist.

2. :wq -> to save and quit.

3. :q -> to quit.

[ *If files are not save/quit then force the file with ‘ ! ‘, such as write :q! to quit ]

[* Copying line-> press ‘yy’/’4yy’, Deleting line -> press ‘dd’/ ’4dd’ , Paste-> press ‘p’.]

How to copy/move a file or folder

# copy source destination [syntex]

# copy /etc/a1 /root/b1 [to copy a file ‘a1’ from etc to root folder as ‘b1’]

# mv source destination [to move a file/folder]

ZIP & UNZIP

# gzip filename [to zip a file]

# gunzip filename [to unzip a file]

[ *ZIP file extension .gz or .tar or .bz2]

# bzip2 filename [to zip a file]

# bunzip2 filename [to unzip a file]

Thursday, March 15, 2012

To change bootlouder page password


# vi /boot/grub/grub.conf [ write password=open]

# vi /etc/grub.conf [to change the title of boot louder page]

To change root password


è press ‘e’ from bootlouder page then select 2nd option from existing three option

è then again press ‘e’ and write =/ single [enter] then select ‘b’ for boot,

è then # passwd root [enter] and after changing the password reboot the system.

Rescuing Process



# F5 [step 1]

# linux rescue [step 2]

# chroot /mnt/sysimage [step 3]

# grub-install /dev/had [step 4]

# reboot [step 5]

Command Under Root User

# Linux contains two format-

1. bash [show user nsme & directory]

2. sh [doesn’t show user nsme & directory]

# sh format command:

# sh [to enter ‘sh’ format from ‘bash’ format]

# pwd [to show directory]

# whoami [to show user name]

# hostname [to show host name]

# bash [to enter ‘bash’ format from ‘sh’ format]

Command Under Root User

# cd /home [to enter home directory]

# cd [to enter root directory from anywhere]

# ls [to show the content]

# cd /etc/;ls [to enter & show the content at a time]

# cd pp [to enter a folder name ‘pp’ not under mount point]

# cd /etc/pp [to enter a folder ‘pp’ under /etc folder]

# ls –F [to show folder]

[ /-> folders , @-> configuration files , *-> execution files , all others are normal files. ]

# ls –s file_name [to show size in KB]

# ls -a [to show hidden files]

# ls -la [to show al files at a time]

[*Blue color or ‘D’ before name -> Folder or , all other colors or ‘-‘ before name -> files.]

# more install.log [to show the whole installing package]

# /usr/bin/setup [to configure hardware, in FedoraCore/Unix-> # /setup ]

# fdisk -l [to show harddisk information]

# df [to show linux partition]

# df -h /dev/hda5 [to show information of D drive]

# history [to show history]

# history -c [to clear history]

Wednesday, March 14, 2012

Installing Process

# ls –s file_name [to show size in KB]

# ls -a [to show hidden files]

# ls -la [to show al files at a time]

[*Blue color or ‘D’ before name -> Folder or , all other colors or ‘-‘ before name -> files.]

# more install.log [to show the whole installing package]

# /usr/bin/setup [to configure hardware, in FedoraCore/Unix-> # /setup ]

# fdisk -l [to show harddisk information]

# df [to show linux partition]

# df -h /dev/hda5 [to show information of D drive]

# history [to show history]

# history -c [to clear history]

# Linux contains two format-

1. bash [show user nsme & directory]

2. sh [doesn’t show user nsme & directory]

# sh format command:

# sh [to enter ‘sh’ format from ‘bash’ format]

# pwd [to show directory]

# whoami [to show user name]

# hostname [to show host name]

# bash [to enter ‘bash’ format from ‘sh’ format]

Installing Process

*At least one ‘/ ’ and SWAP partition have to create (graphical mode).

Text mode:

1. Create ‘/boot’ partion , need 100 MB free space.

2. Create ‘SWAP’ patition, size double of RAM size.

3. Create ‘/ ‘ partition, need 200 MB free space.

Command Under Root User

# cd /home [to enter home directory]

# cd [to enter root directory from anywhere]

# ls [to show the content]

# cd /etc/;ls [to enter & show the content at a time]

# cd pp [to enter a folder name ‘pp’ not under mount point]

# cd /etc/pp [to enter a folder ‘pp’ under /etc folder]

# ls –F [to show folder]

[ /-> folders , @-> configuration files , *-> execution files , all others are normal files. ]

Linux File System

*Linux SWAP partition-> Double of physical memory(RAM).

* Six urers from F1 to F6.

*Alt+Ctrl+F7-> From text to graphical mode.

*Alt+Ctrl+F1-> From graphical to text mode.

root@ localhost. root #

User Name User home directory

#-> Root user , $-> Client user

Restart command

# init 6 or reboot

Shutdown command

# poweroff or init 0 or shutdown –h now or shutdown –h 1 (will shutdown in 1 minute).

Sunday, March 11, 2012

Tips for Tracking a mobile phone or spy it



The function will change the basic features of a mobile phone, please remember. It is not just incidental, but the devices you connect to the world. Manufacturers must be careful to use the various features of the structure to be sure. This type of device on the key features of real awareness of the essential features of the monitoring range.

Cell phones that can be followed by the free program, you also know that your child is communicating. If you see a certain person is banned, if you know that the person can communicate with the phone. Otherwise, you can know if a person is stalking your child. All of these reasons, I strongly unreliable tracking software for your cell phone support for her attractive. Cell phone tracking software for cheaters to invade privacy? Probably. It is more important confidentiality cheaters destroy a family. Read More

Tips for Avoid Your iPhone Battery Getting Drained



If you do not want to pair with a Bluetooth device, you should make sure that your Bluetooth is turned off. The other point to your iPhone from your battery life when you use it on your iPhone is not the end of the last lockout. When you talk to your best friend, phone, mail a check or sending a text message to confirm that you are finished using the lock button is enabled. However, it is a habit for most people, is close to the screen after they have been able to wait to use it. Actually, you fall, it is the battery life.

Auto - Lock function is a great way to manually lock your phone just in case you forget to lock it to be sure. Therefore, make sure you set the automatic lock. Many iPhone owners use them for five minutes after the auto-lock set. However, if you use every day, ten times the ability to multiply five minutes, your battery will not last as long as you can expect. Automatic lock for one minute to set up so that you only use your phone after you finish. The iPhone screen will not stay lit when it is being used to make sure it is not. If you want to save your battery life, hassle - free and cheap way to do, then this method works.

Unfortunately, sometimes running out of battery power is inevitable early days. When your iPhone battery power is low, you are immediately connected to the world that it needs to stay in charge. . What about your home or office if you are near an electrical outlet outside, and luckily some of the backup device you can carry all the power you have. You have a backup battery chargers for iPhone, solar charger, self-powered hand-crank charger and rechargeable batteries for solar power for your extra hour to use the iPhone. Small and light weight of all the devices you carry with you in your pocket or your purse can.

Sunday, March 4, 2012

Future of Mobile Security



Security for the laptop and the PDA is a major concern for businesses worldwide. As more and more people conduct business online, and then store sensitive information on computer hard drives, data protection has become a key issue. Some of the measures of security such as passwords, data transfers, encrypted, spam filtering, antivirus and firewall software are needed to protect data. Although the number of security programs for laptops has increased, a new wave of spyware and malware unleashed on PDA devices.

The addition of a lock code to your phone may strike some as a terrible inconvenience, but it could be the most effective tool to prevent identity theft and data. Despite a phone lock requires a password every time you use the phone, is a measure of powerful security. It is a terrible prospect, not only to lose a phone, but to have all the personal information of one, phone numbers, photos and intimate details in the nude. Read More

Mobile Device Security




Mobile device's power and functionality continues to increase making the online access and use more convenient than ever. This, however, is also increasing security risks for companies and individuals.The greatest risk comes from the fact that the security of mobile operating systems is not as robust or mature as that of permanent employment and server operating systems. Security for all major platforms like Windows is far analyzed. Frequent updates address critical security issues.

Mobile operating systems, however, are lagging behind in the dissemination and distribution of a common problem of security patches. Security patch releases are made only occasionally and often do not clearly show or explain the problem. Read More