Linux Learning (1), Linux Learning (

Source: Internet
Author: User

Linux Learning (1), Linux Learning (

1. What is shell and bash? What is the difference between them?

Shell is a user interface that interacts with Linux.

Bash is a special case of shell, or an implementation.

Bash: command line user interface application!

The common command line user interface is bash!

 

2. What is Linux kernel:

Baidu Encyclopedia: Linux is an open-source computer operating system kernel. It is a Unix-like operating system written in C language that complies with POSIX standards.

Simply put, it is the heart of Linux.

 

3. What is a database?

A large number of libraries exist on windows and linux platforms.

Essentially, a library is a binary form of executable code that can be loaded into the memory for execution by the operating system.

 

There are two types of libraries in linux: static library and shared library (dynamic library ).

The difference between the two lies in that the code is loaded at different times.

The code of the static library has been loaded into the executable program during compilation, so the size is large.

The code of the shared library is loaded into the memory only when the executable program runs. It is only referenced in the compilation process, so the code size is small.

 

4. Common file formats in Linux:

L starts with: Link file

D starts with directory files.

C starts with a character device file (character file)

B starts with a block device file (byte file)

 

5. File User Permissions:

Rwx

Owner group others

R: read Permission, w: write permission, and x: Execution permission.

 

6. Use help to view the internal information of the command, and use man to view the external information.

Help is the help of Internal commands, such as cd
Man is the help of external commands, such as ls

 

7. Create a file. You can use touch or echo

Touch a.txt creates an empty file

While echo creates a file with content

 

Echo "hello"> a.txt creates a file named a.txt and writes hello to the file.

Echo "haha"> a.txt is the content appended to the end of the.txt file.

 

Differentiate between> and>, but not

 

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.