daimoway
作者daimoway·2012-11-26 11:10
软件开发工程师·dearwears

AIX基础笔记(1) Using The System

字数 17434阅读 3716评论 0赞 0

*To Log in:

login: root

root's Password:(the password does not appear)

 

*To Log out:

# <Ctrl-d>  (or)

# exit          (or)

# logout

 

*Creating or Changing the Password:

# passwd root

Changing password for "root"

root's New password:

Enter the new password again:

 

*Command Format

# ls                               just command

# ls -l                        command and option

# ls /usr                    command and argument

# ls -l /usr

 

*The date and cal Commands

# date

Wed Mar 21 16:07:02 GMT+08:00 2012

# cal 3 2012

        March 2012

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 2012

 

 

 

                                2012

 

          January                     February

Sun Mon Tue Wed Thu Fri Sat  Sun Mon Tue Wed Thu Fri Sat

 1   2   3   4   5   6   7                1   2   3   4

 8   9  10  11  12  13  14    5   6   7   8   9  10  11

15  16  17  18  19  20  21   12  13  14  15  16  17  18

22  23  24  25  26  27  28   19  20  21  22  23  24  25

29  30  31                   26  27  28  29

 

           March                        April

Sun Mon Tue Wed Thu Fri Sat  Sun Mon Tue Wed Thu Fri Sat

                 1   2   3    1   2   3   4   5   6   7

 4   5   6   7   8   9  10    8   9  10  11  12  13  14

11  12  13  14  15  16  17   15  16  17  18  19  20  21

18  19  20  21  22  23  24   22  23  24  25  26  27  28

25  26  27  28  29  30  31   29  30

 

            May                         June

Sun Mon Tue Wed Thu Fri Sat  Sun Mon Tue Wed Thu Fri Sat

         1   2   3   4   5                        1   2

 6   7   8   9  10  11  12    3   4   5   6   7   8   9

13  14  15  16  17  18  19   10  11  12  13  14  15  16

20  21  22  23  24  25  26   17  18  19  20  21  22  23

27  28  29  30  31           24  25  26  27  28  29  30

 

           July                        August

Sun Mon Tue Wed Thu Fri Sat  Sun Mon Tue Wed Thu Fri Sat

 1   2   3   4   5   6   7                1   2   3   4

 8   9  10  11  12  13  14    5   6   7   8   9  10  11

15  16  17  18  19  20  21   12  13  14  15  16  17  18

22  23  24  25  26  27  28   19  20  21  22  23  24  25

29  30  31                   26  27  28  29  30  31

 

         September                     October

Sun Mon Tue Wed Thu Fri Sat  Sun Mon Tue Wed Thu Fri Sat

                         1        1   2   3   4   5   6

 2   3   4   5   6   7   8    7   8   9  10  11  12  13

 9  10  11  12  13  14  15   14  15  16  17  18  19  20

16  17  18  19  20  21  22   21  22  23  24  25  26  27

23  24  25  26  27  28  29   28  29  30  31

30

         November                     December

Sun Mon Tue Wed Thu Fri Sat  Sun Mon Tue Wed Thu Fri Sat

                 1   2   3                            1

 4   5   6   7   8   9  10    2   3   4   5   6   7   8

11  12  13  14  15  16  17    9  10  11  12  13  14  15

18  19  20  21  22  23  24   16  17  18  19  20  21  22

25  26  27  28  29  30       23  24  25  26  27  28  29

                             30  31

 

*The clear,echo,and banner Commands

# clear

# echo Lunch is at 12:00

Lunch is at 12:00

# banner Hello

#     #

#     #  ######  #       #        ####

#     #  #       #       #       #    #

#######  #####   #       #       #    #

#     #  #       #       #       #    #

#     #  #       #       #       #    #

#     #  ######  ######  ######   ####

 

# print Lunch is at 12:00

Lunch is at 12:00

 

*The who and finger Commands

# who

root        pts/0       Mar 21 15:52     (172.19.1.246)

# who am i

root        pts/0       Mar 21 15:52     (172.19.1.246)

# whoami

root

# finger root

Login name: root

Directory: /                            Shell: /usr/bin/ksh

On since Mar 21 15:52:30 on pts/0

    from 172.19.1.246

No Plan.

# who -u

root        pts/0       Mar 21 15:52      .    14090462  (172.19.1.246)

# who -m

root        pts/0       Mar 21 15:52     (172.19.1.246)

# who -mu

