You are on page 1of 8

IBM Open Systems Competency AIX Questions

Training ID from ITS ( The file should have the same name as the training ID with version 0a) Course Name Total "uestions Sim!le "uestions &edium "uestions Com!le( "uestions

AIX Basic !erations #$ %% %' %)

*T+&C *,+Sim!le *"+ -hat AIX stands for. *C+ AT/T IB& 0(ecutive *C+ A!!lication Interface 0(ecutive *C+A!!le International 0(ecutive *C1+Advanced Interactive 0(ecutive *T+&C *,+Sim!le *"+ 2ernel is *C1+A hardware interface *C+ A user interface *C+ A hardware interru!t *C+ A signal *T+&C *,+&edium *"+ If n users have logged3in to the AIX server4 *C+ nl5 one instance of shell caters to the re6uest of all the n users7 *C1+ An instance of shell is created for ever5 logged3in user7 *C+ n8$ instances of shell is created wherein ever5 two users have to share a shell7 *C+ None of these *T+&C *,+&edium *"+ AIX follows *C+ 9C9S C:; Scheduling algorithm *C+ S<9 C:; Scheduling algorithm *C1+ =ound =o>in Scheduling with !riorit5 algorithm *C+ ?=; C:; Scheduling algorithm *T+ &C *,+ &edium *"+ &an !ages of AIX commands are stored in *C1+ 9iles *C+ &emor5 !ages *C+ Swa! area *C+ Shell !rogram

