Sie sind auf Seite 1von 3

Lab Exercise Chapter 1 Introduction to AIX What This Exercise Is About: - This exercise provides practice in AIX command

syntax and in using basic commands What You Should Be Able to Do: After completing this exercise you should be able to do the following: - Log in and log off the AIX system and change passwords - Execute basic commands - Use keyboard control keys to control command line output Introduction Special Instructions: To correct a typographical error on the command line, use the Backspace key. To execute commands on the command line, use one of the following keys: - On the graphics keyboard: - On the ASCII Keyboard: Logging In and Changing Passwords: 1. Log in to the system with the user name and password provided by instructor. Login: team01 Password: team01 (The password you typed is not displayed) The first time you log in with a new user ID, the system prompts you to change your password, as follows: team01s Password: 3004-610 Your are required to change your password. Please choose a new one. team01s New password: Enter new password again: new password new password Enter key Return key

2. For further practice changing passwords, change your current password to a password that you would like to use for the remainder of this laboratory exercise.

$ passwd Changing password for team01 team01s Old password: New password: Enter the new password again: old password your new password your new password

3. Log out and log in again to verify that the password has been set correctly. - To log out, enter the following: $ exit - To log in again, enter your user ID and password at the log in prompt. Basic Commands: 1. Display the system date. $ date 2. Display a count of the number of lines in a file named /etc/passwd $ wc l /etc/passwd 3. Display the whole calendar for the year 2004 $ cal 2004 4. Display the month of August for the year 1999 $ cal 8 1999 With the cal command, use the full four digits of the year. If you typed 99 instead of 1999, the system would display a calendar for the year 99 in the first century. 5. Check who is currently logged in on your system and when that person logged in. $ who OR $ finger team01 6. Display your login name.

$ whoami 7. Use a banner to display the message OUT TO LUNCH $ banner OUT TO LUNCH 8. Use the echo command to write the character string OUT TO LUNCH to your display. $ echo OUT TO LUNCH 9. Clear your screen $ clear Keyboard Tips: To get some practice temporarily stopping, starting, and terminating the scrolling of command output, use the banner command to banner the letters of the alphabet in order to generate multiple lines of output. 1. Using banner, display the alphabet separating each character with a space. As output is scrolling to your display, temporarily stop the output. Resume the scrolling. $ banner a b c d e f g h I j k l m n o p q r s t u v w x y z <Ctrl+s> (temporarily stops scrolling) <Ctrl+q> (resumes scrolling) <Ctrl+c> (terminates the current command) 2. Repeat the banner command used in the previous step, typing only the first five letters of the alphabet, but DO NOT press Enter. Erase your input using <Ctrl+s>. Now have the banner command display the phrase END OF EXERCISE. This time, if you make a typing mistake while keying this command, use the Backspace key to correct the command line. $ banner a b c d e $ <Ctrl+u> $ banner END OF EXERCISE 3. Log off the system $ <Ctrl+d> End of Exercise

Das könnte Ihnen auch gefallen