Linux view the machine configuration information & command-line task management (sequence of three)

Configuration:

1. Check the cpu information: lscpu

2. View memory information: free -g

3. Check the hard disk information: lsblk

 

Command line Task Management:

1. ctrl + z tasks currently executed in the foreground into the background and pauses

2. fg recovery tasks into the background of the last

  These two commands are combined very practical, such as writing python code in linux command line when using vi wrote a program hello.py, and then want to run to see, this time to save the file with the command w, and then press ctrl + vi z will go back to the python look at the command line hello.py there bug, if bug, with fg command back to continue to modify vi, vi close the open avoid duplication efficiency.

  There are other tasks command:

3. jobs to view a list of background tasks

4. fg% jobNum open the specified background tasks, jobNum task number with jobs view (not pid)

Guess you like

Origin www.cnblogs.com/xiaozengzeng/p/12446111.html