IBMSHELL英文试题

合集下载

ibm考试试题及答案

ibm考试试题及答案

ibm考试试题及答案IBM考试试题及答案一、单选题(每题2分,共20分)1. IBM公司的全称是什么?A. International Business MachinesB. International Business Machines CorporationC. International Business Machines GroupD. International Business Machines Division答案:B2. IBM的总部位于哪个国家?A. 美国B. 英国C. 中国D. 德国答案:A3. IBM在哪个领域最为知名?A. 食品工业B. 航空航天C. 信息技术D. 汽车制造答案:C4. IBM的创始人是谁?A. 托马斯·沃森B. 比尔·盖茨C. 史蒂夫·乔布斯D. 拉里·埃里森答案:A5. IBM的“智慧地球”概念中,不包括以下哪项技术?A. 物联网B. 大数据C. 云计算D. 传统农业答案:D6. IBM的人工智能系统Watson主要用于哪个领域?A. 医疗健康B. 金融服务C. 教育D. 娱乐答案:A7. IBM的区块链技术主要应用于以下哪个领域?A. 供应链管理B. 游戏开发C. 社交媒体D. 电影制作答案:A8. IBM的云计算服务中,哪个是提供基础设施即服务(IaaS)的平台?A. BluemixB. SoftLayerC. WatsonD. Power Systems答案:B9. IBM的哪种存储技术被认为是下一代存储技术?A. 磁带存储B. 硬盘存储C. 固态存储D. 光盘存储答案:C10. IBM的哪种服务器产品线以高性能计算而闻名?A. System zB. Power SystemsC. xSeriesD. BladeCenter答案:B二、多选题(每题3分,共15分)11. IBM的业务领域包括以下哪些?A. 硬件制造B. 软件开发C. 咨询服务D. 金融服务答案:A, B, C12. IBM在以下哪些方面有显著的技术贡献?A. 量子计算B. 人工智能C. 网络安全D. 环境科学答案:A, B, C13. IBM的以下哪些产品或服务与云计算相关?A. BluemixB. WatsonC. SoftLayerD. Power Systems答案:A, C14. IBM的以下哪些技术与大数据分析相关?A. HadoopB. SparkC. DB2D. AIX答案:A, B, C15. IBM的以下哪些技术与网络安全相关?A. QRadarB. Security IntelligenceC. GuardiumD. Tivoli答案:A, B, C, D三、判断题(每题1分,共10分)16. IBM是全球最大的信息技术和业务解决方案公司之一。

shell复习题_4

shell复习题_4

shell复习题_4一、填空题1.Linux 内核引导时,从文件/etc/fstab中读取要加载的文件系统。

2.Linux 文件系统中每个文件用i节点来标识。

-?3.链接分为:硬链接和符号链接。

4.超级块包含了i 节点表和空闲块表等重要的文件系统信息。

5.某文件的权限为:d-rw-_r–_r–,用数值形式表示该权限,则该八进制数为:644 ,该文件属性是目录。

6.安装Linux 系统对硬盘分区时,有两种分区类型:文件系统分区和交换分区。

7.编写的 Shell 程序运行前赋予该脚本文件执行权限。

8.系统交换分区是作为系统虚拟存储器的一块区域。

9.内核分为进程管理系统、内存管理系统、I/O 管理系统和文件管理系统等四个子系统。

10.内核配置是系统管理员在改变系统配置硬件时要进行的重要操作。

11.唯一标识每一个用户的是用户 ID 和用户名。

12.Linux 系统中所有内容都被表示为文件,组织文件的各种方法称为文件系统。

13.vim 编辑器具有 3 种工作模式:常态模式,命令模式和输入模式。

14.可以用ls -al 命令来观察文件的权限,每个文件的权限都用10 位表示,并分为四段,其中第一段占1位,表示文件类型,第二段占3位,表示文件所有者对该文件的权限。

注:15.后三段分别代表文件拥有者的权限,文件所属用户组的权限和其它用户的权限在Linux 系统中, 以文件方式访问设备。

16.进程与程序的区别在于其动态性,动态的产生和终止,从产生到终止进程可以具有的基本状态为:运行态、就绪态和等待态(阻塞态) 。

17.CD-ROM 标准的文件系统类型是 iso9660。

、18.使用 ls 命令时, 列出目录中所有文件,包括以"."开头的文件应使用参数-a。

