The basic format of the command linux

In learning Linux system, it is essential to use the contact method and format of the command, we learn this basic format linux commands.

The basic format of linux command:

[root@localhost ~]# 命令[选项][参数]
                  # command [options] [arguments] 

Command format [] representatives is optional, that is, some commands do not need no options parameter, but some require more than one option or command parameters at runtime.
Let's take a brief look at (commands, options, parameters)

1, the command
 COMMAND (command): a binary executable program file.

2, option (options)
option is to adjust the switch command execution behavior, that is, determines the different options for different display result command,

Options Options are divided into long and short options:

 短选项:比如-h,-l,-s等。    (-  后面接单个字母)
        1.短选项都是使用‘-’引导,当有多个短选项时,各选项之间使用空格隔开,例:命令 -l -h
        2.有些命令的短选项可以组合,比如-l –h 可以组合为–lh 例:命令 -lh
  长选项:比如--help,--list等。(--  后面接单词)
        1.长选面都是完整的单词
        2.长选项通常不能组合

We can use this command ls simple to express:
The first is a short option, what with the ls command with the short option
Here Insert Picture Description
let's look at, with the ls command to display when there are multiple short options, separated by spaces between options open
Here Insert Picture Description
a combination of short option displays
Here Insert Picture Description
now we use the long option with the ls command
Here Insert Picture Description
these commands + options explained later, to understand the methods used.
3, parameters (arguments):
parameter refers to the operation target command, the general files, directories, users, and processes can be operated as a command parameter.
We use ls -a command to view all files under the name ls.
Here Insert Picture Description
I use this anaconda-ks.cfg (filename) file to show it
Here Insert Picture Description

Guess you like

Origin blog.csdn.net/nnj99/article/details/92394163