root        pts/0       Mar 21 15:52      .    14090462  (172.19.1.246)

 

*Sending Mail

# mail oracle

Subject: Test        //<Enter>

just a test            //<Enter>以换行,然后在新的空行按下<Ctrl-d>以退出编辑

Cc:                              //<Enter>

# mail oracle wcadmin    //若发送给多个用户则每个用户名间以空格分开

Subject: Test

just a test

Cc:

# mail Eclipse@172.19.1.246       //发送到其他系统

Subject: Test

just a test

Cc:

 

*Receiving Mail

# mail

Mail [5.2 UCB] [AIX 5.X]  Type ? for help.

"/var/spool/mail/root": 16 messages 16 new

>N  1 MAILER-DAEMON     Fri Jan  6 09:08 356/8756 "Postmaster notify: see trans"

 N  2 esaadmin          Sun Jan  8 03:01  15/739  "Electronic Service Agent not"

 N  3 MAILER-DAEMON     Mon Jan  9 09:39 356/8757 "Postmaster notify: see trans"

 N  4 MAILER-DAEMON     Tue Jan 10 10:53 362/9660 "Postmaster notify: see trans"

 N  5 MAILER-DAEMON     Tue Jan 10 10:53 362/9659 "Postmaster notify: see trans"

 N  6 MAILER-DAEMON     Tue Jan 10 17:22 356/8769 "Postmaster notify: see trans"

 N  7 esaadmin          Sun Jan 15 03:01  15/741  "Electronic Service Agent not"

 N  8 esaadmin          Sun Feb  5 03:01  15/739  "Electronic Service Agent not"

 N  9 esaadmin          Sun Feb 12 03:01  15/741  "Electronic Service Agent not"

 N 10 esaadmin          Sun Feb 19 03:01  15/741  "Electronic Service Agent not"

 N 11 esaadmin          Sun Feb 26 03:01  15/741  "Electronic Service Agent not"

 N 12 esaadmin          Sun Mar  4 03:01  15/739  "Electronic Service Agent not"

 N 13 MAILER-DAEMON     Thu Mar  8 16:58 356/8733 "Postmaster notify: see trans"

 N 14 esaadmin          Sun Mar 11 03:00  15/741  "Electronic Service Agent not"

 N 15 esaadmin          Sun Mar 18 03:01  15/741  "Electronic Service Agent not"

 N 16 MAILER-DAEMON     Wed Mar 21 16:21  59/1754 "Returned mail: see transcrip"

? t 2

Message  2:

From esaadmin Sun Jan  8 03:01:00 2012

Date: Sun, 8 Jan 2012 03:01:00 +0800

From: esaadmin

To: root

Subject: Electronic Service Agent not activated

 

Electronic Service Agent has not been activated.  To activate Electronic Service Agent, do the following:  From the SMIT main menu, select Electronic Service Agent, then select Configure Electronic Service Agent.

 

For information about Electronic Service Agent, including the benefits of activating it, see the following:

http://publib.boulder.ibm.com/infocenter/eserver/v1r2/topic/eicbd/eicbdkickoff.htm

 

? d                 //Delete message

? d 1

? q                 //Quit mail command                 

Held 15 messages in /var/spool/mail/root

 

*Controlling the mail subsystem

Some of the commands that can be used at the ? prompt are:

d            delete messages

m           forward messages

R            send reply to sender of messages in the queue

q            exit mail and leave messages in the queue

s            append messages to a file

t            display a message

x            exit mail and discard all changes to the queue

 

*The write and wall Commands

# write wcadmin             //write to another user

just a test           //<Ctrl-d> 退出

# wall just a test             //write to all users

 

 

Broadcast message from root@plmworker (pts/0) at 16:49:17 ...

 

just a test

# write <username>@<hostname>    //write to users on other systems

 

*talk with Another User

# talk wcadmin     (or)

# talk wcadmin@plmworker

对方同意(如对方敲入命令talk root以同意)则开始对话,<Ctrl-c>退出对话

 

*Keyboard Tips

<Backspace>     Corrects mistakes

<Ctrl-c>              Terminates the current command and returns to the shell

<Ctrl-d>              End of transmission or end of file

<Ctrl-s>               Temporarily stops output to the screen

<Ctrl-q>               Resumes output(stopped by Ctrl-s)

<Ctrl-u>               Erases the entire line


如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!

0

添加新评论0 条评论

Ctrl+Enter 发表

作者其他文章

相关文章

相关问题

相关资料

X社区推广