Linux
Regular system tasks are performed by the command, the command line for category have a clear understanding of the in-depth study of the system has a good promoting effect. Linux command Daquan can access the site . Commands are divided into two categories:Built-in command && External command。
Determine whether the command is a built-in command
type command
The following figure shows the built-in whether a command to execute the command, if not to belong to the external command, usually placed in / bin, / usr / bin, / sbin, / usr / sbin ...... and so on.
Shell
Built-in command
Bash
( Bourne Again Shell
Abbreviation) as Linux
the default system Shell
, with more than 60 commands. Commonly used are:
enable
Shell internal command for temporarily closing or activate designated commonenable -a
display all active builtinkill
Kill the process, commonlykill -9 PID
forced to shut down a processecho
Value for the variable printing, or directly outputs the specified character stringexport
A variable output as an environment variable, or a function as an environment variable outputenv
System for displaying the existing environment variables, and execution of instructions in a defined environmenthistory
Instructions for displaying the designated number of command, a read command history file directory to the history and the history command buffer command buffer write command in the File Directoryw
Provides the current logged-on user information and executing processes
Process Commands
ps
Process status for the current reporting system, withkill
instruction interrupted at any time, remove unnecessary programs, commonly usedps -a
queries all processespstree
In the manner of a tree diagram to show the relationship between the derivation process, display more intuitive
Development Command
gcc
BasedC/C++
compiler, open source applications is the most widely used compilergdb
Powerful debuggermake
Engineering compiler tools for source code compiled numerous linked asking price in order to achieve engineering managementapt-get
Is theDebian Linux
release of theAPT
package management tools
Network Management Command
nethogs
Open source command line tool (similar to Linux's top command), according to real-time statistical process or program network bandwidth usageifstat
A statistical network interface active tool
System Management Commands
top
The overall operation of real-time dynamic view of the system, is a combination of information from multiple utilities to monitor system performance and operational information
Common Commands
clear
It used to clear any information on the current terminal screencd
Given folder (or directory) set to the current working directorywhatis
What used to query a command function, and for printing results to the terminaldate
Display or set the system time and date