Linux Commands 7

Source: Internet
Author: User

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

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.