Merge pull request #41 from ritwik12/less-more

Add more and less commands
This commit is contained in:
Sai Kiran Kanuri 2020-12-09 12:51:53 +05:30 committed by GitHub
commit 5e77c55fc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions

View File

@ -316,6 +316,20 @@ In this example, we are only able to see the last 5 lines from the file
when we use the tail command with explicit -n option.
### more
More command displays the contents of a file or a command output,
displaying one screen at a time in case the file is large (Eg: log files).
It also allows forward navigation and limited backward navigation in the file.
### less
Less command is an improved version of more. It displays the contents of a file or a command output, one page at a time.
It allows backward navigation as well as forward navigation in the file and also has search options.
You can go to the beginning and the end of a file instantly.
## Echo Command in Linux
The echo command is one of the simplest commands that is used in the