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