Sun Fundamentals of Solaris 7 EU-118 Student Guide With Instructor Notes phần 4 potx

51 278 0
Sun Fundamentals of Solaris 7 EU-118 Student Guide With Instructor Notes phần 4 potx

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

4 4-18 Fundamentals of Solaris 7 Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services August 1999, Revision D Exercise: Getting Help Exercise objective – In this lab you will practice using the help functions available with CDE and the command-line man pages. Tasks Complete the following steps: 1. Open a Help Viewer window by clicking on the appropriate Front Panel icon. 2. In the Help Viewer window, select Index and choose All Volumes. 3. Find information on how to play an audio file. After reading this information, open the Audio player from the Workspace menu and play the /usr/demo/SOUND/sounds/spacemusic.au audio file. 4. Display the on-line manual (man) page for the ls command. 5. Display the on-line manual pages for the passwd command and the passwd file. 6. Find the on-line manual page that describes how to clear the terminal screen (use the keyword “clear”). 7. Display the Help subpanel and determine whether AnswerBook2 has been made available on your system. 8. If you do have AnswerBook2, invoke it from the subpanel and look through the Solaris CDE User’s Guide. 9. When you are finished, close the AnswerBook2 window. 4 Getting Help 4-19 Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services August 1999, Revision D Exercise: Getting Help Workshop Labs Use what you have learned so far in this course to work through the following: 1. Using the Calendar Manager, add an appointment for lunchtime on every Wednesday for the next month. Have the system send you an email message 30 minutes before the appointment and place a reminder on your desktop 10 minutes before the appointment. Use any version of help you need to perform this task. 2. What meaning would an ampersand “&” in the gcos field of a password file entry carry for the system? 4 4-20 Fundamentals of Solaris 7 Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services August 1999, Revision D Exercise: Getting Help Exercise Summary Discussion – Take a few minutes to discuss what experiences, issues, or discoveries you had during the lab exercises. ✓ Manage the discussion here based on the time allowed for this module, which was given in the “About This Course” module. If you find you do not have time to spend on discussion, then just highlight the key concepts students should have learned from the lab exercise. ● Experiences ✓ Ask students what their overall experiences with this exercise have been. You might want to go over any trouble spots or especially confusing areas at this time. ● Interpretations ✓ Ask students to interpret what they observed during any aspects of this exercise. ● Conclusions ✓ Have students articulate any conclusions they reached as a result of this exercise experience. ● Applications ✓ Explore with students how they might apply what they learned in this exercise to situations at their workplace. 4 Getting Help 4-21 Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services August 1999, Revision D Exercise: Getting Help Exercise Solutions 4. Display the on-line manual (man) page for the ls command. man ls 5. Display the on-line manual pages for the passwd command and the passwd file. man passwd man -s 4 passwd 6. Find the on-line manual page that describes how to clear the terminal screen (use the keyword “clear”). man -k clear 4 4-22 Fundamentals of Solaris 7 Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services August 1999, Revision D Check Your Progress Before continuing on to the next module, check that you are able to accomplish or answer the following: ❑ Describe how to obtain help from the Front Panel ❑ Describe how to obtain application-specific help ❑ Invoke the Help Viewer from the Front Panel ❑ Invoke help from an application window ❑ Display on-line manual pages, including different sections of the manual ❑ Search the on-line manual pages by keyword 4 Getting Help 4-23 Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services August 1999, Revision D Think Beyond Which type of help would you be most likely to use? Would this change depend on what you needed help on? [...]... drwxr-xr-x drwxr-xr-x drwxr-xr-x -rw-r r-$  1 1 5 4 3 3 1 user2 user2 user2 user2 user2 user2 user2 staff staff staff staff staff staff staff 320Dec 368Dec 512Dec 512Dec 512Dec 512Dec 0Dec 7 7 4 4 4 4 2 11 :43 11 :45 13 :43 13:36 13 :44 13 :44 09:05 dante dante_1 dir1 dir2 dir3 dir4 file1 total 8 indicates the number of 512-byte blocks used at this level of the directory structure This command provides the... /home/user2/dir1/coffees root directory Delimiters Figure 5-2 5 -4 Pathname With Delimiters Fundamentals of Solaris 7 Copyright 1999 Sun Microsystems, Inc All Rights Reserved Enterprise Services August 1999, Revision D 5 Notes  The concept of pathnames is critical to the student s understanding of how to access files in the file structure Pathnames identify every file in the file structure  Briefly describe the Solaris. .. [pathname[s]] 5-18 Fundamentals of Solaris 7 Copyright 1999 Sun Microsystems, Inc All Rights Reserved Enterprise Services August 1999, Revision D 5 Using the ls Command Listing the Contents of a Directory $ cd $ pwd /home/user2 $ $ ls dante dante_1 $ dir1 dir2 dir3 dir4 file1 file2 file3 practice file4 user4 user5 $ ls dir1 coffees fruit trees $ $ ls /var/mail user1 user2 user3 $  Have the students try... Recursive generally refers to the contents of a directory and all of its subdirectories 5-22 Fundamentals of Solaris 7 Copyright 1999 Sun Microsystems, Inc All Rights Reserved Enterprise Services August 1999, Revision D 5 Metacharacters Metacharacters are keyboard characters with special meaning to the shell They are a powerful feature of any shell A general definition of a metacharacter is any keyboard character... the leading dot on a hidden file 5-26 Fundamentals of Solaris 7 Copyright 1999 Sun Microsystems, Inc All Rights Reserved Enterprise Services August 1999, Revision D 5 Metacharacters Question Mark Examples $ ls dante dante_1 dir1 dir2 dir3 dir4 file1 file2 file3 file4 fruit fruit2 practice $ ls dir? dir1: coffees fruit trees dir2: beans notes recipes dir3: planets dir4: flowers $ The following example... Copyright 1999 Sun Microsystems, Inc All Rights Reserved Enterprise Services August 1999, Revision D 5 Displaying the Current Directory Using the pwd Command Remembering which directory you are currently working in is often difficult Use the pwd (print working directory) command to display the absolute pathname of your current directory Command Format pwd 5- 14 Fundamentals of Solaris 7 Copyright 1999 Sun Microsystems,... search pattern 5-28 Fundamentals of Solaris 7 Copyright 1999 Sun Microsystems, Inc All Rights Reserved Enterprise Services August 1999, Revision D 5 Metacharacters Square Brackets Examples $ ls [b-f]* dante dir1 dante_1 dir2 $ $ ls [af]* file1 file2 dir3 dir4 file3 file1 file2 file4 file3 file4 fruit fruit fruit2 practice fruit2 $ Accessing Files and Directories 5-29 Copyright 1999 Sun Microsystems,... Accessing Files and Directories 5-23 Copyright 1999 Sun Microsystems, Inc All Rights Reserved Enterprise Services August 1999, Revision D 5 Metacharacters Asterisk The asterisk (*) represents zero or more characters, except the leading dot on a hidden file The asterisk is often referred to as a wildcard character 5- 24 Fundamentals of Solaris 7 Copyright 1999 Sun Microsystems, Inc All Rights Reserved Enterprise... other 512 Dec 9 11:10 coffees other 512 Dec 9 11:10 fruit other 512 Dec 9 11:10 trees other 512 Dec 4 13 :43 dir1 Use ls -R to display the contents of a directory and all of its subdirectories Displaying a Recursive Listing $ pwd /home/user2 $ ls -R dir1 coffees fruit trees dir1/coffees: beans nuts dir1/fruit: dir1/trees: Note – The R (or sometimes r) option is commonly used with many UNIX commands... directories Fundamentals of Solaris 7 Copyright 1999 Sun Microsystems, Inc All Rights Reserved Enterprise Services August 1999, Revision D 5 Pathnames Absolute Pathname Refer to Figure 5-1 on page 5-3 for a visual representation of the following pathnames: q Absolute pathname to user2 /home/user2 q Absolute pathname to dir1 /home/user2/dir1 q Absolute pathname to coffees /home/user2/dir1/coffees Accessing . version of help you need to perform this task. 2. What meaning would an ampersand “&” in the gcos field of a password file entry carry for the system? 4 4-20 Fundamentals of Solaris 7 Copyright. Structure user2 dir1 dir2 dir3 dir4 practice file1 file4 fruit2 file3 fruit file2 dante_1 dante trees fruit coffees beans nuts recipes beans notes planets mars pluto flowers home / 5 5 -4 Fundamentals of Solaris 7 Copyright 1999 Sun Microsystems, Inc. All Rights Reserved how to clear the terminal screen (use the keyword “clear”). man -k clear 4 4-22 Fundamentals of Solaris 7 Copyright 1999 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services August 1999,

Ngày đăng: 24/07/2014, 02:20

Từ khóa liên quan

Tài liệu cùng người dùng

Tài liệu liên quan