19.在 Linux 系统中,用来存放系统所需要的配置文件和子目录的目录是/etc。

20.硬连接只能建立对文件链接。

符号链接可以跨不同文件系统创建。

操作系统全英文期中考试题(带答案)

操作系统全英文期中考试题(带答案)

XX大学2011——2012学年第一学期《操作系统》期中考试试题(A)一、选择(每题1分,共20分)1.Which function does the operating system can not complete directly of the following four options? ( b )A.Managing computer's hard drivepile the programC.Virtual memoryD.Delete files2.Considering the function of the operating system, ( b ) must give timely response for the external request within the specified time.A.multiuser time sharing systemB.real-time operating systemC.batch operating systemwork operating system3. A process can transform from waiting state to ready state relying on ( d )A.programmer commandB.system serviceC.waiting for the next time sliceD.wake-up of the 'cooperation' process4.As we all know,the process can be thought of as a program in execution.We can deal with the the problem about ( b ) easier after importing the concept of process.A.exclusive resourcesB.shared resourcesC.executing in orderD.easy to execute5.CPU-scheduling decisions may take place under the following circumstances except which one?(D )A.When a process switches from the running state to the waiting stateB.When a process switches from the running state to the ready stateC.When a process switches from the waiting state to the ready stateD.When a process switches from the ready state to the waiting state6.In the four common CPU scheduling algorithm, Which one is the best choice for the time-sharing system in general?( C )A.FCFS scheduling algorithmB.Priority scheduling algorithmC.Round-robin scheduling algorithmD.Shortest-job-first scheduling algorithm7.If the initial value of semaphore S is 2 in a wait( ) and signal( ) operation,its current value is -1,that means there are ( B ) processes are waiting。

IBM英文面试题

IBM英文面试题

IBM英文面试题(附答案)-题目我想,IBM是无数大学生毕业后梦寐以求的工作单位,不仅能享受良好的待遇,而且能在优秀的企业文化中不断提高自己的能力。

