Download presentation
Presentation is loading. Please wait.
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 Buffer and Window Point and Mark
Major Minor Buffer and Window Point and Mark Kill and Yank commands Ctrl and Meta keys
5
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
6
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
7
sed editor Stands for “stream editor”
Used for making quick or repetitive edits to more than one file Uses scripts instead of direct input
8
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
9
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
10
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
11
Conclusion UNIX is an operating system
Uses various commands and utilities that coexist Useful for multiuser and multitasking operations
12
Sources Robbins, Arnold. Unix in a Nutshell, Fourth Edition. North Mankato: O'Reilly Media, Inc., Print. "Understanding UNIX permissions and chmod." Perlfect Solutions. Web. 27 Sept < l> /unix_basics.pdf
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.