AIX学习笔记(一)

121.8.131.125

user:tguser
pw: ****
--管理74机器,权限root
ssh [email protected]
pw:***

登陆成功如:
login as: tguser
Access denied
Using keyboard-interactive authentication.
Password:
Last login: Wed Sep 14 13:07:05 2011 from 117.11.227.91
tguser@localhost:~> ssh [email protected]
The authenticity of host '192.168.0.74 (192.168.0.74)' can't be established.
RSA key fingerprint is 5b:b0:d8:1c:99:00:dd:f6:2f:67:8d:7d:5d:6e:c2:b8.
Are you sure you want to continue connecting (yes/no)? yes
Failed to add the host to the list of known hosts (/home/tguser/.ssh/known_hosts).
[email protected]'s password:
Last unsuccessful login: Sat Oct 29 09:45:06 GMT+08:00 2011 on ssh from 192.168.0.150
Last login: Sat Oct 29 09:46:00 GMT+08:00 2011 on /dev/pts/13 from 192.168.0.150
*******************************************************************************
*                                                                             *
*                                                                             *
*  Welcome to AIX Version 6.1!                                                *
*                                                                             *
*                                                                             *
*  Please see the README file in /usr/lpp/bos for information pertinent to    *
*  this release of the AIX Operating System.                                  *
*                                                                             *
*                                                                             *
*******************************************************************************


命令格式 command format
command option(s) argument(s)
如:ls -s /dev

命令:
To Log out:
exit 退出到 tguser

ls 列出某一目录下的清单
ls /bin/*sh
一般UNIX指令都存放在bin目录下

The data and cal commands(查看日期)
# date
Sat Oct 29 10:12:51 GMT+08:00 2011

echo
将123写入到某目录的文件
echo 123>> /tmp/tianjin/fl
>>追加写入
>覆盖写入

cat 查看某一目录下文件的内容
如 cat /tmp/tianjian/fl

who 有谁登陆了系统
who am i 我已什么用户登陆的

su 切换用户
su -fred 切换到fred用户

快捷键
ctrl+c 打断当前命令的执行
ctrl+s 挂起命令
ctrl+d 恢复被ctrl+s的命令

获得相关文档
获得who命令的相关文档
man who

以某一个关键自搜索文档
搜索print的文档
man -k print

查看当前所在目录
pwd

建立目录
mkdir
建立目录aa
mkdir \aa
建立所有目录
mkdir -p \ss\dd\s

创建零长度的文件
创建两个文件 myfile1 myfile2
touch myfile1 myfile2

创建一个文件连接(指向同一个i节点)
创建一个连接manuals 使其指向 man_file
ln man_file manuals

创建一个文件符号连接(指向不同i节点)
创建一个连接manuals 使其指向 man_file
ln -s man_file manuals
符号连接可以对目录连接,指向不同的i节点

猜你喜欢

转载自i5land.iteye.com/blog/1222453
AIX