已阅读5页,还剩15页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Course materials may not be reproduced in whole or in part without the prior written permission of IBM. 5.0 4.1 Unit 2 Using the System Copyright IBM Corporation 2008 Unit Objectives After completing this unit, you should be able to: Log in and out of the system State the structure of AIX commands Execute basic AIX commands Use AIX commands to communicate with other users Copyright IBM Corporation 2008 Logging In and Out lTo Log in: lTo Log out: login: team01 team01s Password: (the password does not appear) $ $ (or) $ exit(or) $ logout login: Copyright IBM Corporation 2008 Passwords lCreating or Changing: $ passwd Changing password for “team01“ team01s Old password: team01s New password: Enter the new password again: $ Copyright IBM Corporation 2008 Command Format AIX commands have the following format: $ command option(s) argument(s) $ ls $ ls l $ ls /dev $ ls l /dev Copyright IBM Corporation 2008 THERE ARE EXCEPTIONS! Command Format Examples WRONG: 1. Separation: $ mail - f newmail $ who-u 2. Order: $ mail newmail -f $ team01 mail $ -u who 3. Multiple Options: $ who -m-u $ who -m u 4. Multiple Arguments: $ mail team01team02 RIGHT: 1. Separation: $ mail -f newmail $ who -u 2. Order: $ mail -f newmail $ mail team01 $ who -u 3. Multiple Options: $ who -m -u $ who -mu 4. Multiple Arguments: $ mail team01 team02 Copyright IBM Corporation 2008 The date and cal Commands lChecking the date: lLooking at a month: lLooking at a year: $ date Wed Nov 14 10:15:00 GMT 2007 $ $ cal 1 2003 January 2003 Sun Mon Tue Wed Thu Fri Sat 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 $ cal 2007 Copyright IBM Corporation 2008 The clear, echo, and banner Commands lclear: Clears the terminal screen lecho: Writes what follows to the screen lbanner: Writes character strings in large letters to the screen $ clear $ echo Lunch is at 12:00 Lunch is at 12:00 $ $ banner Hello Copyright IBM Corporation 2008 Activity: Questions and Answers 1Whats wrong with the following commands? $ du -s k_ $ df-k _ $ du -a-k_ 2Which command . . changes your password? _ . clears the screen? _ . prints out the current system date? _ . exits the current shell? _ Copyright IBM Corporation 2008 The who and finger Commands lFinding who is on the system: lFinding who you are: lDisplaying information about the users currently logged on: $ who rootlft0 Sept 4 14:29 team01pts/0Sept 4 17:21 $ who am i team01pts/0Sept 4 17:21 $ whoami team01 $ finger team02 Login name: team02 Directory: /home/team02Shell: /usr/bin/ksh On since Mar 04 16:17:10 on tty3 No Plan. Copyright IBM Corporation 2008 Sending Mail $ mail team01 Subject:Meeting There will be a brief announcement meeting today in room 602 at noon. Cc: $ $ mail team20sys2 Subject: Dont Forget! Dont forget about the meeting today! Cc: $ Copyright IBM Corporation 2008 Receiving Mail YOU HAVE NEW MAIL $ mail Mail 5.2 UCB AIX5.X Type ? for help “/var/spool/mail/team01“: 2 messages 1 new U 1 team05 Tue Jan 7 10:50 10/267 “Hello !“ N 2 team02 Wed Jan 8 11:25 16/311 “Meeting“ ? t 2 From team02 Wed Jan 8 11:25 2003 Date: Wed 8 Jan 2003 11:25 From: team02 To: team01 Subject: Meeting Cc: There will be a brief announcement meeting today in room 602 at noon. ? d(Delete message) ? q(Quit mail command) Copyright IBM Corporation 2008 The write and wall Commands lSend messages to other users on a system write provides conversation-like communication with another logged-in user. Each user alternatively sends and receives messages. The wall command writes to all terminals. This is useful to notify all users of a system event: $ write team01 (or) $ write sarahmoon $ wall The system will be inactive from 10pm today. Broadcast message from team01sys1 (pts/1) at 15:11:58 The system will be inactive from 10pm today. $ Copyright IBM Corporation 2008 $ talk fred (user john requests the connection) (to accept the invitation fred enters:) talk with Another User Copyright IBM Corporation 2008 mesg lThe mesg command controls whether other users on the system can send messages to you: team01$ mesg The current status is y. team01$ mesg n team01$ team02$ write team01 write: 0803-031 Permission denied. team02$ Copyright IBM Corporation 2008 Corrects mistakes Terminates the current command and returns to the shell End of transmission or end of file Temporarily stops output to the screen Resumes output (stopped by Ctrl-s) Erases the entire line Keyboard Tips Copyright IBM Corporation 2008 Checkpoint What is the correct command syntax in AIX? $ mail newmail f $ mail f newmail $ -f mail $ mail -f newmail What command would you use to send mail items? What are other commands that can be used to communicate with other users? What output would you expect from the following command: cal 8? Which command would you use to find out when a particular user logged in? $ who am i $ who $ finger everyone $ finger username Copyright IBM Corporation 2008 Checkpoint Solutions What is the correct command syntax in AIX? $ mail newmail f $ mail f newmail $ -f mail $ mail -f newmail What command would you use to send mail items? mail username What are other commands that can be used to communicate with other users? talk, write, and wall What output would you expect from the following command: cal 8? The calendar for the year 8 AD Which command would you use to find out when a particular user logged in? $ who am i $ who $ finger everyone $ finger username Copyright IBM Corporation 2008 Exercise: Using The System Copyright IBM Corporation 2008 Unit Summary AIX commands can
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 黑龙江省2026年全国成人高等学校招生统一考试医学综合训练题及答案
- 高级统计师资格考试(高级统计实务与案例分析)试题库及答案(2026年山西大同市)
- 仓库保管员测试试题库及答案
- 2026年西藏自治区专业技术人员职称业务考试(环境监测)全真模拟试题及答案
- 2026年近期口腔考试题及答案
- 福建中小学生安全知识网络竞赛题库及答案
- 2026年医疗纠纷及医疗风险防范培训试题及答案
- 2026年高级统计师资格考试(高级统计实务与案例分析)试题库及答案(辽宁凌源)
- 时区换算试题及答案解析
- 《抗菌药物临床合理应用》知识培训试题及答案
- 电力工程施工现场环境保护措施
- 福建泉州市2025-2026学年下学期期末高二数学参考试题答案
- 九江市液化石油气公司九江经营分公司2026年面向社会公开招聘工作人员【13人】笔试参考题库及答案详解
- 2026年6月成都兴城投资集团有限公司成都蓉城城市管理服务有限公司校园招聘11人笔试题库附完整答案详解【必刷】
- 2026广东广州花都汽车城集团有限公司第一次招聘6人参考题库【综合卷】附答案详解
- 永定河流域投资有限公司招聘笔试题库2026
- 2026国家中铝国际工程股份有限公司纪委工作部(巡察办公室)副主任岗位竞争上岗1人笔试历年难易错考点试卷带答案解析
- 太原市2026届小学六年级小升初英语模拟试卷2
- 潍坊高密市人民医院招聘考试真题2025
- 2026年安全生产月100张看图找隐患详解(可编辑版)
- 精装修成品保护施工方案与措施
评论
0/150
提交评论