Linux Exam

  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Linux Exam as PDF for free.

More details

  • Words: 537
  • Pages: 3
Which of the following will copy file1.txt to file2.txt? Choose Two. A. cat file1.txt | file2.txt B. cp file1.txt > file2.txt C. cp file1.txt file2.txt ` D. cpio < file1.txt > file2.txt . As root, what command would you type to initiate a password change for user “lanka”? A. passwd lanka B. password lanka C. user lanka

DNS provides ________ to IP address mappings. A. NETBIOS name B. host name C. MAC address . What run level represents multi-user? A. 3 B. 0 C. 1 D. 5 . What option is used with the useradd command to specify the user's user id? A. -u B. -s C. -ui D. –id . What file does init processes use as its control file? A. /etc/inittab B. /etc/proc C. /etc/init D. /etc/initproc . What option is used with the useradd command to specify the user's login shell? A. -s B. -l C. -u D. –sh . What run level represents a power down? A. 5 B. 0 C. 1 D. 4 . What run level represents a system reboot? A. 6 B. 1 C. 2 D. 5 .

. What command will show the last 10 lines of a file by default? A. tail B. head C. cat D. prstat . You want to move all files in /dir1 to /dir2 that begin with a and end is the correct command to do this?

with v. What

A. mv /dir1/a*v /dir2 B. mv -r /dir1/a.v /dir2 C. move /dir1/a?v /dir2 D. ls a*v | cp /dir2 E. mv /dir1/[a-v] /dir2 E. ps Which directory is used to store undelivered user email by default? A. /var/spool/sendmail/usermail B. /var/spool/mail C. /var/spool/mailqueue D. /var/spool/sendmail/username E. /var/mail/sendmail/username With a Linux 2.2 Kernel-based machine configuration of 133 MHZ, 32 MB RAM and a 1 GB HD, how much swap should be configured? A. 512MB B. 256MB C. 128MB D. 64MB E. 32MB . What command can find the program file "bar" and it's associated man pages and any existing source files, but not return all files that have "bar" in the command name or path? A. whereis B. find C. locate D. apropos E. whatis

. . What is the correct format for a proper command in the shell? A. Option Argument Command B. Command Argument Option C. Command Option Argument

. What option can be used with the shutdown command to reboot the system? A. shutdown -r

B. shutdown -y C. shutdown -c D. shutdown –b

What option is used with the useradd command to specify the user's login s hell? A. -u B. -s C. -ui D. –id

1. Describe the following things with Examples a. MTA b. LDA c. MUA 2. 3. 4. 5. 6.

What is configuration file of Postfix? What is the DNS server using for Linux? And write the types of DNS severs What is the repository list file for use APT? ( full path) Assume you need to install postfix, write the command to install postfix. You need to use your Linux box as proxy server. How to use Linux box as porxyserver 7. How to change the host name of your Linux box? 8. How to change the IP address of your Linux box in command prompt?

Related Documents

Linux Exam
November 2019 0
Linux
April 2020 29
Linux
July 2020 24
Linux
October 2019 55