Linux interview questions

Source: Internet
Author: User
  1. In Linux, the device is accessed as a file.
  2. Read the file system to be loaded from/etc/fstab during Linux kernel boot.
  3. Each file in a Linux File System is identified by an I node.
  4. All disk blocks are composed of four parts: boot block, dedicated block, I node table block, and data storage block.
  5. Links are divided into hard links and symbolic links.
  6. Super blocks contain important file system information such as I node tables and idle block tables.
  7. The permission for a file is: drw-r --, (R-4, 2-2, x-1) that represents the permission in numerical form, then the number of octal objects is: 644, the property of this file is directory.
  8. Run Ctrl + C to terminate the processes started at the front end.
  9. After static route settings, if the network topology changes, the system administrator needs to modify the route settings.
  10. An important task of network management is control and monitoring.
  11. When installing a Linux System for hard disk partitioning, there must be two partition types: file system partition and swap partition.
  12. Before writing a Shell program, you must grant the execution permission to the script file.
  13. One of the tasks of system management is to implement security protection, backup, recovery, and update of programs and data in a distributed environment.
  14. The system swap partition is an area of the system virtual memory.
  15. The kernel is divided into four subsystems: Process Management System, memory management system, I/O Management System, and file management system.
  16. Each user is uniquely identified by the user ID and user name.
  17. The RIP Protocol is the most common internal protocol for dynamic routing.
  18. In Linux, all content is represented as files. The methods for organizing files are called file systems.
  19. DHCP allows for Dynamic IP Address allocation.
  20. The VI editor has two working modes: Command mode and input mode.
  21. You can use the ls-al command to view the permissions of a file. Each file has 10 bits and is divided into four sections. The first section occupies 1 bits, indicating the file type, the second part takes three places, indicating the permission of the file owner to the file.
  22. The difference between a process and a program lies in its dynamic nature. The dynamic generation and termination of a process can have the following basic states: running state, ready state, and waiting state (blocking state ).
  23. DNS is actually a database of host information distributed on the internet. It is used to convert IP addresses and host names.
  24. There are two types of backup on Linux: system backup and user backup. The former refers to the backup of the operating system, and the latter refers to the backup of applications and user files.
  25. The command used to restrict the use of disk space by users is quota.
  26. In Linux, the directory used to store the required configuration files and subdirectories is/etc.
  27. Only file links can be created for hard links. Symbolic Links can be created across different file systems.
  28. The command to end the background process is kill.
  29. There are two ways to run a process: independent running and parent running.
  30. Displays all processes running in Linux with the command and parameter ps-aux.
  31. The standard output of the previous command is used as the standard input of the next command, which is called a pipeline.
  32. Specify the execution permission ear command and the parameter chmod a + x filename for the script program.
  33. The remote logon command is telnet.
  34. The DNS server process is named. When it is started, it automatically loads the DNS partition database file defined in the named. conf file under the/etc directory.
  35. The Apache server process configuration file is httpd. conf.
  36. In the linuxlinuxsystem, the command suffixed with .gz after the compressed file is gzip.
  37. When editing a file with VIOs, store the file in test.txt. In command mode, enter w test.txt.
  38. The command and parameter for displaying the calendar of the entire year on the standard output is cal-y.
  39. In Linux, the command used to test whether the DNS server can correctly resolve the domain name is nslookup.
  40. In Linux, the hard disk (slave disk) of the second IDE channel is identified as hdb.
  41. The rm command can delete files or directories. The main difference is whether to use the recursive switch-r or-R
  42. The mv command can move files and directories, and rename files and directories.
  43. The ping command is used to test network connectivity. The ping command is implemented through the ICMP protocol.
  44. Use the >;>; symbol to append the output redirection content to the end of the original text.
  45. The command for adding a user is adduser or useradd.
  46. SEARCH strings and use the grep command.
  47. The connection-oriented protocol is the transmission control protocol.
  48. The Cut command can intercept data of specified content from each line of a text file.
  49. NFS is a network file system.
  50. The tr command backs up tapes in the Linux security system.
  51. Files in the Linux File System are stored in related directories according to their functions. External Device Files should generally be stored in the/dev directory.
  52. When you restart the Linux system and write the information in the memory to the hard disk, use the # shutdown-r now command.
  53. Brief Introduction to the process of converting the logical structure and physical structure of a file through the I node in Linux: the logical structure and physical structure of the file are converted through the I node table in Linux. An I node is a 64-byte table that contains information about files, there are important information such as the file size, file owner, file access permission, and file type. The most important content in the I node table is the disk address table. There are 13 block numbers in the disk address table. The files read the corresponding block numbers in the order they appear in the disk address table. The Linux file system connects the I node and the file name. When you need to read the file, the file system searches for the corresponding items of the file name in the current directory table, the corresponding node number of the file is obtained. the disk address table of the node connects the physical blocks of the scattered files into the logical structure of the file.
  54. Brief Introduction to process Initiation
  55. Termination method and how to view the process: in Linux, enable a process by means of Manual start and scheduling start: (1) Manual start: the user issues a command at the input end, start a process directly. It can be divided into: 1. Start the front-end, directly enter the command in Shell to start. 2. Background transfer: Start a non-urgent process, such as a printing process. (2) scheduling start: the system administrator schedules the system resources and processes in advance based on the resources occupied by the system resources, and specifies the time and occasion for the task to run. At that time, the system automatically completes the task. Commonly used process scheduling Commands include at, batch, and crontab.
  56. Brief Introduction to DNS domain name resolution process: first, the client sends a DNS request to translate the IP address or host name. After receiving the request from the client, the DNS server: (1) Check the cache of the DNS server. If the request address or name is found, the DNS server sends a Response Message to the client. (2) If the request is not found, search in the database. If the request address or name is found, a response message is sent to the client. (3) If no query is made, the request is sent to the root domain DNS server, and the top-level domain is queried from the root domain in sequence. The top-level lookup second-level domain is used to find third-level domains, the DNS server sends a response to the DNS server in the network where the client is located. After receiving the response, the DNS server stores the response in the cache and sends the resolution result to the client. (4) If no error is found, an error message is returned.
  57. What is Static Routing and its characteristics? What is dynamic routing and what are its characteristics? Static Routing is defined in the route table designed and constructed by the system administrator. Suitable for a network with a limited number of gateways and the network topology does not change frequently. The disadvantage is that it cannot dynamically adapt to changes in network conditions. When the network changes, the network administrator must modify the route table. The dynamic route table is dynamically built by the routing selection protocol. The routing protocol updates the content of the route table in real time by exchanging the route information of each route. Dynamic Routing can automatically learn the network topology and update the route table. The disadvantage is that the route broadcast update information occupies a large amount of network bandwidth.
  58. What commands are used for viewing and scheduling processes? The command for viewing processes is ps and top, and the command for scheduling processes is at, crontab, batch, and kill.
  59. What is symbolic link and hard link? What is the difference between a symbolic link and a hard link? Symbolic Links can be used to establish links to files and directories. Symbolic Links can be used across file systems, that is, cross-disk partitions. The file type bit of the symbolic link is 1, and the linked file has a new I node. Hard links cannot be used across file systems. It can only establish links to files. The type bit of the hard link file is --, and the I node of the hard link file is the same as the I node of the file to be linked.
  60.  

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.