AIX shell (1)

Source: Internet
Author: User
AIX shell skills

1) command completion and history command function: set-o vi and then use (ESC \) to complete the file name in the command, use (ESC +) to view the historical command list, and use (ESC -) use the previous command.

You can use esc k and esc j to check the historical commands. Use esc h and esc l to move the cursor position and edit it as VI text.

2) crontab file entry format:

Min hour day-of-Mon

Weekday command

3) monitor the process memory status: PS aux | grep CTRL | grep-V grep >> ~ /Mem.txt. CTRL indicates the feature string of the search process. Put this command into crontab and execute it every 10 minutes.

4)> or> can be used to create a file. For example,> TT

5) command> filename 2> & 1: redirects command output and standard errors to the file filename.

6). df-k | awk '{print $1}' | grep-V \

"Filesystem" | sed s'/\/dev \ // G' | \ tee-a res. Out

7). CMD <&-: Disable the standard input. For example, read <&-
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.