GAT Subject :: All Aptitude Test ::

Hassan
1.Which command is used to copy a file wb with the same name from the programs directory to the misc directory?
A. copy programs/wb misc/wb
B. cp programs/wb misc
C. tar programs/wb misc/wb
D. copy programs/wb misc/wb

2.Which is the earliest and most widely used shell that came with the UNIX system?
A. C shell
B. Korn shell
C. Bourne shell
D. C shell

3.The seventh field of /etc/password is
A. password
B. login
C. shell
D. password

4.Which command is used to display the end of the file?
A. head - r
B. tail
C. eof
D. head - r

5.Which command is used to create a directory?
A. crdir
B. md
C. mkdir
D. crdir

6.Which command is used to display the device name of the terminal you are using?
A. who
B. ls
C. tty
D. who

7.The ls -l command tells
A. who the owner of the file is
B. the name of the group owner of the file
C. how large the file is and when the file was last modified.
D. who the owner of the file is

8.Which option will be used with disk free command to include the total amount of disk space in the file system?
A. -t
B. -tt
C. -4
D. -t

9.Which command is used to set the three permissions for all the three categories of users of a file?
A. chgrp
B. chown
C. chmod
D. chgrp

10.Which of the following commands can be used to get information about yourself?
A. who am i
B. i /4
C. pwd
D. who am i

11.Which of the following commands can be used to get information about all users who are currently logged into the system?
A. which
B. who
C. who am i
D. which

12.Which of the following keys is used to overstrike a whole line?
A. R
B. v
C. C
D. R

13.Which command is used to locate all the .profile files in the system?
A. ls profile
B. find /-name profile -print
C. cd /.profile
D. ls profile

14.The File that contains a set of instructions which are performed when a user logs in, is
A. .exrc
B. .profile
C. .autoexec
D. .exrc

15.The octal representation 652 indicates
A. Execute permission for the owner
B. Write permission for others
C. Read and write permission of groups
D. Execute permission for the owner

16.Which of the following command is used to count just the number of lines contained in a file?
A. wc -l
B. wc -c
C. wc -w
D. wc -l

17.Which of the following command is used to go to home directory?
A. cd..
B. cd/
C. cd
D. cd..

18.Which command is used to move all files to the bin sub-directory of the parent directory?
A. mv *.* /bin/
B. mv * /bin/*
C. mv * ../bin
D. mv *.* /bin/

19.Which command is used to save the standard output in a file, as well as display it on the terminal?
A. more
B. cat
C. grep
D. more

20.The command that can be used to restrict incoming messages to a user is
A. mesg
B. grep
C. halt
D. mesg

21.Which of the following commands is used to copy directory structures in and out
A. cp
B. cpio
C. cp - p
D. cp

22.Which of following commands is used for an automatic reminder service?
A. write
B. mesg
C. calendar
D. write

23.Which command allows you to view your file 24 lines at a time?
A. more
B. pg
C. cat
D. more

24.Which of the following special shell variables is used to process number of the current shell?
A. $!
B. $$
C. $0
D. $!

25.Which option is used with cmp command to give a detailed list of the byte number and the differing bytes in octal for each character that differs in both the files?
A. -l
B. -d
C. -r
D. -l

26.Which command is used with vi editor scroll half page backward?
A. [Control-d]
B. [Control - u]
C. [Control-c]
D. [Control-d]

27.Which of the following keys is used to delete the character beneath the cursor?
A. x
B. X
C. dd
D. x

28.Which command will be used with vi editor to append text at end of line?
A. A
B. a
C. i
D. A

29.The first set of the three permissions (rw) pertains to the owner of the file, indicating that the owner has
A. executable permission only
B. write and executable permissions
C. both read and executable permissions.
D. executable permission only

30.Which of the following commands is used to save the output of the who command in a file named user.lst, as well as display it?
A. who | tee user.lst
B. who > user.lst
C. who >> user.lst
D. who | tee user.lst


Date to Date Current Affairs 2022

PakMCQs.net

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers