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

Linux system management operation command

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

Share

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

View the system, kernel

Cat / etc/redhat-release / / View system uname-r / / View kernel view CPUgrep "CPU" / proc/cpuinfo run time uptime view system digits getconf LONG_BIT view hard disk and partition df-h software install and uninstall yum update / / update system yum makecache software name / update software source cache yum search software name / / search software yum install software Name / / install software yum remove software name / / download the management service software name of the software start / / start service software name restart / / restart service software name stop / / close service software name status / / status file and folder management touch file name / / create file mkdir-p a/b/c/d / / Recursive create folder cp a.a B. B / / copy file mv a.a c.c / / rename or copy (replication in the same folder) chmod 0755 d / / directory permissions modify chown-R user name: user group e / / directory belongs to rm a.bc-rf / / delete file or folder ls / / lists the contents of the current directory cd.. / / return to the previous directory cd ~ / / return to the home directory / rootcd / root/Desktop / / download weget http:// to enter the desktop directory file example: wget https://mirrors.aliyun.com/centos/7.3.1611/isos/x86_64/CentOS-7-x86_64-DVD-1611.torrent Compression and decompression tar zcvf package name .tar.gz / / compressed tar zxvf compressed package name .tar.gz / / unzipped (shown by the unzipped file) tar xzf compressed package name .tar.gz / / unzipped (no file display) shows the current path pwd shutdown and restart init 0 / / shutdown reboot / / restart shutdown-h 20 in root mode / / shut down after 20 minutes shutdown-h 20 $/ / shut down and run in the background after 20 minutes

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