Introduction To UNIX: Unix Features Benefits File Structure Basic Commands Vi Editor
Introduction To UNIX: Unix Features Benefits File Structure Basic Commands Vi Editor
Features of UNIX
1. The file and Process 2. Multi-user 3. Multi-tasking 4. Pattern Matching 5. Programming Facility 6. Communication System 7. Security 8. File Encryption/Decryption 9. Portability
Benefits of UNIX
1. Independence 2. Remote Execution and administration 3. Cost 4. Ease of setup 5. No Viruses 6. Great Editor 7. Distributed Processing and Multi-tasking 8. Portability 9. Reliable 10.Security
UNIX Shells
kernel: base operating system, interacts directly with the hardware and services the user programs
only accessible through kernel mode, which is reserved for the system administrator
The tree-like structure for UNIX file systems starts at the root level
Root is the file at this level, denoted by character /
Login.sql safe
/bin: binaries, or executables /lib: shared library images /dev: device drivers /mnt points for temporary mounts.
Subdirectories /mnt/cdrom /mnt/floppy
10
Basic commands
ls (list) command: directorys contents (files and subdirectories) ls l: in detail ls a: hidden files also
11
Vi Editor
There are three editors available in almost all versions of Unix: 1) ed 2) ex 3) vi
The ed program is the original editor that has been a part of Unix since the very beginning. The ed program is basically a line editor, which means that ed assigns line numbers to the lines in the file. Every time you do something, you must tell ed which line or lines to do. An improved version of ed called ex ,understands all the commands of ed. Compared to ed it is a shade better in user-friendliness with more informative error messages. Compared to ed or ex the vi text editor is the best. It is a screen editor rather than a line editor. It was the first full screen editor. It allowed the user to view and edit the entire document at the same time.
Disadvantages of Vi Editor
The user is always kept guessing. There are no self explanatory error messages. The guy who wrote vi didnt believe in help, so there is no online help. (bill joy) There are three modes in Vi editor .Under each mode the same key press creates different effects. (Have to memorized). Vi is case-sensitive.