.gobump img{ border: 5px solid #ccc; float: left; margin: 15px; -webkit-transition: margin 0.5s ease-out; -moz-transition: margin 0.5s ease-out; -o-transition: margin 0.5s ease-out; border-radius: 5px 5px 5px 5px; } .gobump img:hover { margin-top: 2px; }

twitter

Thursday, June 25, 2009

WEB HOSTING AT MAKEMYHOST.COM AT 50% OFF


Welcome to our

WWW.MAKEMYHOST.COM


We understand that quality of linux hosting, dedicated hosting, eMail hosting customer support is mission critical for our mutual success and we will always offer live in-house support 24x7x365 even on holidays.

Our average support ticket resolution is 15 minutes and immediate responses are very common. We are dedicated to taking away the headache of administering your own servers, thus allowing you to focus entirely on running your business with unlimited growth potential.

Along with providing quality and reliable Linux hosting solutions we offer full range of other web hosting services, including: dedicated hosting, Mail hosting.

Our special security packages will help to secure the server 100% hack free, Spam free, Ddos free We are absolutely sure that such winning combination of price, quality and reliability of Linux hosting ,dedicated hosting and eMail hosting services you won’t be able to find anywhere else in the industry.


Browse our web hosting areas and choose the best plan that will suit all your needs. MakeMyHost values every single client we have.

We listen and we want to hear from you.
If you have any questions regarding any of our linux hosting or dedicated hosting, eMail hosting – feel free to contact us.Thank you for choosing MakeMyHost your web hosting provider!

Creating a Directory in Linux

The mkdir (make directory) command is used to create directories.

Example
[ Steve@localhost Steve ] $ mkdir prog-files
[ Steve@localhost Steve ] $ -

The sub-directory, prog-files, is created under the current directory. However, the new directory does not become the current directory. Complete path names can be specified with mkdir.

Example

[ Steve@localhost Steve ] $ mkdir /tmp/prog-files
[ Steve@localhost Steve ] $ _

In the above example, the directory, prog-files, is created under the /tmp directory.

DIRECTORY COMMANDS IN LINUX

Identifying the Current Directory Path


The pwd (print working directory) command is used to display the full path name of the current directory.


Example
[ Steve@localhost Steve] $ pwd
/home/Steve
[ Steve@localhostb Steve] $ _

Here, /home/Steve is the directory in which the user is currently working.


Changing the Current Directory

The cd (change directory) command changes the current directory to the directory specified.

Assume that Steve has logged in and has given the following command:

Example
[Steve@localhost Steve ] $ pwd
/home/Steve
[ Steve@localhost Steve] $ cd /usr/bin
[ Steve@localhost Steve] $ pwd
/usr/bin
[ Steve@localhost Steve] $ _

Note that the complete path name has been specified with the cd command. Linux also allows the use of relative path names with commands. Let' s look at an example.

Example

[ Steve@localhost /usr ] $ pwd
/usr
[ Steve@localhost /usr ] $ cd bin
[ Steve@localhost bin] $ pwd
/usr/bin
[ Steve@localhost bin ] $ _

In the above example, the user, Steve, changed the working directory from /usr to the directory, /usr/bin. However, he did not mention the full path of the bin directory. Since bin is a sub-directory in the current working directory, Steve just specified the directory name and Linux interpreted that the directory is under the current directory.

You can also use the .. (double dot) option with the cd command to move to the parent directory of your current directory. For example, Steve can enter the following command after logging in, to change to the parent directory of his HOME directory.

Example

[ Steve@localhost Steve ] $ pwd
/home/Steve
[ Steve@localhost Steve ] $ cd . .
[ Steve@localhost /home ] $ pwd
/home
[ Steve@localhost /home ] $ cd . .
[ Steve@localhost / ] $ pwd
/
[ Steve@localhost / ] $ _

The two dots refere to the parent directory of the current directory. Note that there has to be a space between cd and two dots, but not between the dots.

The cd command without any path name always takes a user back to the HOME directory.

Example

[ Steve@localhost bin ] $ pwd
/usr/bin
[ Steve@localhost bin ] $ cd
[ Steve@localhost Steve ] $ pwd
/home/Steve
[ Steve@localhost Steve] $ _

Recollect that the tilde ( - ) sign is used to denote the full path for your HOME directory. Let' s say there are two directories, baseball and basketball, under Steve' s HOME directory.

Example
[ Steve@localhost vga ] $ pwd
/etc/vga
[ Steve@localhost vga ] $ cd -/baseball
[ Steve@localhost baseball ] $ pwd
/home/Steve/baseball
[ Steve@localhost baseball ] $ cd -
[ Steve@localhost Steve ] $ pwd
/home/Steve
[ Steve@localhost Steve ] $ _

You can use a combination of all the above options in your cd command. Let us look at an example, if Steve wants to move from the directory data1 to data2, he would issue the following cd command.

Example
[ Steve@localhost data1 ] $ pwd
/home/steve/data1
[ Steve@localhost data1 ] $ cd . . /data2
[ Steve@localhost data2 ] $ pwd
/home/steve/data2
[ Steve@localhost data2 ] $ _




Listing the Contents of a Directory in Linux

The is command is used to display the names of the files and sub-directories in a directory.

Example

[ Steve@localhost Steve ] $ 1s /home/Steve
DEADJOE X baseball comm tennis
Desktop a.out basketball program.cc
[ Steve@localhost Steve ] $ _

In the above example , all the files and directories under the directory named Steve are listed. If the files and directories under the current directory are to be listed, it is optional to specify the directory name with 1s.

In the above output, you are shown the file names but not the types of files. The -1 option, when used with 1s displays a detailed list of files and directories

Removing a Directory in Linux

The rmdir (remove directory) command removes the directory specified.

Example

[ Steve@localhost Steve ] $ rmdir prog-files
[ Steve@localhost Steve ] $ _

Here, the prog-files directory is deleted.

A directory can be deleted using the rmdir command only if it is:

1) Empty (does not contain files or sub-directories)

