lecture2 - Navigation File Handling Users Permissions...

Info icon This preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
Navigation File Handling Users & Permissions Exercises Lecture 2: Getting Around CS2042 - UNIX Tools October 1, 2008 Lecture 2: Getting Around
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Navigation File Handling Users & Permissions Exercises Introduction to Your Shell Changing Directories Lecture Outline 1 Navigation Introduction to Your Shell Changing Directories 2 File Handling Creation Deletion Copying, Moving, and Renaming 3 Users & Permissions Users and Groups File Permissions 4 Exercises Lecture 2: Getting Around
Image of page 2
Navigation File Handling Users & Permissions Exercises Introduction to Your Shell Changing Directories First Things First... Learn to love this view! Graphical User Interfaces (GUIs) aren’t standardized Most tasks can be accomplished right in the shell Lecture 2: Getting Around
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Navigation File Handling Users & Permissions Exercises Introduction to Your Shell Changing Directories Your Most Important Command You just saw a new command - how do you figure out what it does? The man Command man < command name > Brings up the manual page (manpage) for the selected command Unlike Google results, manpages are system-specific Gives a pretty comprehensive list of all possible options/parameters Use / < keyword > to perform a keyword search in a manpage The n-key jumps to successive search results Lecture 2: Getting Around
Image of page 4
Navigation File Handling Users & Permissions Exercises Introduction to Your Shell Changing Directories Your Second-Best Friend Google can be the easiest reference for more general usage questions For example, searching for ”remove non-full directory linux” may be faster than searching all of the options in the rm manpage Lecture 2: Getting Around
Image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Navigation File Handling Users & Permissions Exercises Introduction to Your Shell Changing Directories Lecture Outline 1 Navigation Introduction to Your Shell Changing Directories 2 File Handling Creation Deletion Copying, Moving, and Renaming 3 Users & Permissions Users and Groups File Permissions 4 Exercises Lecture 2: Getting Around
Image of page 6
Navigation File Handling Users & Permissions Exercises Introduction to Your Shell Changing Directories But Where Are We? Many shells will use the current path in their prompt. If not... Print Working Directory pwd Prints the full path to the current directory Handy on minimalist systems when you get lost Lecture 2: Getting Around
Image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Navigation File Handling Users & Permissions Exercises Introduction to Your Shell Changing Directories Where Can We Go? Before we can change directories, we need to know what options we have. The ls Command ls [options] [file] Lists directory contents (including subdirectories!) Works like the dir command from DOS The -l option lists detailed file/directory information - we’ll use this later! Lecture 2: Getting Around
Image of page 8
Navigation File Handling Users & Permissions Exercises Introduction to Your Shell Changing Directories Getting There Change Directory cd [dirname] Changes directories to [dirname] If not given a destination, defaults to the current user’s home directory Same command used in DOS Can be given either an absolute path or a relative path to the destination directory Lecture 2: Getting Around
Image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern