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

Share common scripts and commands in linux

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly introduces "linux commonly used scripts and command sharing". In daily operation, I believe many people have doubts about linux common scripts and command sharing. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "linux common scripts and commands sharing". Next, please follow the editor to study!

1. Simply remove the lines of comments

Cat httpd.conf | grep-v ^\ * # > mayuehehe

2. Modify the port of ssh

/ usr/sbin/sshd-p 1433

3. View a user

Id username

4. View environment variables

Set or env

5. Change the yum source

Cd / etc/yum.repos.d

Mv CentOS-Base.repo CentOS-Base.repo.save

Wget http://centos.ustc.edu.cn/CentOS-Base.repo

6. Open the designated port

Iptables-An INPUT-p udp-- dport 58-j ACCEPT

7. Test the speed of the hard disk

Hdparm-Tt / dev/sda

8. Time synchronization

Ntpdate-s time.nist.gov

Hwclock-systohc

At this point, the study on "sharing common scripts and commands in linux" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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

Servers

Wechat

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

12
Report