1 / 12

A Brief Overview of Unix

A Brief Overview of Unix. Zachary Thacker. Online Documentation. The “man” command man vi man emacs man more etc. The Emacs Editor. Modes Major Minor Buffer and Window Point and Mark Kill and Yank commands Ctrl and Meta keys. The vi editor. “Standard” editor for Unix

paley
Télécharger la présentation

A Brief Overview of Unix

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.

E N D

Presentation Transcript


  1. A Brief Overview of Unix Zachary Thacker

  2. Online Documentation The “man” command man vi man emacs man more etc

  3. The Emacs Editor • Modes • Major • Minor • Buffer and Window • Point and Mark • Kill and Yank commands • Ctrl and Meta keys

  4. The vi editor • “Standard” editor for Unix • Several versions and iterations exist • vim (vi improved) • nvi • elvis • Based on and relies heavily on features and commands of the older “ex” editor • Starting a vi session: • vi [options] file – begins editing file • vi [options] +num file – begins editing file at line num • vi [options] +/pattern file - begins editing file at line matching pattern

  5. vi continued • Modes: • Command Mode – default mode, issue editing commands and enter insert mode • Insert Mode – editing mode, entered with the i command • Maneuvering the cursor is done with arrow keys or h, j, k, l keys • H – left • J – down • K – up • L - right

  6. sed editor • Stands for “stream editor” • Used for making quick or repetitive edits to more than one file • Uses scripts instead of direct input

  7. File System Commands • ls – list names of all files in current directory • Various modifiers, such as –t to sort by time • cp file1 file2 – copies file1 to file2 • mv file1 file2 – moves from file1 to file2, does not make a copy • rm filenames – remove filenames

  8. Structure of Directories • root directory – has no parent directory • File pathname - /home/zpt23/CS265/file.txt • “..” represents parent of current directory • “.” represents current directory • Commands: • pwd –displays pathname of current directory • cd – changes current directory, changes to root if no argument given • mkdir name – creates a directory called name in the current directory

  9. Permissions • Owner, Owner Group, and Everyone Else • Read, write, execute permissions for files • Different for directories… • Read – permission to view contents of directory, for example using the ls command • Write – permission to create/remove file from directory • Execute – permission to cd into that directory

  10. Conclusion • UNIX is an operating system • Uses various commands and utilities that coexist • Useful for multiuser and multitasking operations

  11. Sources Robbins, Arnold. Unix in a Nutshell, Fourth Edition. North Mankato: O'Reilly Media, Inc., 2005. Print. "Understanding UNIX permissions and chmod." Perlfect Solutions. Web. 27 Sept. 2009. <http://www.perlfect.com/articles/chmod.shtml>. http://www.cs.drexel.edu/~knowak/cs265_fall_2009/unix_basics.pdf

More Related