Monday, March 19, 2012

Permission

rwx r- - r- -

file/ user group others

folder (d) [ * r-> readonly, w -> write, x -> execute]

# chmod u+rwx, g+rw, o+r file_name [to add permission, where user can do everything & group user can read and write & others can read only]

# chmod u-x, g-w, o-r file_name [to eliminate permission]

# chmod ugo+rwx file_name [to give all permission to all users]

Ownership

# ls -l file_name [to show permission & owner of a file]

# ls -ld folder_name [to show permission & owner of a folder]

# chown user_name.group_name file_name [to change the owner of a file]

# usermod -G group_name user_name [to add a user into a group]

or

# vi /etc/group then edit the file .

Saturday, March 17, 2012

Super iPhone Apps


Brosix: This is a cross-platform instant messaging tool, which is suitable for everyday communication for both business and leisure. You can use this application, users must register an account Brosix. If they want to test the service, they will be able to register an individual

account, which is available free of charge. Brosix can be used for text chats, group chats, and send offline messages. There will be no ads are shown, which is an impressive feature of a free iPhone app Furthermore, Brosix is ​​also available in other popular platforms, including Windows, Mac, Linux and Android. At the moment, Brosix iPhone does not support calls or video calls. This application is compatible with iPhone, iPod touch and the iPad, and requires iPhone OS 4.0 or later.

Although smart phones will replace computers, programs have stared replace website. With a wide range of applications allows users to edit and customize their iPhone, App Store has been a leading player in this area. There are currently more than 500,000 apps available from the App Store and a big chunk of them are fillers. A good app must be really good, creative, innovative and imaginative. Some professionals are more productive to help the least available time, your children have fun, while others apps to guide users through a local business searches. We hope that our articles will help readers find some great apps.

Best iPhone 4 Cases



Incipio bombproof Case

Incipio bombproof Case is one of the sturdiest of new cases in the market. Inspired by the grid-like pattern grenade, this extra-sturdy iPhone case provides the utmost protection of its four high-density silicone rubber consistency. To top it all, makes you save the planet. So, in this case is made of 20% recycled material Incipio other cases. It is available in six great colors: Green, Tan, Orange, Stealth, pink and red.

iFrogz Luxe Lean Case

Change is coming all the new iFrogz Luxe Lean thing. Luxe Lean hard-shell case snaps to give your phone stylish and slim protective case. This is a very hot case is durable polycarbonate and built to provide superior impact protection when all ports, sensors and revenue from open easily. Comes with nine excellent colors: gray, green, red, teal, Indwhoa (blue), pink, black, royal blue and white.

Scosche beefKase

If you are serious about change, try the hottest new leather case on the market. Scosche beefKase for iPhone 4-resistant characteristics of the polycarbonate of the inner core and is wrapped in a soft black skin. Scosche beefKase will give you all the protection of well-poly case, the appeal of luxury and soft, supple leather. Ranked among the top ten cases, the new iPhone 4 users, this case is a reliable and attractive.

SwitchEasy Silicone Case

The extreme change, why not try SwitchEasy silicone case. Built in the daily variation in mind, this case is a very inexpensive and easy to change. When it comes to a kit comprising two anti-static screen guards, a micro fiber cloth wipe, a squeegee and the screen guard application bifocal protector jack connectors, and the headphone jack two protectors. Change-out case, a series of nine fabulous colors: turquoise, white, fuchsia, yellow, orange, black, Crimson, Purple, and Lime.

Database Control


# chage -l user_name [to show user database]

# chage -m no. of days user_name [to set minimum days]

# chage -M no. of days user_name [to set maximum days]

# chage -W no. of days user_name [to set warning date]

# chage -I no. of days user_name [to set password inactive date]

# chage -E mm/dd/yy user_name [to set account expires date

User Information

# useradd user_name [to add a new user]

# passwd user_name [to set user password]

# userdel user_name [to delete a user]

# passwd -d user_name [to delete user password]

# groupadd group_name [to add a new group]

# groupdel group_name [to delete a group]

*When an user is created , it makes five new changes-

1. /etc/password [contains user id, group id etc]

2. /etc/group [contains group information]

3. /etc/shadow [password encryption]

4. /home/user_directory [new directory is created]

5. /var/spool/mail/user_directory [user mail box is created]

# cat /etc passwd or group or shadow [to show password/shodow/group]

*Arif : X : 532 : 535 : : /home/arif/bin/bash

UserName UserID User Group ID

# usermod -c “ “ user_name [to write comment between password]

Arif : X : 532 : 535 : : /home/arif/bin/bash

# id -u user_name [to show user ID]

# usermod -u 700 user_name [to change user ID as 700]

# id -g user_name [to show user group ID as 800]

# groupmod -g 800 user_name [to change group ID]

# passwd -l user_name [to lock a user]

# passwd -u user_name [to unlock a user]

How to Archive a Folder


# tar –cvf file_name folder_name [to zip a folder into a file]

# tar –tvf file_name [to show archiving file]

# tar –xvf file_name [to unzip the archiving file]

# gpg -c file_name [to set password into a file]

# gpg file_name.gpg [to open the password]

How to install Bootlouder (Lilo/Grub)

# cp /etc/liloconf.anaconda /etc/lilo.conf [to convert grub into lilo]

# lilo [then ‘reboot’ the system ]

# grub-install /dev/hda [to install grub]

How to change Banner


# vi /etc/issue [to change banner before login]

# vi /etc/motd [to change banner after login]

Runlevel

# cat .inittab [default runlevel]

a) 0 -> halt

b) 1 -> single user mode

c) 2 -> multiuser mode , without NFS

d) 3 -> full multiuser mode

e) 4 -> unused

f) 5 -> X11, graphical & full multiuser mode

g) 6 -> reboot

# runlevel [ to show runlevel]

# telinit 1 [only one user can login]

How to set line number & edit command


# vi .exrc

then write ‘set number’ and save the file for permanently set and write ‘no number’ to remove number. [:set number-> to set temporary no/ :set no number-> to remove temporary number]

# vi .bashrc [ to edit command]

How to count line/char/word of a file


# wc -l file_name [to count line]

# wc -c file_name [to count chracter]

# wc -w file_name [to count word]

How to create hidden file/directory


# touch .file_name

# mkdir .directory_name

How to create directory



# mkdir directory_name



Friday, March 16, 2012

How to rename a file


# mv a1 b1 [ to rename a file ‘a1’ as ‘b1’]

[ Open a file ‘a1’with vi editor and write :wq /home/b1, to rename & save in home directory as ‘’b1 ]