Fixde typo on index and added in some more info

This commit is contained in:
Benjamyn Love 2019-02-25 03:00:10 +11:00
parent d3ec84f3a2
commit 812cc87a7b
5 changed files with 33 additions and 20 deletions

View File

@ -2,7 +2,10 @@
## Files ## Files
Commands that can be used for reading and manipulating files
### tail ### tail
`tail` by default reads the last 5 lines of the input file and then exits `tail` by default reads the last 5 lines of the input file and then exits
| Useful Flags | Function | | Useful Flags | Function |
@ -11,6 +14,7 @@
| -f | Follows the end of the file, so any new data will be printed out to the screen | | -f | Follows the end of the file, so any new data will be printed out to the screen |
### head ### head
`head` by default reads the first 5 lines of the input file and then exits `head` by default reads the first 5 lines of the input file and then exits
| Useful Flags | Function | | Useful Flags | Function |
@ -18,19 +22,20 @@
| -n *x* | Returns the first x lines of a file | | -n *x* | Returns the first x lines of a file |
### awk ### awk
`awk` is used to extract, layout and modify data using the command line (It is way more then this but its all I use it for) `awk` is used to extract, layout and modify data using the command line (It is way more then this but its all I use it for)
### sed ### sed
`sed` is the '**S**tream **ED**itor' you can use to to modify files via commands and scripts using patterns, an [example](examples/seddnszone.md) can be seen here
`sed` is the '**S**tream **ED**itor' you can use to to modify files via commands and scripts using patterns, an [example](examples/seddnszone.md) can be seen here
| Useful Flags | Function | | Useful Flags | Function |
| ------------- |:-------------| | ------------- |:-------------|
| -i | In-place, writes the changes to the file | | -i | In-place, writes the changes to the file |
| -f | Use a script file instead of reading the expression from STDIN | | -f | Use a script file instead of reading the expression from STDIN |
### grep ### grep
`grep` is used to match text in a file, `grep` is used to match text in a file,
| Useful Flags | Function | | Useful Flags | Function |
@ -44,4 +49,8 @@
Some examples of grep usage can be found [here](/examples/grep) Some examples of grep usage can be found [here](/examples/grep)
### losof
`lsof` is a command that will show you what processes have specified file open currently you can see an example [here](/examples/lsof)
### rev ### rev

4
docs/examples/lsof.md Normal file
View File

@ -0,0 +1,4 @@
# lsof examples
```COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
tail 17481 ben 3r REG 0,49 240 1220028 docs/index.md```

View File

@ -2,7 +2,7 @@
[Klaatu barada nikto](https://www.imdb.com/title/tt0106308/) [Klaatu barada nikto](https://www.imdb.com/title/tt0106308/)
## What is this? ## What is this
This is a compendium of all the useless facts, tips, tricks and commands that I know, enjoy This is a compendium of all the useless facts, tips, tricks and commands that I know, enjoy

View File

@ -1,4 +1,4 @@
site_name: Usefull commands and tips site_name: Useful commands and tips
nav: nav:
- Home: index.md - Home: index.md
- Commands: commands.md - Commands: commands.md