Basics of OS UNIX LINUX Shell Programming 1

$7.50

SKU: AMSEQ-013 Category:

PART-A

Q1. How are devices represented in UNIX?

Q2. Brief about the directory representation in UNIX.

Q3. What are the Unix system calls for I/O?

Q4. What are links and symbolic links in UNIX file system?

Q5. How do you create special files like named pipes and device files?

Q6. Discuss in brief the mount and unmount system calls.

PART-B ( ASSIGNMENT 2 )

Q1. How does the inode map to data block of a file?

Q2. Brief about the initial process sequence while the system boots up.

Q3. What Happens when you execute a program in UNIX?

Q4. Discuss a Daemon process in UNIX?

Q5. What is IPC? What are the various schemes available?

Q6. What is the difference between Swapping and Paging?

CASE STUDY

Explain how the buffer cache is used by the file system.

PART-C

Q1. 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
Q2. 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
Q3. Which command is used to display the top of the file?

A Cat
B Head
C More
D Grep
E None of the above
Q4. 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
Q5. 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
Q6. Which command is used to remove a directory?

A Rd
B Rmdir
C Dldir
D Rdir
E None of the above
Q7. Which of the following keys is used to replace a single character with new text?

A S
B S
C R
D C
E None of the above
Q8. Which command is used to extract specific columns from the file?

A Cat
B Cut
C Grep
D Paste
E None of the above
Q9. Which command sends the word count of the file infile to the newfile.

A wc infile >newfile
B wc newfile
C wc infile – newfile
D wc infile | newfile
E None of the above
Q10. Which command is used to remove the read permission of the file ‘note’ from both the group and others?

A chmod go+r note
B chmod go+rw note
C chmod go-x note
D chmod go-r, 4-x note
E None of the above
Q11. Which of the following commands is used to display the directory attributes rather than its contents?

A ls -1 -d
B ls -1
C ls -x
D ls -F
E None of the above
Q12. Which of the following files will displayed by this command cat *ch*

A Patch
B Catch
C .ch
D All of the above
E None of the above
Q13. The Octal number to be given alogn with chmod command to make a file readable, writable and executable to the owner, readable and executable to group and others is:

A 000
B 755
C 744
D 555
E None of the above
Q14. If you are to use [Control-c] as the interrupt key instead of [Del], then you will have to use

A tty ^c
B stty intr ^c
C stty echoe
D stty echo ^a
E None of the above
Q15. Which of the following is not a communication command.

A Write
B Mesg
C Mail
D Grep
E None of the above
Q16. Which of the following keys is used to move the cursor to the end of the paragraph.

A }
B {
C |
D $
E None of the above
Q17. Which command is used to concatenate all files beginning with the string ’emp’ and followed by a non-numeric characters?

A cat emp[!0-9]
B more [emp][!0-9]
C cat emp[x-z]
D cat emp[a-z]
E None of the above
Q18. The command which transcribes the standard input to the standard output and also makes a copy of the same in a file is

A Tee
B Tr
C Sort
D Grep
E None of the above
Q19. Which command is used to remove a file?

A Remove
B Rm
C Mv
D Del
E None of the above
Q20. Which symbol is used to separate more than one command in the same command line?

A $
B #
C :
D ;
E None of the above
Q21. 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
Q22. What command is used to remove files?

A Dm
B Rm
C Delete
D Erase
E None of the above
Q23. What command is used to remove the directory?

A Rdir
B Remove
C Rd
D Rmdir
E None of the above

Q24. 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

Q25. What hardware architectures are not supported by Ret Hat?

A SPARC
B IBM-compatible
C Alpha
D Macintosh
E None of the above
Q26. The physical layer of a network

A constructs packets of data and sends them across the network
B controls error detection and correction
C defines the electrical characteristics of signals passed between the computer and communication devices
D All of the above
E None of the above
Q27. What TCP/IP protocol is used for remote terminal connection service?

A UDP
B RARP
C FTP
D TELNET
E None of the above

Q28. How many networks and nodes per network, are allowed by the Class B network?

A 127 networks and 16,777,216 nodes per network
B 16,384 networks and 65,534 nodes per network
C 2,097,152 networks and 254 nodes per network
D All of the above
E None of the above
Q29. What service is used to translate domain names to IP addresses?

A NFS
B SMB
C NIS
D DNS
E None of the above
Q30. Which of the following command is used to create a Linux installation hoot floppy?

A mkboot disk
B bootfp disk
C ww and rawwrite
D dd and rewrite
E None of the above
Q31. How can you add Amit, a new user, to your system?

A Using useradd
B Using adduser
C Using linuxconf
D All of the above
E None of the above
Q32. What file specifies the order in which to use specified name services?

A /etc/services
B /etc/nsorder
C /etc/nsswitch.conf
D /etc/hosts
E None of the above
Q33. How many primary partitions can exist on one drive?

A 16
B 4
C 2
D 1
E None of the above
Q34. In which directory can you store system user default files used for creating user directories?

A /usr/tmp
B /etc/default
C /etc/skel
D /etc/users
E None of the above
Q35. How could you install the file ipchains-1.3.9-5.i386.rpm?

A rpm -qip ipchains
B rpm -Uvh ipchains
C rpm -i ipchains* .i386.rpm
D rpm -e ipchains-1.3.9-5.i386.rpm
E None of the above
Q36. What does FSF stand for?

A Free Software File
B File Server First
C First Serve First
D Free Software Foundation
E None of the above
Q37. Which of the following is a valid format for mounting a CD-ROM drive?

A mount -t iso9660 /dev/cdrom / mnt/cdrom
B mount /dev/cdrom
C mount /mnt/cdrom
D All of the above
E None of the above
Q38. What command do you use to create Linux file systems?

A Fdisk
B Mkfs
C Fsck
D Mount
E None of the above
Q39. Which of the following command can you execute to count the number of lines in a file?

A Lc
B wc – 1
C Cl
D count
E None of the above
Q40. Which of the following is not a communication command?

A Grep
B Mail
C Mesg
D Write
E None of the above

Reviews

There are no reviews yet.

Be the first to review “Basics of OS UNIX LINUX Shell Programming 1”

Your email address will not be published. Required fields are marked *

PlaceholderBasics of OS UNIX LINUX Shell Programming 1
$7.50