Linux command notes

Source: Internet
Author: User

Linux system Variable view command

PRINTENV (print environment abbreviation)


Type command

See if the command is built-in or external (external command can see the path)


Whatis command

Simple Explanation of command function


PWD command

Print the current working directory (print working dirctory)


Route command

View Gateway Commands


Help Information explained


[content] means that "content" inside can be omitted

[Content 1 | Content 2] means two select one

< content > Indicates the parameters that must be written




Switching between a Linux task and a front desk

Shell support function control, with the following command to implement the front and rear switch:

1. command& let the process run in the background

2. Jobs view the process running in the background

3. FG%n Let the background run process N to the foreground

4. BG%n let process n Go backstage
5. Kill%n Kills Job

PS: "n" is the job number you see for the jobs command, not the process number.

FG, BG, Jobs, &, CTRL + Z are all related to system tasks, although it is not necessary to use these commands, but learning is also very practical.


First, & is most often used

This is used at the end of a command, you can put this command in the background to execute


Two, CTRL + Z

You can put a command that is executing in the foreground in the background and pause

Third, Jobs

See how many commands are currently running in the background

Iv. FG

Move commands in the background to the foreground to continue running

If there are multiple commands in the background, you can use FG%jobnumber to bring up the selected command,%jobnumber is the ordinal (not PID) of the command being executed in the background through the jobs command.

V. BG

A command that pauses in the background changes to continue execution

If there are multiple commands in the background, you can use BG%jobnumber to bring up the selected command,%jobnumber is the serial number (not the PID) of the command being executed in the background through the jobs command.




This article is from the "Horic xx wo" blog, please be sure to keep this source http://zhlqx.blog.51cto.com/8430475/1532994

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.