Command summary for viewing various devices and resources in Ubuntu

Source: Internet
Author: User

From here: http://washion2008.blog.163.com/blog/static/144227201001193149528/

I. System Information

1. view the kernel information: $ uname-
2. view the operating system version: $ head-N 1/etc/issue
3. View CPU information: $ CAT/proc/cpuinfo
4. view the computer name: $ hostname
5. list all PCI device information: $ lspci-TV
6. list all USB devices: $ lsusb-TV
7. list information of modules loaded by the system: $ lsmod
Ii. Usage of system resources
1. view memory and swap partition usage: $ free-m
2. view the usage of the hard disk partition: $ DF-H
3. view the size of a directory: $ Du-SH <directory>
4. view the total memory and idle memory: $ grep memtotal/proc/meminfo
$ Grep memfree
/Proc/meminfo
5. view the system running time, number of users, and load: $ uptime
6. view the system load: $ CAT/proc/loadavg
Iii. Hard Disk and partition information
1. view the Mount partition information: $ Mount | column-T
2. view the hard disk partition information: $ sudo fdisk-l
3. View information about all swap partitions: $ Swapon-S
4. view the hard disk parameter information: $ sudo hdparm-I/dev/had
Iv. Network Information
1. View Network Interface Information: $ ifconfig
2. View firewall settings: $ iptables-l
3. view route table information: $ route-n
4. view the information of all listening ports: $ netstat-lntp
5. View information about all established connections: $ netstat-antp
6. View network Statistics: $ netstat-S
5. View System Process Information
1. View information about all processes: $ PS-ef
2. View information about the current process: $ top
6. View user information
1. View information about the current activity: $ W or $ who
2. view the information of the specified user: $ id <User Name>
3. view the user logon log: $ last
4. view the scheduled tasks of the current user: $ crontab-l
7. view the installation package information: $ dpkg-L <software Name>

Command summary for viewing various devices and resources in Ubuntu

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.