可是,面试这一关就难倒不少求职者,今天给大家准备的是参加过IBM面试的网友总结出来的常考面试题,希望对大家有帮助,面对问题能够对答如流!1.what is oracle.2.what is major differenece oracle8i and oracle9i.4.tell me some thing ur self.5.please tell me about oops.6.what is single inheritance.7.what is multiple inheritance.8.can java support multiple inheritance.9.what is interface.10.what is differenec between abstract class and interface.11.how to u prove that abstrace class cannot instantiate directly.12.what is differenece between string and stringbuffer.13.what is immutable14.how to write a program using sort program.15 how to write a program using unsort program.16.what is legacy.17.what is legacy api18.what is main difference hashmap and hastable19.what is main difference between arraylist and vector.20.what are distributed techonologies.21.what is difference between procedure and functions.22.what is jdbc.23.what are type of drivers.24.what is platfrom independent25.what is awt and swing.26.what is major concepts in oops.27.why u choose mvc-2 architecture.28.what is implicit object.29.how many implicit objects in jspIBM英文面试题(附答案)-答案1. Oracle is an RDBMS product with DDL and DML from a company called Oracle Inc.2. Difference between 8i and 9i is given in the Oracle site3. Question not available4. Something5. oops is Object Oriented Programming6.one class is inherited by only other one class7.One class inheriting more than one class at atime8.No9.Interface has only method declarations but no defn10.In abstract class some methods may contain definition,but in interface every method should be abstract11.As they dont have constructor they cant be instantiated12.Strings are immutable where as string buffer can be modified13.Which cant be changed14-15Both can be done using javascriptThis is for Sortfunction SelectTextSort(obj) { // sort by textvar N=obj.options.length;for (var i=0;i<N-1;i++) {for (var j=i+1;j<N;j++) {if ( obj.options[i].text > obj.options[j].text ) {var i1= (obj.options[i].selected == true ) ? true : falsevar j1= (obj.options[j].selected == true ) ? true : falsevar q1 = obj.options[j].text;var q2 = obj.options[j].value;obj.options[j].text = obj.options[i].text;obj.options[j].value = obj.options[i].value;obj.options[i].text = q1;obj.options[i].value = q2;obj.options[i].selected = (j1 && true ) ? true : falseobj.options[j].selected = (i1 && true ) ? true : false}}}return true}16.legacy is something that is old in terms of technology/ system17. the legacy API is now implemented in a plug-in which is part of the CMS and so is no longer documented here.18.Hash table is synchronised19.V ector is synchronised20.distributed technologies means any technology / s/w program that are having many components in multiple environments that interact with each other depending on the functional requirements and design.21.Fuctions can return value ,procedures cant return value22.Connecting to DB from java program requires JDBC23.type1,2,3,424.A language is said to be platform independent if it can be run on any machine with out modifying code25.A WT are heavy weight components and swings are light weight components26.Abstraction,polymorphism,encapsulation,inheritance27.In MVC-2 controller is servlet rather than JSP which makes it efficient28.Implicit objects are a set of Java objects that the JSP Container makes available to developers in each page29.out,page,session,request,response,application,page context,config。

IBM主机类考试题目

IBM主机类考试题目

IBM主机类考试题目1、IBM server 产品系列有哪些?A. pSeriesB. xSeriesC. iSeriesD. zSeries2、下列对pSeries说法正确的是哪个?A. 用作集成的商用服务器B. 运行功能强大的通用UNIX系统C. 基于Intel构架的服务器D. 宕机时间为零的高可用性的大型服务器3. 下面哪些是smit工具的log文件?A. .smit.logB. .sh_historyC. .smit.scriptD. .profile4、smit管理工具,如何退到上一级菜单?A. F1B. F2C. F3D. F65、smit管理工具,如何暂时推出smit菜单并切换到shell命令状态?A. F2B. F3C. F6D. F96、AIX Version 5.3系统安装完成后,系统第一次启动时,系统管理员看到的第一个界面是哪个?DA. Login promptB. Root shell promptC. Installation AssistantD. Configuration Assistant7、下面哪个命令可以用来验证操作系统是否升级成功?AA. oslevelB. lslpp -h bos.objC. what_fileset -vD. lsattr -Vl bos.rte8、系统从5.1升级到5.3,要求保留系统原有的所有用户和日志信息等文件,用哪种安装方式?CA. New and Complete OverwriteB. Preservation InstallC. Migration Install9. 要安装一个软件包,如何查看安装这个软件包所需的预安装(prerequisite)的软件包?BA. 用lsprereq 命令查看B. 用installp 命令加适当的选项查看C. 查看root 主目录路径下的.toc文件D. 用inutoc 命令去升级.toc 文件10. 下面哪个命令可以显示.nfs.client 软件包的版本号? BA. lsfs .nfs.clientB. lslpp -l .nfs.clientC. lppchk -l .nfs.clientD. installp -ver .nfs.client11. 用哪个命令查看系统启动日志? BA. uptimeB. alogC. shutdownD. oslevel12. 系统启动时,init进程要读取下列哪个文件? AA. /etc/inittabB. /etc/rmtabC. /etc/passwdD. /etc/rc.tcpip13. 系统启动时候,控制台上依次出现五个图标时,需要按哪个键才能进入单用户维护模式?DA. F2B. F3C. F4D. F514. A user is able to get a login prompt for the server Dbut gets a failed login error message when trying tologin with an ID. Which of the following is the mostlikely cause of this problem?A. The hard drive is bad.B. The /home file system is full.C. The server is low on paging space.D. The user has entered an invalid ID or password.15. Which of the following files contains UID, home Adirectory, and shell information?A. /etc/passwdB. /etc/security/userC. /etc/security/environD. /etc/security/passwd16. After completing the installation of the Base AOperating System on one of the servers,thesystem administrator would like for all userswho telnet into this machine to see a specificmessage each time they successfully log in .Which file should be edited to provide thismessage?A. /etc/motdB. /etc/profileC. /etc/environmentD. /etc/security/login.cfg17. 要从一个坏的硬盘上转移数据到一个新的硬盘,下面哪个操作是首先要做的? DA. 把逻辑卷转移到新的硬盘上B. 添加一个新的硬盘到原有的卷组C. 在新硬盘上创建坏硬盘的文件系统的拷贝D. 在新硬盘上创建坏硬盘的逻辑卷的镜像18、下面哪些是对卷组做镜像的正确步骤? A1. extendvg2. mirroring3. syncvg4. set quorum5. mkfscopy6. reorgvgA. 1, 2, 3, 4B. 1, 5, 3, 4C. 1, 2, 4, 6D. 6, 5, 4, 319、hdisk1硬盘要添加到cdvg的卷组,用哪个命令先查看这个硬盘的状态? CA. lsvg cdvgB. chvg cdvgC. lspv hdisk1D. chpv hdisk120、哪个命令查看系统上所有paging spaces的状态信息? AA. lsps -aB. lsps -sC. lsps -lD. lsps -all21、下面哪个描述是错误的? DA. hd4、hd1、hd2是系统默认创建的逻辑卷B. 同一个卷组的不同PV的PP大小必须要一致C. 不同卷组的PP大小可以不一样D. 逻辑卷大小可以动态增大,也可以动态减少E. 一个硬盘(hdisk)只能属于一个VG22. To increase the size of a file system, the system administrator must: CA. Unmount the file system.B. Boot the system into single user mode.C. Have enough free physical partitions within the volume group.D. Back up the file system,change the size,and restore the file system.23. To decrease the size of the /home file system,the system administrator must: DA. Use the chfs command.B. Use the reducefs command.C. Run the defragfs command and then use the reducefs command.D. Back up, delete, redefine, and restore the file system.24. The system administrator has created 20 file Asystems that are set to mount each time thesystem boots. Which of the following is thequickest method to mount these file systems?A. mount -aB. Reboot the system.C. /usr/lib/methods/cfgfsD. Mount each individual file system.25. What step must be taken prior to removing a file system? AA. Unmount the file system.B. Remove the logical volume.C. Delete the data from the file system.D. Remove the NFS export for the file system.26. 修改后/etc/inetd.conf文件后,要使得修改生效,还须执行下面哪个操作? CA. service -s inetdB. restart -s inetdC. refresh -s inetdD. service inetd restart27 、用哪个命令用来结束后台进程? BA. <ctrl+c>B. killC. skulkerD. refresh28. After creating a tar archive on a tape and verifying Athat the backup was successful, a system administratorthen inserts the tape into another machine to access thedata and receives the following error:"Media Read Error - I/O Error"Which of the following is the most likely cause of theerror?A. The blocksize or density setting is incorrect.B. There is a lack of disk space in the root file system.C. The tape is not read/writable.D. There is a bad cable on the tape drive.29. A system administrator would like to restore the Bthird image from a mksysb tape . To position theTape to the correct image , which of the followingcommands should be run?A. lsattrB. tctlC. ffwdD. chdev30. What is the purpose of the -i flag with the mksysb command? DA. It creates/updates the /.fsdata.B. It reports the size of a file in bytes.C. It creates a bootable system backup.D. It creates or updates the /image.data file.31. The marketing group within the Widget Company Bplans to implement a new database to house theirdemographic data. The administrator has requesteda tape drive and an additional disk to support theinstallation of this new database. The IBM hardwareengineer has connected the new equipment,and themachine has been rebooted. Which of the followingCommands should be used to verify the tape deviceis installed correctly?A. lspvB. lsdevC. lstapeD. lsdisk32. Which of the following commands can be used to determine the serial port settings? CA. lscfg -vl ttyXXB. ls -l /dev/ttyXXC. lsattr -El ttyXXD. lsdev -C |grep ttyXX33. A system administrator wishes to determine if Ca newly configured tape drive is correctly addedto the ODM database. Which command would theadministrator use?A. odmshowB. odmaddC. odmgetD. odmcreate34. 给接口添加另一个IP,下面哪个可以实现? CA. smitty chgenetB. smitty add_interfaceC. ifconfig en0 newipaddress netmask netmask aliasD. 无法实现这个操作35. 下面哪个命令用来手工stop and restart TCP/IP有关的进程? BA. Use netstat commandB. Use the SRC utility to stop and restartC. Use the netconfig utility menuD. Issue the rmdev command on the appropriate network adapter36. 当要从CD-ROM安装系统时,系统进入了diagnostics 模式,查看发觉所有设备都连接正确,可能是下面哪个原因? DA. The battery on the machine is badB. The root volume group is corruptC. The low-level debugger is not enabledD. A hardware problem with the CD-ROM37. 新的磁带机线路连接是正确的,但是要用这个磁带机进行备份恢复时,it fails。

IBM英语面试问题.doc

IBM英语面试问题.doc

IBM英语面试问题IBM英语面试问题篇11.what is oracle.2.what is major differenece oracle8i and oracle9i.4.tell me some thing ur self.5.please tell me about oops.6.what is single inheritance.7.what is multiple inheritance.8.can java support multiple inheritance.9.what is interface.10.what is differenec between abstract class and interface.11.how to u prove that abstrace class cannot instantiate directly.12.what is differenece between string and stringbuffer.13.what is immutable14.how to write a program using sort program.15 how to write a program using unsort program.16.what is legacy.17.what is legacy api18.what is main difference hashmap and hastable19.what is main difference between arraylist and vector.20.what are distributed techonologies.21.what is difference between procedure and functions.22.what is jdbc.23.what are type of drivers.24.what is platfrom independent25.what is awt and swing.26.what is major concepts in oops.27.why u choose mvc-2 architecture.28.what is implicit object.29.how many implicit objects in jspIBM英语面试问题篇21. Oracle is an RDBMS product with DDL and DML from a company called Oracle Inc.2. Difference between 8i and 9i is given in the Oracle site3. Question not available4. Something5. oops is Object Oriented Programming6.one class is inherited by only other one class7.One class inheriting more than one class at atime8.No9.Interface has only method declarations but no defn10.In abstract class some methods may contain definition,but in interface every method should be abstract11.As they dont have constructor they cant be instantiated12.Strings are immutable where as string buffer can be modified13.Which cant be changed14-15Both can be done using javascriptThis is for Sortfunction SelectTextSort(obj) { // sort by textvar N=obj.options.length;for (var i=0;ifor (var j=i+1;jif ( obj.options[i].text obj.options[j].text ) {。

2021IBM_L2考试真题模拟及答案(2)

2021IBM_L2考试真题模拟及答案(2)1、对于生产过程中引入的有机溶剂,下面哪种说法正确?()(多选题)A. 应在后续的生产环节给予有效去除B. 正文已明确列有残留溶剂检查的品种,必须对生产过程中引入的有机溶剂依法进行该项目检查C. 未在残留溶剂项下明确列出的有机溶剂,可以不检查D. 未在正文中列有此项检查的各品种,如生产过程中引入或产品中残留有机溶剂,均应按通则残留溶剂测定法检查并应符合相应溶剂的限度规定试题答案:A,B,D2、某客户每天要进行备份的应用多达25个,每个应用需要备份的数据量都不大。

之前采用物理磁带库进行数据备份,配置了2个LTO3的磁带驱动器。

据用户反映,目前存在备份窗口内无法完成备份任务的问题。

在这种情况下,推荐用户怎样解决当前问题?()(单选题)A. 将LTO3磁带驱动器替换为LTO4B. 再增加2个LTO4磁带驱动器C. 增加磁带槽位D. 推荐用户使用虚拟带库提高并行备份任务数试题答案:D3、工艺规程如需更改,应当按照()修订、审核、批准。

(单选题)A. 注册批件B. 相关的操作规程C. 质量要求D. 部门规定试题答案:B4、TS3100支持的最大槽位数为()?(单选题)A. 1个B. 9个C. 24个D. 48个试题答案:C5、文件应当()、条理分明,便于查阅。

(单选题)A. 分类存放B. 编号管理C. 分类发放D. 逐份存放试题答案:A6、在某些情况下,性能确认可与()结合进行。

(多选题)A. 运行确认B. 安装确认C. 工艺验证D. 设备确认试题答案:A,C7、为了避免筛网、冲具污染到生产物料,下列做法正确的是()。

(多选题)A. 不用筛网、冲具进行生产B. 挑选不易脱落的材质C. 应定期更换D. 有相应的保护措施试题答案:B,C,D8、一个客户有一个IO比较敏感,比较耗用缓存的应用,下面哪方面可能对性能影响比较明显?()(单选题)A. 写缓存B. 服务器中的高速缓存C. 磁盘驱动器机械臂D. 磁盘阵列中的高速缓存试题答案:C9、中药饮片生产企业可从下列哪些途径购入中药材?()(多选题)A. 供货商B. 农户C. 药材市场D. 农贸市场试题答案:A,B,C,D10、DS5300最多支持的主机登录数量是()。

shl英文题库

shl英文题库The SHL English Test is a comprehensive assessment designed to evaluate the language proficiency of individuals, particularly in the context of professional and academic settings. It is widely recognized for its ability toaccurately measure an individual's command of the English language, including their reading, writing, listening, and speaking skills.The test consists of various sections, each tailored to assess specific language competencies. For instance, the reading comprehension section presents passages that require test-takers to demonstrate their ability to understand and analyze complex texts. The writing section, on the other hand, evaluates the candidate's ability to construct well-organized and coherent written responses, often in the form of essaysor reports.Listening exercises within the SHL English Test challenge participants to comprehend spoken English, which may include dialogues, lectures, or news broadcasts. This section teststhe ability to grasp the main ideas, details, and inferences from spoken language.Lastly, the speaking component, which may be assessed through recorded responses or in-person interviews, evaluates the fluency, pronunciation, and appropriate use of languagein spoken communication.The SHL English Test is not only a tool for educational institutions to gauge the language readiness of their students but also serves as a valuable resource for employers to ensure that their staff can effectively communicate in a globalized work environment. It is a testament to the test-taker's ability to navigate English-speaking professional and academic spheres with confidence and competence.。

(最新整理)49道shell基础题

(完整)49道shell基础题编辑整理:尊敬的读者朋友们:这里是精品文档编辑中心,本文档内容是由我和我的同事精心编辑整理后发布的,发布之前我们对文中内容进行仔细校对,但是难免会有疏漏的地方,但是任然希望((完整)49道shell基础题)的内容能够给您的工作和学习带来便利。

同时也真诚的希望收到您的建议和反馈,这将是我们进步的源泉,前进的动力。

本文可编辑可修改,如果觉得对您有帮助请收藏以便随时查阅,最后祝您生活愉快业绩进步,以下为(完整)49道shell基础题的全部内容。

一、vi编辑器的使用练习1.请在 /tmp 这个目录下建立一个名为 vitest 的目录;mkdir /tmp/vitest2.进入 vitest 这个目录当中。

cd /tmp/vitest3.将 /etc/man。

config 拷贝到本目录底下;cp /etc/man。

config .4.使用 vi 开启本目录下的 man。

config 这个文件.Vi man。

config5.在 vi 中设定一下行号。

:set nu6.移动到第58行,看到的是什么内容?58G7.移动到第一行,并且向下搜寻一下bzip2 这个字符串,请问他在第几行?1G 然后 /bzip2 在118行8.接着下来,我要将 50 到 100 行之间的 man 改为 MAN ,并且一个一个挑选是否需要修改,如何下达指令?:50,,100s/man/MAN/gc9.修改完之后,突然反悔了,要全部复原,有哪些方法?一直按u,直到回到想要的地方10.我要复制 51 到 60 行这十行的内容,并且贴到最后一行之后;51G 然后10yy 按下G到最后一行然后p即可11.删除 11 到 30 行之间的 20 行;11G 20dd12.将这个文件另存成一个 man.test.config 的文件名;:w man。

test。

config13.去到第 29 行,并且删除 15 个字符;29G 15x14.在第一行新增一行,该行内容输入“I am a student”1G O 然后输入即可15.保存后离开:wq二、文件和目录管理1.查看当前的路径。

shell脚本练习题

shell脚本例子集锦(习题总结)练习一:写一个脚本1.设定变量FILE的值为/etc/passwd2.依次向/etc/passwd中的每个用户问好,并且说出对方的ID是什么形如:(提示:LINE=`wc -l /etc/passwd | cut -d" " -f1`)Hello,root,your UID is 0.3.统计一个有多少个用户答案一:#!/bin/bashfile="/etc/passwd"LINES=`wc -l $file | cut -d" " -f1`for I in `seq 1 $LINES`;douserid=`head -$I $file | tail -1 |cut -d: -f3`username=`head -$I $file | tail -1 |cut -d: -f1`echo "hello $username,your UID is $userid"doneecho "there are $LINES users"答案二:#!/bin/bashfile=/etc/passwdlet num=0for I in `cat $file`;dousername=`echo "$I" | cut -d: -f1`userid=`echo "$I" | cut -d: -f3`echo "Hello,$username,your UID is $userid"num=$[$num+1]doneecho "there are $num users"练习二:写一个脚本1.切换工作目录至/var2.依次向/var目录中的每个文件或子目录问好,形如:(提示:for FILE in /var/*;或for FILE in `ls /var`;)Hello,log3.统计/var目录下共有多个文件,并显示出来答案:#!/bin/bashcd /varlet num=0for I in `ls /var/*`;doecho "hello $I"num=$[$num+1]doneecho "the number of files is $num"练习三:写一个脚本1.设定变量file的值为/etc/passwd2.使用循环读取文件/etc/passwd的第2,4,6,10,13,15行,并显示其内容3.把这些行保存至/tmp/mypasswd文件中答案:#!/bin/bashfile="/etc/passwd"for I in 2 4 6 10 13 15;doexec 3>/tmp/mypasswdline=`head -$I $file | tail -1`echo "$line"echo "$line" >&3exec 3>&-done练习四:写一个脚本传递两个整数给脚本,让脚本分别计算并显示这两个整数的和,差,积,商答案如下:vim test.sh#!/bin/bashecho "first number $1" (表示输出第一个数)echo "second number $2" (表示输出第二个数)echo "$(($1+$2))" (输出两数之和)echo"$[$1-$2]" (输出两数之差)echo"$[$1*$2]" (输出两数之积)echo"$[$1/$2]" (输出两数之商):wq(表示保存并退出vi编辑器)chmod +xtest.sh (给test.sh执行的权限)./test.sh 23 (传递两个参数并执行脚本作业一:写一个脚本:1.创建目录/tmp/scripts2.切换工作目录至此目录中3.复制/etc/pam.d目录至当前目录,并重命名为test4.将当前目录的test及其里面的文件和子目录的属主改为redhat5.将test及其子目录中的文件的其它用户的权限改为没有任何权限答案:#!/bin/bashmkdir -v /tmp/scriptscd /tmp/scriptscp -r /etc/pam.d ./testchown -R redhat ./testchmod -R o=--- ./test作业二:写一个脚本1.显示当前系统日期和时间,而后创建目录/tmp/lstest2.切换工作目录至/tmp/lstest3.创建目录a1d,b56e,6test4.创建空文件xy,x2y,7325.列出当前目录下以a,x或者6开头的文件或目录6.列出当前目录下以字母开头,后跟一个任意数字,而后跟任意长度字符的文件或目录答案:#!/bin/bashdatemkdir -pv /tmp/lstestcd /tmp/lstestmkdir a1d b56e 6testtouch xy x2y 732ls [ax6]*ls [[:alpha:]][[:digit:]]*作业三:写一个脚本添加10个用户user1到user10,但要求只有用户不存在的情况下才能添加答案:#!/bin/bashfor I in `seq 1 10`;docut -d: -f1 /etc/passwd |grep "user$I" 2>>/tmp/etc.err || useradd user$Idone作业四:写一个脚本通过ping命令测试192.168.0.151到192.168.0.254之间的所有主机是否在线如果在线,就显示“ip is up”如果不在线,就显示“ip is down”答案: #!/bin/bashfor I in `seq 151 254`;doping -c1 -w1 192.168.0.$I &>/dev/null && echo "192.168.0.$I is up" || echo "192.168.0.$I is down"done例题:shell1.sh 显示日期和时间。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

IBM/Shell 英文面试题
IBM:
1. Describe your greatest achievement in the past 4-5 years
2. What are your short & long term career objectives What do you think is the most ideal job for you
3. Why do you want to join IBM What do you think you can contributeto IBM
Shell company:
1. How wold your colleagues /classmates describe you in five words Onwhat evidence would they base this assessment.
you are asked to recruit the best graduates for shell, what would you do to attract them What would you do to select them
describe a new activity that you have initiated and implemented. Please highlight your role out.
4. Please describe your outstanding non-academic achievements.
describe any other significant activities you have beeninvolved in including organizing people.
6. Imagine that Shell has found oil in an inland province of China, neara large river. You are responsible for planning how to transport the oil to the coast thousands of miles away. What are the main issue you would consider,and what would you do
Hongkong Bank
1. Please state why you chose to follow these activities and how theyhave contributed to your personal may wish to give details of your role whether anyone else was involved and any difficulties you encountered.
2. Please state how you have benefited from your work experience.
3. How much is your present monthly salary including allowances.
4. Do you need to compensate your present employer if you resign If so, please give details.
5. Other than academic success, what has been your greatest achievement to date What do you see as your personal strength, why
state why the position you have applied for is appropriate for you;Why you have selected HongKong Bank and what your career objectives are.。

相关文档
最新文档