Get the App
SLTechnology News&Howtos  ›  Servers  › 

Linux system management operation command

Shulou Source: shulou.com Published: 2022-06-03 05:33:12 09月17日 Update

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

Tags: Software files directories systems folders management kernel users a.a updates run download software digits content background address file name time permissions desktop Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Apple macOS Shulou Information MySQL