2) Not the current directory

Complete path names may also be specified with rmdir.

Example

[ Steve@localhost Steve] $ rmdir /home/Steve/tennis
[ Steve@localhost Steve ] $ _

The above command removes the tennis directory, which is located in Steve' s HOME directory.

TYPES OF USERS IN LINUX

System Administrator

The System Administrator (SA) is primarily responsible for the smooth operation of the system. it is the SA' s job to switch on the system console (the machine on which the operating system resides, also known as the server machine).

The SA also creates users and groups of suers for the system, and takes backups to prevent loss of data dure to system breakdown. In Linux, the SA is also known as the root user. The SA has all the rights for the Linux system.


File owner

The user who creates a file is said to be the owner of that file. The owner of afile can perform any operation on that file: copying, deleting, and editing.

Group Owner

Consider the following situation

A project of five people from the Dynasoft Consultants Inc, is working on a software development project for a private detective agency. An analyst heads the team. The other four members are programmers. The team is working on a Linux system.

Each programmer has been given a few programs to develop. The data provided by the detective agency is of a highly confidential nature, and so the data file has been created in the analyst' s HOME directory.

One programmer may have to link (join) a program to another programmer' s program in order to test the program.

In this situation, each programmer is the File Owner of his or her own program files. Each program, however, also belongs to the other programmers, so that they can use it for linking to the file or directly access to the file.

The project team of five users is said to be the Group Owner for the file. In Linux, it is possible to define the users who willl belong to a group. A group of users are also given a name, just as a user is given a name.


Other Users

In the example of the dynasoft consultants Inc; all the users of the system who are not members of the project group are referred to as Other Users for the files of that group.

Other Users who do not belong to the particular group. For example, the users belonging to the finance department could be treated as Other Users for the payroll department.

Tuesday, June 2, 2009

LOGGING IN AND LOGGING OUT FROM A LINUX SESSION.

Starting a Linux Session: Logging in

A user of a Linux based system works at a user terminal. After you connect to the Linux system, a message similar to the one shown below appears at the terminal.

Red Hat Linux release 6.0 (Hedwig)
Kernel 2.2.5 - 15 on an i586
login: _

Each user has an identification name called the user name or the login name, which has to be entered when the login: prompt appears. At the login: prompt, after you enter your login name, you are asked to enter your password.

Linux keeps track of all the user names and the information about users in special files (the shadow and passwd files under the /etc directory). When you enter the login name and password, these are checked in the above mentioned files.


If the login name entered does not match any of the user names in the file, the login message is displayed again. This ensures that only authorised users can access the machine. When a valid user name is entered at the terminal, the [user_name@localhostcurrent_directory_name] $ symbol is displayed on the screen.

This is the shell prompt, in which user_name is the user' s login name and current_directory_name is the user' s current working directory.

The administrator assigns each user a HOME directory when a new login account is created. When you log in, you are taken directly into your HOME directory. In Linux, login names (usernames) are usually the names of the users, and their HOME directory usually, although not necessarily, has the same time.

For instance, if your user name is tom and your HOME directory name is also tom, after logging in, you will see the following prompt on the screen.

[tom@localhost tom] $

You can now start working on Linux.

You have to be careful while typing your Login name and password, as this are case-sensitive. The entire login process appears like the one shown below:

