UNIX. System Administration Agenda. Day 1: Introduction to UNIX Day 2: Introduction to Progress Day 3: Platform Specific - half day. Introduction to UNIX. UNIX storage fundamentals Working with Files and Directories Editing and Scripting Utilities and Maintenance. Operating System.
An Image/Link below is provided (as is) to download presentation
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.Content is provided to you AS IS for your information and personal use only.Download presentation by click this link.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.During download, if you can't get a presentation, the file might be deleted by the publisher.
System Administration Agenda • Day 1: Introduction to UNIX • Day 2: Introduction to Progress • Day 3: Platform Specific - half day
Introduction to UNIX • UNIX storage fundamentals • Working with Files and Directories • Editing and Scripting • Utilities and Maintenance
Operating System UNIX is a Operating Systems (OS) • Developed in the late 1960’s by AT&T BellLabs • Since development gone through many revisions • Several flavors available with advantages and disadvantages
Operating System • Infor Supported Versions • IBM - AIX • RedHat - Linux • Hewlett Packard - HP/UX • Microsoft - Windows Server • Infor Partner Supported Versions • Unixware - SCO
Operating System • Made up of several programs, processes and configuration files Kernel System Parameters Device Files System Daemons Processes Schedulers
UNIX Commands Movement: pwd Print Working Directory # pwd /home Pathing: cd cd ~ cd .. cd ..//..
UNIX Commands Checking File Permissions and Sizes: ls List Directory -l -i -t -r # ls .profile myfile junk # ls -al List Directory drwxr-xr-x 16 root System 3072 Jul 21 12:29 . drwxr-xr-x 28 bin bin 15872 Jul 27 11:29 .. -rw-rw-rw- 1 root System 0 Aug 25 1997 .facetusers
Wild Cards * All matches # ls -al b* bob bratt bradt ? Specific characters must match # ls -al bra?t bratt bradt
Directory Structure / (root) root volume group data volume group usr home var etc rd db bi bob jean dan passwd trhead.db trhead.bi bin lib tmp spool adm tmp src opsys exec tmp
Filesystems /var /var is a filesystem. A filesystem is an area that exists on your volume group where you can store files.
Directories /var adm spool tmp news /var/adm, /var/spool, /var/tmp and /var/news are all directories (or better known as sub-directories.
Files /var tmp bin cmru.dat login cmru.dat and login are files which exist in /var/tmp & /var/bin directories.
Disk Layout Two ways to setup your disks: - Full Disk - Logical Volume Manager - LVM
NxTrend chosen method for datastorage Logical Volume Manager Freedom… Ability to cross several physical volumes with a single filesystem. Flexibility… Add additional physical volumes to the logical volume on the fly.
Terminology Physical Volume = Hard drive that has been initialized for use in LVM Volume Groups = A named collection of physical volumes. Logical Volume = Entities upon which a file system resides. (swap) File system = Formatted area within logical volume to hold data.
Typical Disk Layout Disk1root volumegroup (boot disk) Disk2 Disk3 data volume group
volume groups Disk1 Files Systems root volume group (boot disk) logical volumes Disk2 Disk3 Files Systems data volume group physical volumes
RAID - Redundant Array of Inexpensive Disks (RAID 0) Striped DisksIf you are creating filesystems that need the ability to do many I/Os simultaneously, a better strategy for creating them is to use Disk Striping. (RAID 1) MirroredDisk mirroring provides a level of redundancy in your disk system. (RAID 10) Striped & Mirrored. RAID 10 is a new term describing the concept of using disk striping (RAID 0) across multiple mirrored pairs (RAID 1).
Types of Files • ASCII • text files (readable) • binary • compiled programs (unreadable) • encrypted • file containing special characters (unreadable) • Determining File Type # file <filename>
File View # more Display file 1 page at a time <enter> Moves down 1 line space bar Move down 1 page / ? Forward/Backward find n Next occurrence q Quit v vi editor
File View # pg Page a File <enter> Moves down 1 page +/-? Moves up/down by the number you input. $ Last Page q Quit
File View # head filename Display the beginning of file Displays the first 20 lines from a file # head -100 /usr/tmp/rptlog /smit.log # tail filename Display the end of file Displays the last 10 lines from a file # tail -100 /usr/tmp/rptlog /smit.log
File Manipulation # mv filename newfile Move a File # rm filename Remove a File -i interactive -r recursive # cp filename newfile Copy a File
Directories # mkdir Make a Directory # mvdir Move a Directory # rmdir Remove a Directory
File & Directory Manipulation Redirection: > Redirect & overwrite >> Redirect & append | Pipe into another command Search: strings Search for text in binary files grep Search for string