Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the common Linux operation and maintenance test questions?

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "what are the common Linux operation and maintenance interview questions". The explanation in this article is simple and clear, easy to learn and understand. Please follow the ideas of Xiaobian and go deep into it slowly to study and learn "what are the common Linux operation and maintenance interview questions" together!

How do I add a new 50 gigabyte hard drive to a Linux server system as a separate partition and use it? What steps are required?

a. Put the hard disk into the server and connect it

b. Create hard disk partition (fdisk command)

c. Format partition

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

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

a. Mount the USB flash drive to the server (ntfs-3g needs to be installed), copy index.html to/var/www/html/

b. Link the USB flash drive to Windows, connect the server remotely, and copy it remotely.

3, there is a mobile hard disk, there are 300G data, how to quickly cp to the Linux server?

Suppose the hard disk is identified on the server as sdbc

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?

The requested URL/dev/cdrom/mnt/was not found on this server.

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

5. Use rpm command to install, uninstall and update 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 website's publishing directory, how to automatically backup it at 0:30 every morning, write down the operation steps?

a, crontab-e enter edit mode

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

c. Start service crontabstart; chkconfig crontabon

7. Use tar to package and compress the/root directory, then move it to/tmp and set its permissions to read-only for others.

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

chmodo=r/tmp/root_bak.tar.gz

What is the difference between the Yum command and the RPM command? How do I install a dependent package using rpm?

rpm is generally used to install local packages, yum is generally used for online installation (yum source can also be created locally on CD)

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

Add "--nodeps" option e.g. rpm-ivh**.rpm--nodeps

9, in this month, every day from 6 a.m. to 12 a.m., create a test.txt file every 2 hours, the content is ok, how to achieve?

a, crontab-e enter edit mode

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

c. Start service crontabstart; chkconfig crontabon

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

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

Thank you for your reading. The above is the content of "What are the common Linux operation and maintenance interview questions?" After studying this article, I believe you have a deeper understanding of what are the common Linux operation and maintenance interview questions. The specific use situation still needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report