Unix - Tutorialspoint

3y ago
419 Views
82 Downloads
1.09 MB
65 Pages
Last View : 1d ago
Last Download : 3m ago
Upload by : Ellie Forte
Transcription

UnixAbout the TutorialUnix is a computer Operating System which is capable of handling activities from multipleusers at the same time. The development of Unix started around 1969 at AT&T Bell Labsby Ken Thompson and Dennis Ritchie. This tutorial gives a very good understanding onUnix.AudienceThis tutorial has been prepared for the beginners to help them understand the basics toadvanced concepts covering Unix commands, Unix shell scripting and various utilities.PrerequisitesWe assume you have adequate exposure to Operating Systems and their functionalities.A basic understanding on various computer concepts will also help you in understandingthe various exercises given in this tutorial.Execute Unix Shell ProgramsIf you are willing to learn the Unix/Linux basic commands and Shell script but you do nothave a setup for the same, then do not worry — The CodingGround is available on a highend dedicated server giving you real programming experience with the comfort of singleclick execution. Yes! It is absolutely free and online.Copyright & Disclaimer Copyright 2016 by Tutorials Point (I) Pvt. Ltd.All the content and graphics published in this e-book are the property of Tutorials Point (I)Pvt. Ltd. The user of this e-book is prohibited to reuse, retain, copy, distribute or republishany contents or a part of contents of this e-book in any manner without written consentof the publisher.We strive to update the contents of our website and tutorials as timely and as precisely aspossible, however, the contents may contain inaccuracies or errors. Tutorials Point (I) Pvt.Ltd. provides no guarantee regarding the accuracy, timeliness or completeness of ourwebsite or its contents including this tutorial. If you discover any errors on our website orin this tutorial, please notify us at contact@tutorialspoint.comi

UnixTable of ContentsAbout the Tutorial . iAudience . iPrerequisites . iExecute Unix Shell Programs . iCopyright & Disclaimer . iTable of Contents . iiUNIX FOR BEGINNERS . 1Unix — Getting Started . 2What is Unix? . 2Unix Architecture. 2Unix — File Management . 8Listing Files . 8Metacharacters . 10Hidden Files . 10Creating Files . 11Editing Files . 11Display Content of a File . 12Counting Words in a File . 12Copying Files . 13Renaming Files. 13Deleting Files . 13Standard Unix Streams . 14Unix — Directory Management . 15Home Directory . 15Absolute/Relative Pathnames . 15Listing Directories . 16Creating Directories . 16Creating Parent Directories . 17Removing Directories . 18Changing Directories . 18Renaming Directories . 18The directories . (dot) and . (dot dot) . 19Unix — File Permission / Access Modes . 20The Permission Indicators . 20File Access Modes. 20Directory Access Modes . 21Changing Permissions . 21Using chmod with Absolute Permissions . 22Changing Owners and Groups . 23Changing Ownership . 24Changing Group Ownership . 24SUID and SGID File Permission . 24ii

UnixUnix — Environment . 26The .profile File . 27Setting the Terminal Type . 27Setting the PATH . 27PS1 and PS2 Variables . 28Environment Variables . 30Unix — Basic Utilities . 32Printing Files . 32Sending Email . 35Unix — Pipes and Filters . 37The grep Command . 37The Sort Command . 38The pg and more Commands . 39Unix — Processes Management . 41Starting a Process . 41Background Processes . 42Listing Running Processes . 42Stopping Processes . 44Parent and Child Processes . 44Zombie and Orphan Processes . 44Daemon Processes . 45The top Command . 45Job ID Versus Process ID . 45Unix — Network Communication Utilities . 46The ping Utility . 46The ftp Utility . 47The telnet Utility . 49The finger Utility . 50Unix — The vi Editor . 52Starting the vi Editor . 52Operation Modes . 53Getting Out of vi . 53Moving within a File . 54Control Commands . 56Editing Files . 57Deleting Characters .

Unix was originally developed in 1969 by a group of AT&T employees Ken Thompson, Dennis Ritchie, Douglas McIlroy, and Joe Ossanna at Bell Labs. There are various Unix variants available in the market. Solaris Unix, AIX, HP Unix and BSD are a few examples. Linux is also a flavor of Unix which is freely available.

Related Documents:

Unix 101: Introduction to UNIX (i.e. Unix for Windows Users) Mark Kegel September 7, 2005 1 Introduction to UNIX (i.e. Unix for Windows Users) The cold hard truth · this course is NOT sponsored by the CS dept. · you will not receive any credit at all introduce ourselv

UNIX and POSIX APIs: The POSIX APIs, The UNIX and POSIX Development Environment, API Common Characteristics. UNIT – 2 6 Hours UNIX Files: File Types, The UNIX and POSIX File System, The UNIX and POSIX File Attributes, Inodes in UNIX

This is a standard UNIX command interview question asked by everybody and I guess everybody knows its answer as well. By using nslookup command in UNIX, you can read more about Convert IP Address to hostname in Unix here. I hope this UNIX command interview questions and answers would be useful for quick glance before going for any UNIX or Java job interview.

UNIX Files: File Types, The UNIX and POSIX File System, The UNIX and POSIX File Attributes, Inodes in UNIX System V, Application Program Interface to Files, UNIX Kernel Support for Files, Relationship of C Stream Pointers and File Descriptors, Directory Files, Hard and Symbolic Links. UNIT – 3 7 Hours

UNIX operating system, we will try to place our observations in a wider context thanjustthe UNIXsystem or one particular version of the UNIX system. UNIX system security is neither better nor worse than that of other systems. Any system that provides the same facilities as the UNIX system will necessarily have similar hazards.

UNIX system services UNIX kernel in C computer SH The shell (sh) is a program (written in C) that interprets commands typed to it, and carries out the desired actions. The shell is that part of Unix that most users see. Therefore there is a mistaken belief that sh is Unix. sh is an applications program running under Unix

started guide. The Connect:Direct F ile Agent Help contains instruct ions for configuring File Agent. direct Connect:Direct for UNIX Administration Guide Connect:Direct for UNIX Administration Guide Connect:Direct for UNIX Administration Guide Connect:Direct for UNIX Administration Guide . Connect:Direct for UNIX Administration Guide

The section on illustration greatly benefited from Lys Drewett s ten years experience teaching archaeological illustration at the Institute of Archaeology and as illustrator on all my archaeological projects. Most of the illustrations derive from my field projects but, where not, these are gratefully acknowledged under the illustration. To any other archaeologists who feel I may have used .