Summary of Linux Utility commands

Source: Internet
Author: User

Linux Utility Commands

1, More Page page to view ( down one ' space ', prev 'b', exit 'q' ) Example:moreSend.log

2, less page to view ( the next page ' space ', the previous page ' B ', exit ' Q ', go up one line '?') , down one line '?')

3, tail-10 send.log last ten lines

4, tail-f send.log Real-time printing, often used for real-time monitoring

5, tail-f nohp.log Real-time printing, change the file can also print new

6, rpm-qa | grep mysql view mysql installation file

7. service iptables status View firewall state

8, service iptables start to open the firewall

9. service iptables stop shutting down the firewall

chkconfig iptables--list See if the firewall is booting

One,chkconfig iptables on/off firewall boot / no boot

iptables-l-n--line--number View firewall rules (--number plus line number)

Vim Utility

1, yy Copy the current line, 5yy Copy the cursor 5 lines at a time

2, p Paste

3, v Enter the character selection mode, after the selection is complete. Press y to copy,p to paste

4, control/ctrl+v into the block selection mode, after the selection is complete. Press y to copy,p to paste

5, shift+v Enter the line selection mode, after the selection is complete. Press y to copy,p to paste

6, find and replace (in the bottom command mode input)

7, %s/aa/bb. All AA replacements for BB

8, a after the cursor one begins to insert

Ten, A in the last insert of a row

One, I Insert at the front of the row

gg jumps directly to the first line of the file

G jump directly to the last line of the file

dd Delete Row, 5dd Delete the cursor 5 lines at a time

Sweep

Focus on Java High Master

Summary of Linux Utility commands

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.