Home > OS >  Linux command is -l parameter?
Linux command is -l parameter?

Time:10-02

Linux command, such as ls -l./dir1-name
- l is the ls parameters?
./dir1-name ls parameters, or belonging to the -l parameter, or both are the parameters of the ls?
Why - before l add - symbols while./dir1-name without before?
What a great god clear point

CodePudding user response:

references the building Lord reply N degrees thought:
Linux command, such as ls - l./dir1-name
- l is the ls parameters?
./dir1-name ls parameters, or belonging to the -l parameter, or both are the parameters of the ls?
Why - before l add - symbols while./dir1-name without before?
Who is a great god clear

First of all, the ls command is to look at the meaning of file information
The -l parameter represents the detailed information to check the file
Since need to view the file, then certainly need to see the file path, if you do not specify a path, there will be the default view of the current directory you information
Both are the parameters of the ls
And as for you - and without -- - have you ever seen a path to add - before?
I hope it can help you

CodePudding user response:

The front - l - what is the row? What kind of argument plus? What kind of do not add?

CodePudding user response:

reference N degrees of thinking on the second floor response:
the front - l - what is the row? What kind of argument plus? What kind of do not add?
ls is the command, the -l option, there are some basic every command option, usually can use -- help command to view the help, there will be a detailed description of each option, some man command can also be used to help, will be more detailed

CodePudding user response:

-l is often thought to be the ls command options, and./dir1-name parameters for the ls command, parameter is command role on which object, here is the dir1-name, whereas options specify command execution, what form should use -l here on behalf of the ls command to display the directory structure in the form of a list,

CodePudding user response:

Option to add - or - before, tell the shell that is a command options
  • Related