96 Linux Operating skills required (first)

Source: Internet
Author: User
Keywords Rookie Linux operation tips
Tags can make different directory editor file hard kill learn

Today, the editor of the Wind network for Linux rookie to bring 96 kinds of practical operation of Linux, the necessary skills, hard to learn, you can make Linux rookie also mastered some must kill skills! For details, let's look down.

1. View Man file ...

Nroff-man Man/libnet.3 | Pager
Sometimes the man file is not in the system directory. This is the way to view non-standard man files.

2. Run the program as a different user ...

Su-userhttp://www.aliyun.com/zixun/aggregation/11696.html ">name-c" Where/is/command/line "
Sometimes you need to run a special identity program ... You can have su do it ...

3. Extract BZ Files

TAR-JVXF some.bz
is to change the zvxf of tar to JVXF.

4. Edit/etc/inittab directly after the method of entry into force.

Execute init q

5. Let Linux execute several commands continuously, error stop

Command1 && command2 && command3 ....

6. BG and FG Management in Linux

When we play Ctrl a task is suspended (is paused), and the screen returns a number, this time can use "BG% number" To put the process in the background to perform ... This is a good time to make amends when you forget to add & ... The same "FG%" will allow the process to be put into the foreground to perform ...
The job command is used to view the current BG process ...

7. Ctrl and CTRL

CTRL seems to be inherited from the end of the east, flow control, used to suspend sending data to the terminal. Ctrl-q used to restore recovery

8. Catalog Statistics Textbook

Save it as total.sh and then use total.sh absolute path to count the size of the directory under the path
#!/bin/sh
Du 1--max-depth=1 | Sort-n|awk ' {printf '%7.2fm---->%s\n ', 1/1024,2} ' |sed ' s:/.*/\ ([^/]\{1,\}\): \1:g '

9. grep does not show itself processes

Ps-aux|grep httpd|grep-v grep
By Grep-v grep again, you can suppress the process that you are performing grep itself, the-v argument is not displaying the list of process names.

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.