---
title: "AIX笔试题"
author: "onlysomeone"
date: "2012-04-18T23:05:31Z"
tags: []
categories: ["操作系统"]
slug: "aix"
draft: false
lastmod: "2012-04-18T23:05:31Z"
id: 1489924
url: "https://onlysomeone.iteye.com/blog/1489924"
---

1.	如何使一个脚本my.sh以后台方式运行，并且即使执行脚本的窗口登出/断开也不会有影响？
A.	$ my.sh &
B.	$ my.sh & &
C.	$ nohup my.sh
D.	$ nohup my.sh &
2.	要显示当前目录中tar文件的内容，应该使用哪个命令？
A.	tar -xjvf filename.tar
B.	tar -tvf filename.tar
C.	tar -xvf filename.tar
D.	tar -cvf filename.tar
3.	某系统用户能够使用cd 命令进入某目录,但使用ls不能查看该目录下的文件,该用户对目录的权限
A.	rwx
B.	r-x
C.	--x
D.	rw-
4.	AIX下，用户的登录SHELL执行顺序依次为：
A.	1、/etc/environment
2、/etc/profile
3、$HOME/.profile 
B.	1、$HOME/.profile
2、/etc/profile
3、/etc/environment
C.	1、/etc/profile
2、/etc/environment
3、$HOME/.profile
D.	1、/etc/environment
2、$HOME/.profile
3、/etc/profile 
5.	SHELL脚本中使用的$#变量代表
A.	shell脚本参数数目
B.	上一次执行的返回吗
C.	shell命令名称
D.	shell脚本参数值
6.	使用命令vmstat监控系统状态，下面那种情况说明是cpu瓶颈
A.	wa的值大于80
B.	id的值大于60
C.	us和sy的和始终是99和100
D.	id和wa的和始终是99和100
7.	需要查找当前目录（含子目录）下所有大于1M的文件，并列出文件修改时间、用户、权限、大小等属性，下面哪项能实现要求：
A.	find . -size +2000 -exec ls -l {} \;
B.	find . -size +2000 | ls -ltr  
C.	find . -size > 1024000c -exec ls -l {} \;
D.	find . -size +1024000c | ls -ltr  
8.	下面哪条语句可以统计出当前用户启动的非核心进程数：
A.	ps -ef|grep $USER|wc
B.	ps -ef|grep  $USER |wc -l
C.	ps -kf| grep  $USER |wc -l
D.	ps -kf| grep  $USER |wc