11 common questions about Linux basic interview

Source: Internet
Author: User
This article will bring about 11 basic Linux interview questions, hoping to help friends who are about to change jobs or looking for relevant work.

Q.1: What is the core of the Linux operating system?

  • Shell

  • Kernel

  • Command

  • Script

  • Terminal

A: Kernel is the core of the Linux operating system. Shell is a Command line interpreter. A Command is a computer-specific Command. A Script is a collection of commands stored in a file, and a terminal (Termial) is a Command line interface.

Q.2: What have Linus Torvalds created?

  • Fedora

  • Slackware

  • Debian

  • Gentoo

  • Linux

A: Linux Torvalds has created Linux. Linux is the core of all the above operating systems and also the core of some other Linux operating systems.

Q.3: Torvalds writes most of the Linux kernel code in C ++, right?

A: No! The Linux kernel contains 12,020,528 lines of code, with comments accounting for 2,151,595 lines. Therefore, the remaining 9,868,933 lines are pure code. The 7,896,318 lines are written in C language.

The remaining 1,972,615 lines use C ++, assembly, Perl, Shell Script, Python, Bash Script, HTML, awk, yacc, lex, and sed.

Note: The number of lines of code changes every day. On average, over 3,509 lines of code are added to the kernel every day.

Q.4: At first, Linux was written for the Intel X86 architecture, but later there were more hardware platforms transplanted than other operating systems, right?

A: Yes, I agree. At that time, Linux was written for x86 machines and has been moved to all types of platforms. Today, more than 90% of super computers are using Linux. Linux has broad prospects in mobile phones and tablets. In fact, we are surrounded by Linux, remote control, space science, research, Web, desktop computing, and so on.

Q.5: Is it legal to edit the Linux kernel?

A: Yes. The kernel is published based on GPL. Anyone can edit the kernel Freely based on the Permissions Permitted by GPL. Linux Kernel is a Free Open Source Software (FOSS ).

Q.6: What are the differences between UNIX and Linux operating systems?

A: The Linux operating system is a free open-source software. The kernel is jointly developed by Linus Torvalds and the open-source community. Of course, we cannot say that the UNIX operating system has nothing to do with the Free Open Source Software (FOSS). BSD is a UNIX variant based on the FOSS category. In addition, large companies such as Apple, IBM, Oracle, and HP are contributing code to the UNIX kernel.

Q. 7: Make a difference.

  • HP-UX

  • AIX

  • OSX

  • Slackware

  • Solaris

A: Slackware. HP-UX, AIX, OSX, Solaris are developed by HP, IBM, APPLE, Oracle, and are UNIX variants. Slackware is a Linux operating system.

Q.8: Will Linux be infected with viruses?

A: Of course! There is no operating system on this earth that will not be infected with viruses. But Linux is famous for its low virus volume so far. Yes, it is even less than UNIX. There are only 60-viruses on the Linux list, and none of them are spreading. A rough Unix estimate is.

Q.9: What type of operating system does Linux belong?

  • Multiple users

  • Multi-task

  • Multithreading

  • All of the above

  • None of the above

A: All of the above. Linux is an operating system that supports multiple users and can run multiple processes to execute multiple tasks at the same time.

Q.10: the syntax format of common Linux commands is:

  • Command [Option] [parameter]

  • Command Option [parameter]

  • Command [Option] [parameter]

  • Command Option Parameter

A: The correct syntax for Linux commands is: Command [Option] [parameter].

Q.11: Make a difference.

  • Vi

  • Vim

  • Cd

  • Nano

A: cd is different from other commands. Vi, vim, and nano are both editors used to edit documents, while cd is used to switch directories.

That's all. How many questions have you learned? What is the effect? We are looking forward to your comments. There will be new questions next week. Let's wait and see. Stay healthy and lock the link. Remember to use Tecmint.


Related Article

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.