Shell Command Summary

Source: Internet
Author: User
Tags create directory disk usage

"Bash shell built-in Commands"

Type-a:

File: Represents an external command

Alias: The name set by the command alias

Buildin: Internal command

Note: The execution of a command can be performed using both absolute and relative paths (./).


"Directories and Files"

mkdir: Create directory mkdir ~/sbin

Touch: Create a file Touch test.c

File: View files Type

ln: for file links

LN-SF: Symbolic link. link files and source files use different inode numbers

Ln-f: Hard links. Link file and source file use the same inode number

Note:

Summary of the various directories under Linux:

~/: The current user's home directory

./: Current directory

.. /: Previous level Directory

The file name is added "." to indicate that it is a hidden file


"File content View"

Cat: Start from the first line

TAC: Start viewing from the last line

NL: When viewed, shows travel number NL test.c

MORE: Page by page, cannot forward View more test.c spacebar to page back

Less: Similar to more, but can view the less test.c spacebar to page back

Head: View the first few lines head-n test.c

Tail: View the following lines Tail-n test.c


"System-related"

DF: View Hard disk usage

Free: Memory usage

Uname: Viewing the kernel

Uptime: Start time, workload

Netstat: Network view

DMESG: Analysis kernel, and other hardware

Vmstat: Detecting the status of CPU, memory, hard disk

Ps-l: View processes under the current user

PS aux: View all Processes








Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Shell Command Summary

Related Article

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.