Red Hat Linux release 6.0 (Hedwig)
Kernel 2.2.5 - 15 on an i586
Login:Tom
password: [user enters password here]
Last login: Sat Sep 18 12:18:02 from 172.17.55.167
[tom@localhost tom] $

A Sample Linux Login Screen

Ending a Linux Session: Logging Out

Once you have logged on to the system, your work session continues until you instruct the shell to terminal the session.

Typing exit or logout at the command prompt ends your current Linux session.

The system then displays the login: prompt on the screen.

In order to maintain the security of files, you should NEVER leave the terminal without logging out.

Features of Linux Operating System

Features of Linux Operating System


Multi-Programming

Linux allows many programs to be executed simultaneously by different users. This feature is called multi-programming.

Time-Sharing

Multi-programming is made possible on the Linux system by the concept of time-sharing. The operating system has to manage the various programs to be executed. The programs are queued and CPU time is shraed among them. Each program gets CPU time for a sepcific period and is then put back in the queue to wait its turn again as the next program in the queue is attended to.

Multi-Tasking

A program in Linux is broken down into tasks, each task being something like reading from or writing to the disk, or waiting for input from a user. The ability of an OS to handle the execution of multiple tasks is kn own as multi-tasking.

When a task is waiting for the completion of an activity, the CPU, instead of wasting time, starts executing the next task. Therefore, while one task is waiting for input from the user, another program could be reading from the hard disk.

To explain the concept of multi-taskign, let's make a simple example. You are having a cup of coffee, reading a book, and talking to your friend over the phone. You are actually performing more than one task simultaneously.

However, at a given point in time, you would be either sipping coffee, reading the book, or speaking over the phone. As you notice, you divide your time into smaller units and in each unit of time.

you would be doing only one of the tasks. Similarly, the CPU divides the time between all the active task.
The kernel is responsible for scheduling the tasks.

Linux Compared to Unix

Linux was developed keeping unix as preference model. Hence, the basics architechture and most of the features of Linux and Unix are the same. In fact, Linux is also considered another version of Unix. The main difference between Linux and Unix is that Linux is Free. Various distributors pf Linux do not charge a price.

but the price is quite low compared to other operating systems. What you get is a full-blown server operating system-- with NO licensing issues. Linux comes with all the development tools you could possibly require-- C, C++, FORTRAN, Pascal, and lot of scripting languages like awk, Perl, and Python, most of which are free . Also, Web servers like Apache, amd browsers such as Netscape provide their versions for Linux, again free.

The Unix operating system requires atleast 500 mb of hard disk space., whereas Linux can be installed on a computer with a little as 150 mb of hard disk space and can run on 8 MB of RAM.























Features Linux Unix
Shells available bash, pdksh, tcsh, zsh, ash Bourne, Kom, C
Variants Red hat, Calders, Debian, LinuxPPC, SUSE AT & T, MULTICS, TICS, BSD, SCO, HP-Ux, IRIX, Ultrix, XENIX Sun Solaris

Licensing

Freely distributed

Expensive licensing

The Advantages of Linux

The Advantages of Linux


Reliability

Linux is a stable operating system. Linux servers are nto shut down for years together . This means tht users on the Linux operating system work consistensly with the Linux server, without reporting any operating system failures.

Backwadrd Compatibility

Linux is siad toe be backward compatible. This implies that Linux has excellent support for older hardware. It can run on different types of processors, not just Intel. It can run on 386 and 486 Intel processors. It also runs well on DEC' s Alpha processor, Sun' s SPARC machine, PowerPc and SGI MIPS.

Simple Upgrade and Installation Process

The installation procedure of most Linux versions is menu-driven and easy. It includes the ability to upgrade from prior versions. The upgrade process preserves the exisitign configuration files and maintains a list of its actions during installations.

Low Total Cost of Owership (TCO)

Linux and most of the packages that come with it are free therefore the total cost of ownership in procuring a Linux server software is low. Also, there are a lot of people and organizations providing free support for Linux, so the cost of support can also reduce. The system configurations reuirements for installing a Linux machines is less, hence the hardware cost goes down.

Support for Legacy Devcies

Linux can run on a machine with low configuration , such as 386 DX/ Users who have low and configuration machines prefer to use Linux compared to other PSs that require configuration.

GUI InterFace

The graphical interface for Linux is the X Window system. It is didvided into two web systems consisting if a server and client. Linux has a number of graphical user interfaces called desktop Environments , such as k desktop Enironment (GNOME), both of which are versions of the X Window system. They run in the x sever.

when u start in KDEM the desktop is organised into folders such as an autoshart, trashcnn
CD-ROM , Printer, and floopy drive. all these folders are simbolized pictorially by icons. When u click on an icon the k manager pops up a browser windw.


Twitter Delicious Facebook Digg Stumbleupon Favorites More

 

Categories