免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1410 | 回复: 0
打印 上一主题 下一主题

AIX学习笔记(一) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-10-29 17:24 |只看该作者 |倒序浏览
AIX学习笔记(一)




登陆成功如:
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 root@192.168.0.74
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).
root@192.168.0.74'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节点
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP