A Brief Overview of UnixOnline DocumentationThe Emacs EditorSlide 4The vi editorvi continuedsed editorFile System CommandsStructure of DirectoriesPermissionsConclusionSourcesA Brief Overview of UnixZachary ThackerOnline DocumentationThe “man” commandman viman emacsman moreetcThe Emacs Editor•Modes▫Major▫Minor•Buffer and Window•Point and Mark•Kill and Yank commands•Ctrl and Meta keysThe 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 patternvi 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 - rightsed editor•Stands for “stream editor”•Used for making quick or repetitive edits to more than one file•Uses scripts instead of direct inputFile 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 filenamesStructure 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 directoryPermissions•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 directoryConclusion•UNIX is an operating system•Uses various commands and utilities that coexist•Useful for multiuser and multitasking operationsSourcesRobbins, Arnold.LUnix in a Nutshell, Fourth Edition. North Mankato: O'Reilly Media, Inc., 2005. Print."Understanding UNIX permissions and chmod."LPerlfect Solutions. Web. 27 Sept. 2009.
View Full Document