Process
$top display process information and update $ps in real time displays the processes under the current shell
$ps-lu username shows the process of user username
$ps-AJX to show all processes in a more complete format $kill PID kills PID process (PID for process ID)
$kill%job Kill Job (Job number)
Files opened $lsof-u username user Username Process
$DMESG Display the System log
$time a.out test the a.out run time
Hardware
$uname-A display system information
$DF-LH Show the usage of all hard drives
$mount Show all hard disk partition mounts
$mount partition path hangs on partition path
$umount Partition Uninstall partition
$sudo fdisk-l Show All the partitions
$sudo fdisk device to create a partitioned table for device (such as/DEV/SDC). After entering, select N, p, W
$sudo mkfs-t ext3 partition formatted partition patition (e.g./DEV/SDC1)
Modify the/etc/fstab to mount the partition automatically. Add Line:/DEV/SDC1 path (mount point) ext3 defaults 0 0
$arch Display Schema
$cat/proc/cpuinfo Display CPU Information
$cat/proc/meminfo Display Memory information
$free Show Memory usage
$pagesize Display memory page size (in KByte)
Linux Commands 7