Answers to linux jobs

Source: Internet
Author: User
The answer to a linux job is Linux general technology-Linux technology and application information. For more information, see the following. 1. Which of the following statements about the ifconfig command is true? (B)
A. The ifconfig command file is located in the/sbin directory. Only the administrator can execute the command.
B. Normal users can run the ifconfig command to view the network interface information of the system, but the full path name of the command must be used.
C. A common user can run the ifconfig command to set the network interface information of the system, but the full path name of the command must be used.
D. When executing the ifconfig command, the system administrator root must also use the full path name of the command.

2. Use the ifconfig command to view the etho network interface. The best command is (B)
A. ifconfig
B. ifconfig eth0
C. ifconfig-
D. ifconfig lo

3. Which of the following statements about the route command is true)
A. Common users can use the route command to view route information in the system.
B. The route command can only be used to view the default gateway address
C. The route command can only be used to set the default gateway address
D. The route command can be used to maintain the route table information of the system.

4. In the following command, (a) can be used to view the default route information in the system.
A. route
B. route add default gw
C. route del default gw
D. route del default gw 192.168.1.1

5. Which of the following statements about the hostname command is true? (ac)
A. the hostname command displays the name of the current host.
B. You can set the host name permanently.
C. Only the root user has the right to use the hostname command to set the host name.
D. Only the nslookup command has the right to use the hostname command to display the host name.

6. Which of the following statements about the nslookup command is true? (acd)
A. The nslookup command is used to query domain name resolution results from the dns server.
B. The nslookup command can only be executed by the root user.
C. nslookup command interaction mode and direct command mode.
D. nslookup uses the dns server set in linux by default for domain name query.

7. to configure the IP address of the network interface eth0 in the system, you need to modify the (B) file.
A./etc/sysconfig/network-scripts/ifcfg-lo
B./etc/sysconfig/network-scripts/ifcfg-eth0
C./etc/sysconfig/network
D./etc/init. d/network

8. After modifying the configuration file for multiple network interfaces in the linux system, the (c) Command will make all the configurations available.
A./etc/init. d/network stop
B./etc/init. d/network start
C./etc/init. d/network restart
D. ifdown eth0; ifup eth0

9. In the resolv. conf file, you can use the nameserver configuration item to set the IP addresses of (c) dns servers.
A.1
B .2
C.3
D.4

10. For experiment reasons, host name and IP address must be temporarily resolved. You can use the (B) method.
A. Add the corresponding host and IP address records in the/etc/resolv. conf file.
B. Add the corresponding host and IP address records in the/etc/hosts file.
C. Add the corresponding host and IP address records in the/etc/sysconfig/network file.
D. Add the corresponding host and IP address records in the/etc/init. d/network file.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.