Sunday, October 26, 2014

Linux

1. 
What command is used to count the total number of lines, words, and characters contained in a file?
A.countw
B.wcount
C.wc
D.count p
E.None of the above
2. 
What command is used to remove files?
A.dm
B.rm
C.delete
D.erase
E.None of the above
3. 
What command is used to remove the directory?
A.rdir
B.remove
C.rd
D.rmdir
E.None of the above
4. 
What command is used with vi editor to delete a single character?
A.x
B.y
C.a
D.z
E.None of the above
5. 
What hardware architectures are not supported by Red Hat?
A.SPARC
B.IBM-compatible
C.Alpha
D.Macintosh
E.None of the above

Saturday, October 25, 2014

Unix

1. 
Which symbol will be used with grep command to match the pattern pat at the beginning of a line?
A.^pat
B.$pat
C.pat$
D.pat^
E.None of the above
2. 
Which command is used to sort the lines of data in a file in reverse order
A.sort
B.sh
C.st
D.sort -r
E.None of the above
3. 
Which command is used to display the top of the file?
A.cat
B.head
C.more
D.grep
E.None of the above
4. 
Which command is used to copy all files having the string chap and any two characters after that to the progs directory?
A.cp chap?? progs
B.cp chap* progs
C.cp chap[12] /progs/*.*
D.cp chap?? /progs/*
E.None of the above
5. 
Which command is used to change protection mode of files starting with the string emp and ending with 1,2, or 3?
A.chmod u+x emp[l-3]
B.chmod 777 emp*
C.chmod u+r ??? emp
D.chmod 222 emp?
E.None of the above

Friday, October 24, 2014

Disk Operating System(DOS)

1. 
Which command of MS-DOS is used to copy only files that have been modified on or after the date you specify?
A.XCOPY/D : date
B.COPY/D : date
C.COPY/M
D.XCOPY/V
E.None of the above
2. 
Which DOS command will format a floppy disk and transfer the system files
A.SYS C: A:
B.SYS A:
C.FORMAT A: /S
D.FORMAT A: /T
E.None of the above

3. 
While working with MS-DOS, which command is used to restore files that were backed up using the BACKUP command?
A.COPY
B.DISKCOPY
C.RESTORE
D.STORE
E.None of the above
4. 
The term TSR is an abbreviation for:
A.Terminate Stay Ready
B.Testing System Read
C.Terminal Still Ready
D.Terminate Stay Resident
E.None of the above
5. 
Using the _____ switch causes FDISK to display the partition status of your hard disk without executing FDISK.
A./show
B./display
C./status
D./part
E.None of the above
6. 
While working with MS-DOS, which command is used to undelete a bunch of files with extension DOC that you have just deleted?
A.UNDELETE
B.UNDELETE *.DOC
C.UNDELETE/ALL
D.UNDELETE/LIST
E.None of the above
7. 
In DOS, which of the following keys will bypass the CONFIG.SYS and AUTOEXEC.BAT files?
A.F8
B.F5
C.F4
D.Fl
E.None of the above
8. 
You want to view the contents of autoexec.bat on the screen using the "type" command, but it scrolls by too quickly, what switch do you use to make it pause?
A.type c:\autoexec.bat /p
B.type c:\autoexec.bat/more
C.type c:\autoexec.bat|pause
D.type c:\autoexec.bat|more.
E.None of the above
9. 
What file contains commands that configure systems devices?
A.Command.com
B.Config.sys
C.Autoexec.bat
D.Win.ini
E.None of the above
10. 
Which command is used to suppress the prompt that asks you to confirm that you want to delete the directory?
A.DELTREE
B.DELTREE/F
C.DEL*.*
D.ERASE *.*
E.None of the above