*T+ &C *,+ &edium *"+ apropos command *C+ Dis!la5s the list of Daemons *C1+ Dis!la5s the descri!tion sections of manual !ages in which the s!ecified @e5word occurs *C+ Dis!la5s the details of users who have logged3in in the current session *C+ Changes userAs wor@ing director54 to the director5 s!ecified as argument *T+ &C *,+ &edium *"+ Internal commands are *C+ stored in = & *C+ stored in cache memor5 *C+ files under 8usr8internal director5 *C1+ !resent as !re3defined functions in 8>in8@sh *T+ &C *,+ &edium *"+ A file can have more than one inode num>er *C+ True *C1+ 9alse *T+ &C *,+ Sim!le *"+ A user can initiate and run onl5 one !rocess at a time in AIX *C+ True *C1+ 9alse *T+ &C *,+ &edium *"+ uname command with Ba o!tion *C+ sets the hostname *C1+ dis!la5s details a>out the host s5stem *C+ dis!la5s the user name *C+ None of these *T+ &C *,+ Com!le( *"+ In which of the following o!tions4 source file is a>solutel5 referenced and target file is relativel5 referenced. *C+ c! 78C7sh !rogs *C1+ tar 3cvf 7 DE &08C7!l *C+ cd 8usr8include 7 *C+ mv 8tm!8C DE &0 *T+ &C *,+ Com!le( *"+ Eow do u dis!la5 the total siFe of a director5 in >loc@s *C1+ du 3s *C+ ls 3l

*C+ ls 3= *C+ df *T+ &C *,+ &edium *"+ 9ollowing is the e(tract of s5nta( of Goin command from Info e(!lorer Goin H3a a>cI H3s dddI H3o !!!I 9I?0% 9I?0$ In which section of info e(!lorer will 5ou find more information on the 3a o!tion. *C1+ flags *C+ descri!tion *C+ im!lementation *C+ files *T+ &C *,+ Com!le( *"+ To ena>le an AIX command to use the contents of a file as in!ut4 the command mustJ *C+ >e used as a filter *C+ have the file data formatted *C+ have standard out!ut redirected *C1+ >e ca!a>le of reading from standard in!ut *T+ &C *,+ Com!le( *"+ Kiven the commandJ ls 3l + test4 from which location would standard in!ut >e o>tained. *C+ test *C1+ @e5>oard *C+ standard error *C+ terminal screen *T+ &C *,+ &edium *"+ -hich AIX command would >e used to send mail to the user L>illL. *C1+ mail >ill *C+ mail * >ill *C+ mail + >ill *C+ mail 3u >ill *T+ &C *,+ Sim!le *"+ The vi command4 set showmode4 is used toJ *C+ assign line num>ers *C+ redraw the screen after u!dates *C1+ indicate if insert mode is active *C+ dis!la5 a code for non3!rinta>le characters in the file *T+ &C *,+ &edium *"+ The command gre! 3c LMDL will dis!la5 theJ *C1+ num>er of em!t5 lines *C+ lines that contain a D

*C+ lines that end with a D *C+ lines that >egin with a D *T+ &C *,+ Com!le( *"+ A user who is a mem>er of the grou! salar5 wants to access a file >elonging another user in the salar5 grou!7 This file has !ermissions of N0'7 The user canJ *C+ onl5 read the file7 *C1+ not access the file7 *C+ access the file without an5 restrictions7 *C+ read and write to the file4 >ut not e(ecute the file7 *T+ &C *,+ &edium *"+ -hich 2orn shell command will dis!la5 !rocesses e(ecuting in the >ac@ground. *C+ l! *C+ l!r *C1+ Go>s *C+ l!stat *T+ &C *,+ &edium *"+ Eow to run a command in a new shell. *C+ shell *C+ run *C1+ @sh *C+ newOshell *T+ &C *,+ &edium *"+ In vi editor4 how to search Lone and onl5 oneL. *C1+ 8one and onl5 one *C+ 8one and onl5 one88 *C+ s8one and onl5 one8 *C+ s8 one and onl5 one88 *T+ &C *,+ Sim!le *"+ -hich lists all !rocesses in the &ACEIN0 *C+ !s *C1+ !s 3ef *C+ !s Ball *C+ !s 3a *T+ &C *,+ Sim!le *"+ A file has !erm N))7 Eow to remove the e(ecute !ermission for owner and others. *C+ rm Buo3( *C+ chmod Buo3( *C+ chmod uo1( *C1+ chmod uo3(

*T+ &C *,+ &edium *"+ In the current dir we have an o>Gect LtestL7 Eow to chec@ if it is a su>director5. *C+ ls *C+ li *C1+ cd test *C+ cd 778test *T+ &C *,+ Com!le( *"+ -hich file sets the userPs environment *C+ 8etc87!rofile *C1+ DE &087!rofile *C+ @shrc *C+ 8etc87@shrc *T+ &C *,+ Sim!le *"+ rm 3i , what does it do *C1+ confirms for ever5 file s!ecified *C+ confirms onl5 if there are metacharacters s!ecified *C+ forceful remove *C+ ignore the case of the file name *T+ &C *,+ Sim!le *"+ -hich file designates the !arent director5. *C+ 7 *C1+ 77 *C+ 7!arent *C+ 7O!arent *T+ &C *,+ &edium *"+ -hich file name is the most a!!ro!riate for an AIX8;NIX file. *C+ 3cat39ile *C+ Eorse 9ile *C+ Qe>raPsOfile *C1+ dogO9I?07>ac@u!7old *T+ &C *,+ Com!le( *"+ In a 2orn shell which command would >e used to set the terminal t5!e to ai(term. *C+ env T0=&Rai(term *C+ set DT0=&Rai(term *C1+ e(!ort T0=&Rai(term *C+ e(!ort DT0=&Rai(term

*T+ &C *,+ Com!le( *"+ -hich mail command is used to automaticall5 send a note >ac@ to the originator of an e3mail message. *C1+ r command *C+ f command *C+ 7re!l5 file must e(ist *C+ 7forward file must e(ist *T+ &C *,+ Com!le( *"+ -hich command will dis!la5 all lines in file% that contain the string a>c >ut N T the string (5F. *C1+ gre! 30 La>c/S(5FT file% *C+ gre! a>c file% U gre! 3v (5F file% *C+ gre! Ha>cIHM(5FI file% *C+ gre! 3v (5F La>cL file% *T+ &C *,+ Sim!le *"+ -hich @e5 should >e !ressed in the vi editor to enter te(t3in!ut mode and >egin inserting te(t B09 =0 the cursor !osition. *C+ a *C1+ i *C+ D *C+ o *T+ &C *,+ Com!le( *"+ If the current director5 is 8tm!4 which command will dis!la5 the availa>le file s5stem s!ace in the userPs current director5. *C+ df 7 *C+ du Dtm! *C+ du 7 *C1+ df 8tm! *T+ &C *,+ Com!le( *"+ -hich command will dis!la5 the current wor@ing director5. *C1+ !wd *C+ dosdir *C+ old!wd *C+ echo DDI= *T+ &C *,+ Com!le( *"+ -hich @e5 should >e !ressed in the vi editor to enter te(t3in!ut mode and >egin inserting te(t B09 =0 the cursor !osition. *C+ a *C+ i *C+ D

*C+ o *T+ &C *,+ Com!le( *"+ If the current director5 is 8tm!4 which command will dis!la5 the availa>le file s5stem s!ace in the userPs current director5. *C+ df 7 *C+ du Dtm! *C+ du 7 *C+ df Dtm! *T+ &C *,+ Com!le( *"+ -hich command dis!la5s the total >loc@ usage for all files in a director5. *C+ dc *C+ df *C1+ du 3s *C+ ls 3al *T+ &C *,+ Sim!le *"+ -hich vi command can >e used to co!5 a line of te(t into the te(t >uffer. *C+ i *C+ r *C1+ 55 *C+ cc *T+ &C *,+ Com!le( *"+ -hich command should >e used to !ermit N?V the owner to use the scri!t file named savemachine as an e(ecuta>le scri!t. *C+ chmod NNN savemachine *C+ chmod 3( 78savemachine *C1+ chmod uRrw(4goR savemachine *C+ chmod go3w1( savemachine *T+ &C *,+ &edium *"+ -hich of the following commands should >e used to list all the files and directories in the current wor@ing director5 that have the string PfooP in their name. *C+ ls foo *C+ ls fooC *C1+ ls CfooC *C+ ls Cfoo. *T+ &C *,+ Sim!le *"+ -hich @e5 should >e !ressed in the vi editor to enter te(t3in!ut mode and >egin inserting te(t A9T0= the cursor !osition. *C1+ a *C+ i *C+ D

*C+ o

You might also like