[Reading notes] Linux command line with Shell programming reading notes 01

Source: Internet
Author: User
Tags disk usage

1. Components of Linux

1) Linux kernel (kernel)

2) GNU tool chain

3) GUI/CLI work on several sides (shell)

4) application (APP)

The main work of the 2Linux kernel:

1) Managing Memory

2) Management process

3) Managing hardware devices

4) Managing the file system

3. Memory Management related

FREE-M Display Memory Information

Cat/proc/meminfo Show All memory information

IPCS-M displays shared segment memory information.

4. Process Management Related

PS command displays process information all processes

Ps-aux

5.bash Tips Information Related

echo $PS 1 Display message content

ps1=[\t][\u]\$ can modify the content of the prompt message

6./is the root directory/root directory on which the first disk is rooted drive. Mount points are attached to a directory above the drive

7. File and directory operations

CD Switch Directory CD: The parent path. Represents the current path

LS list file ls-a list all Files ls-l Show all file details equal to LL

Parameter list in Linux, the single parameter usually begins with an English dash, and the whole word parameter generally starts with two English dashes, which are used in many applications.

Create a file touch creates an empty file.

Atime is the modification time can be modified fstab or which file Atime remove improve performance.

CP is a copy file SCP is a remote copy file

-R recursive replication directories are often used

mkdir creating a directory Mkdir-p can create a parent path that does not exist

ln is creating a file link ln-s creating a soft connection

Hard links can only be made on one disk.

Delete file rm Force recursive delete RM-RF but generally want to watch one more space to kill all the files.

MV Mobile Directory

Cat more less can view files

Tail-f ability to view information on file changes in real time

8. PS-A Displays all process information Ps-ef can also

Ps-ef--forest can view all the process information in the tree shape.

The top command installs Epel-release and then installs the Htop command as well as the SAR vmstat Iostat, which can be used for performance monitoring operations.

Kill is a process ID parameter killall can be the name of the service

Killapp http* is able to remove all the processes that begin with HTTP.

Mount can be hung on the device Mout-o loop hangs in a single file

Umount Cancel hanging in file

DF View disk space on the device du displays the disk usage in the directory they add the-H parameter table easy to see the file size

Tar is able to be packaged and decompressed, and his principle is

TAR-CVF c is compress compressed meaning to create a file just packaging not compression so the big thing changed basically

TAR-ZVXF x is the extract extract file-Z is the file that takes-X extracted as input and then to the gzip inside to extract the processing.

Kill kills Process

[Reading notes] Linux command line with Shell programming reading notes 01

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.