Common Linux operation and maintenance interview questions to share

The process of learning Linux to enter a job must go through an interview. Same as other technical positions. Linux operation and maintenance also requires manager human interview and technical interview. The interview questions for junior operation and maintenance engineers are relatively simple, but there are also many friends who make mistakes on simple questions. Here are some common Linux operation and maintenance interviews.
Insert picture description here
Common Linux operation and maintenance interview questions to share

1. How to add a new 50G hard disk to the Linux server system as a separate partition and is it in use? What steps are required?
  a. Put the hard disk in the server and connect it

b. Create hard disk partition (fdisk command)

c, format the partition

d. Mount the partition (can be written to /etc/fatab, restart and mount automatically)

2. There is a Kingston U disk, and you need to upload an index.html file to the server /var/www/html/ directory, how to operate and complete it.

a. Mount the U disk to the server (ntfs-3g needs to be installed), and copy index.html to /var/www/html/

b. Link the U disk to Windows, connect to the server remotely, and copy remotely

3. There is a mobile hard disk with 300G data on it, how to quickly cp to the Linux server?

Suppose the hard disk is recognized as sdbc on the server

mkdir/mydata

mount-tntfs/dev/sdbc/mydata

4. There is a httpd-2.2.15.xx.rpm package in the CD. How to mount and install it?

a. Mount the CD to /mnt (mount/dev/cdrom/mnt)

b. Installation (rpm-ivh/mnt/Packages/httpd-2.2.15.xx.rpm)

5. Use the rpm command to install, uninstall, and update the soft package ntp-0.7.12.x86_64.rpm.

Install rpm-ivhntp-0.7.12.x86_64.rpm

Uninstall rpm-entp--nodeps

Update rpm-Uvhntp-0.7.12.x86_64.rpm

6. /var/www/html/ is the publishing directory of the website. How to automatically back it up at 0:30 in the morning every day and write out the operation steps?

a, crontab-e enters the edit mode

b. Add the following content 300***/bin/tar-czf/backup/web_bak_$(date+%Y%m%d).tar.gz/var/www/html>/dev/null2>&1

c, start the service servicecrontabstart; chkconfigcrontabon

7. Use the tar command to pack and compress the /root directory, then move it to /tmp, and set its permissions to be read-only by others.

tar-czf / tmp / root_bak.tar.gz / root

chmodo = r / tmp / root_bak.tar.gz

8. The difference between Yum command and rpm command? How to use rpm to install a dependent package?

Rpm is generally used to install local packages, yum is generally used for online installation (you can also create yum sources on local CD)

The difference is that yum can automatically install the dependent packages (excluding the environment)

Add "–nodeps" option such as: rpm-ivh**.rpm–nodeps

9. In this month, from 6 am to 12 am every day, a test.txt file will be created every 2 hours, the content is ok, how to achieve it?

a, crontab-e enters the edit mode

b. Add the following content 06-12/2 4 /bin/touchtest.txt (take April as an example)

c, start the service servicecrontabstart; chkconfigcrontabon

10. Transfer files larger than 100K in the /usr/local/test directory to the /tmp directory.

find/usr/local/test-typef-size+100k-execmv{}/tmp;

This is the 10 Linux operation and maintenance interview questions for everyone to share. Do you know how? With the rapid development of cloud computing, Linux operation and maintenance has become an indispensable technical position for enterprises. Operation and maintenance engineer is a job that is more popular with older age, so if you want to engage in Linux operation and maintenance work, you must be as early as possible.

Guess you like

Origin blog.csdn.net/JACK_SUJAVA/article/details/109241043