Pages

Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Monday, March 28, 2011

Shell Types in Unix

Just like people know different languages and dialects, your UNIX system will usually offer a variety of shell types:
sh or Bourne Shell: the original shell still used on UNIX systems and in UNIX-related environments. This is the basic shell, a small program with few features. While this is not the standard shell, it is still available on every Linux system for compatibility with UNIX programs.

bash or Bourne Again shell: the standard GNU shell, intuitive and flexible. Probably most advisable for beginning users while being at the same time a powerful tool for the advanced and professional user. On Linux, bash is the standard shell for common users. This shell is a so-called superset of the Bourne shell, a set of add-ons and plug-ins. This means that the Bourne Again shell is compatible with the Bourne shell: commands that work in sh, also work in bash. However, the reverse is not always the case. All examples and exercises in this book use bash.

csh or C shell: the syntax of this shell resembles that of the C programming language. Sometimes asked for by programmers.

tcsh or TENEX C shell: a superset of the common C shell, enhancing user-friendliness and speed. That is why some also call it the Turbo C shell.

ksh or the Korn shell: sometimes appreciated by people with a UNIX background. A superset of the Bourne shell; with standard configuration a nightmare for beginning users.
·
The file 
/etc/shells gives an overview of known shells on a Linux/Unix system:

mia:~> cat /etc/shells
/bin/bash
/bin/sh
/bin/tcsh
/bin/csh

Your default shell is set in the /etc/passwd file, like this line for user pertsch:

pertsch:L2NOfqdlPrHwE:504:504:pertsch Maya:/home/pertsch:/bin/bash

To switch from one shell to another, just enter the name of the new shell in the active terminal. The system finds the directory where the name occurs using the PATH settings, and since a shell is an executable file (program), the current shell activates it and it gets executed. A new prompt is usually shown, because each shell has its typical appearance:

pertsch:~> tcsh

ORBI-SCH=>

Tuesday, February 1, 2011

Linux commands for beginners

Most of the back end servers and the back end process will be in Linux and Unix platform. It's better for the students to learn basic Linux commands in the college days itself. You can learn the basic Linux Commands from the discussion forums. Linux and Unix commands are similar. Only few commands in Linux will differ. Get some knowledge from the technical forums about the Linux. This will be helpful in the Interview aspect. You will get more knowledge in Technical forums than in the tutorials and materials.