Unix Users's Guide
Total Page:16
File Type:pdf, Size:1020Kb
Unix Users’s Guide i Unix Users’s Guide September 13, 2021 Unix Users’s Guide ii Copyright © 2013 Jason W. Bacon, Lars E. Olson, SeWHiP, All Rights Reserved. Permission to use, copy, modify and distribute the Unix User’s Guide for any purpose and without fee is hereby granted in perpetuity, provided that the above copyright notice and this paragraph appear in all copies. Unix Users’s Guide iii COLLABORATORS TITLE : Unix Users’s Guide ACTION NAME DATE SIGNATURE WRITTEN BY Jason W. Bacon September 13, 2021 Unix Users’s Guide iv Contents 1 Using Unix 1 1.1 Keep It Simple, Stupid . .1 1.2 What is Unix? . .2 1.2.1 Aw, man... I Have to Learn Another System? . .2 1.2.2 Operating System or Religion? . .4 1.2.3 The Unix Standard API . .7 1.2.4 Shake Out the Bugs . .8 1.2.5 The Unix Standard UI . .9 1.2.6 Freedom of Choice . .9 1.2.7 Fast, Stable and Secure . .9 1.2.8 Sharing Resources . 10 1.3 Self-test . 10 1.4 Unix User Interfaces . 10 1.4.1 Graphical User Interfaces (GUIs) . 10 1.4.2 X11 on Mac OS X . 13 1.4.3 Command Line Interfaces (CLIs): Unix Shells . 13 1.4.4 Terminals . 15 1.4.5 Basic Shell Use . 16 1.4.6 Self-test . 17 1.5 Still Need Windows? Don’t Panic! . 18 1.5.1 Cygwin: Try This First . 18 1.5.2 Windows Subsystem for Linux: Another Compatibility Layer . 31 1.6 Logging In Remotely . 32 1.6.1 Unix to Unix . 32 1.6.2 Windows to Unix . 33 Cygwin . 33 PuTTY .................................................... 33 1.6.3 Terminal Types . 36 1.6.4 Self-test . 36 1.7 Unix Command Basics . 37 Unix Users’s Guide v 1.7.1 Self-test . 38 1.8 Basic Shell Tools . 38 1.8.1 Common Unix Shells . 38 1.8.2 Command History . 39 1.8.3 Auto-completion . 40 1.8.4 Command-line Editing . 40 1.8.5 Globbing (File Specifications) . 40 1.8.6 Self-test . 41 1.9 Processes . 41 1.9.1 Self-test . 42 1.10 The Unix File system . 42 1.10.1 Unix Files . 42 Text vs Binary Files . 42 Unix vs. Windows Text Files . 43 1.10.2 File system Organization . 43 Basic Concepts . 43 Absolute Path Names . 44 Current Working Directory . 45 Relative Path Names . 45 Avoid Absolute Path Names . 46 Special Directory Names . 47 1.10.3 Ownership and Permissions . 47 Overview . 47 Viewing Permissions . 48 Setting Permissions . 48 1.10.4 Self-test . 49 1.11 Unix Commands and the Shell . 51 1.11.1 Internal Commands . 51 1.11.2 External Commands . 51 1.11.3 Getting Help . 52 1.11.4 A Basic Set of Unix Commands . 53 File and Directory Management . 53 Shell Internal Commands . 55 Text File Processing . 56 Text Editors . 57 Networking . 57 Identity and Access Management . 58 Terminal Control . 58 1.11.5 Self-test . 58 Unix Users’s Guide vi 1.12 Unix Command Quick Reference . 59 1.13 POSIX and Extensions . 59 1.14 Special Unix Tools . ..