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

Common commands for Linux to view system configuration

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

Share

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

This article mainly introduces "Linux view system configuration common command", in daily operation, I believe many people in Linux view system configuration common command problems have doubts, Xiaobian consulted all kinds of information, sorted out simple and easy to use operation methods, I hope to answer "Linux view system configuration common command" doubts helpful! Next, please follow the small series to learn together!

# uname -a #View kernel/OS/CPU info

# head -n 1 /etc/issue #View OS version

# cat /proc/cpuinfo #View CPU info

# hostname #View computer name

# lspci -tv #List all PCI devices

# lsusb -tv #List all USB devices

# lsmod #List loaded kernel modules

# env #View environment variable resources

# free -m #View memory usage and swap area usage

# df -h #View partition usage

# du -sh #View the size of the specified directory

# grep MemTotal /proc/meminfo #View Total Memory

# grep MemFree /proc/meminfo #View amount of free memory

# uptime #View system uptime, number of users, load

# cat /proc/loadavg #View system load disks and partitions

# mount |column -t #View attached partition status

# fdisk -l #View all partitions

# swapon -s #View all swapon partitions

# hdparm -i /dev/hda #View disk parameters (IDE devices only)

# dmesg |grep IDE #View IDE device detection status at startup Network

# ifconfig #View properties of all network interfaces

# iptables -L #View firewall settings

# route -n #view routing table

# netstat -lntp #View all listening ports

# netstat -antp #View all established connections

# netstat -s #view network statistics progress

# ps -ef #View all processes

# top #Display process status in real time User

# w #View active users

# id #View specified user information

# last #View user login logs

# cut -d: -f1 /etc/passwd #View all users of the system

# cut -d: -f1 /etc/group #View all groups in the system

# crontab -l #View the current user's scheduled task services

# chkconfig-list #List all system services

# chkconfig –list |grep on #List all system services started

# rpm -qa #View all installed packages

At this point, on the "Linux view system configuration of the common command" learning is over, I hope to solve everyone's doubts. Theory and practice can better match to help everyone learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!

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