Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
UNIX command line
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ghislain Durif
UNIX command line
Commits
e4068d08
Unverified
Commit
e4068d08
authored
4 years ago
by
Laurent Modolo
Browse files
Options
Downloads
Patches
Plain Diff
fix option with cal
parent
1a685e07
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
3_first_steps_in_a_terminal.md
+4
-4
4 additions, 4 deletions
3_first_steps_in_a_terminal.md
with
4 additions
and
4 deletions
3_first_steps_in_a_terminal.md
+
4
−
4
View file @
e4068d08
...
...
@@ -71,18 +71,18 @@ When you launch a command, various things can happen:
We can pass argument to the
`cal`
software the following way.
```
sh
cal
-
N
cal
-
3
```
What is the effect of the
`-
N
`
parameter ?
What is the effect of the
`-
3
`
parameter ?
You can add as many parameters as you want to your command, try
`-
N
-
C
`
what is the meaning of the
`-
C
`
parameter ?
You can add as many parameters as you want to your command, try
`-
3
-
1
`
what is the meaning of the
`-
1
`
parameter ?
The
`-H`
option display the month of a given date in a
`yyyy-mm-dd`
format. Try to display your month of birth in vertical format.
Traditionally, parameters are
*named*
which means that they are in the form of:
*
`-X`
for an on/off option (like
`cal -
N
`
)
*
`-X`
for an on/off option (like
`cal -
3
`
)
*
`-X something`
for an input option (like
`cal -H yyyy-mm-dd`
)
Here the name of the parameter is
`X`
, but software can also accept list of unnamed parameters. Try the following:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment