-
-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add history command, add chown command and update tail command (#12)
* the history command * add the chown command * tail -f * update readme * typo
- Loading branch information
1 parent
8b85f34
commit af38109
Showing
4 changed files
with
67 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,19 @@ | ||
028-the-history-command.md | ||
# The `history` command | ||
|
||
If you type `history` you will get a list of the last 500 commands used. This gives you the possibility to copy paste commands that you executed in the past. | ||
|
||
This is powerful in combination with grep. So you can search for a command in your command history. | ||
|
||
### Examples: | ||
|
||
1. If you want to search in your history for artisan commands you ran in the past. | ||
|
||
``` | ||
history | grep artisan | ||
``` | ||
|
||
2. If you only want to show the last 10 commands you can. | ||
|
||
``` | ||
history 10 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# The `chown` command | ||
|
||
The `chown` command makes it possible to change the ownership of a file or directory. Users and groups are fundamental in Linux, with `chown` you can | ||
change the owner of a file or directory. It's also possible to change ownership on folders recursively | ||
|
||
### Examples: | ||
|
||
1. Change the owner of a file | ||
|
||
``` | ||
chown user file.txt | ||
``` | ||
|
||
2. Change the group of a file | ||
|
||
``` | ||
chown :group file.txt | ||
``` | ||
|
||
3. Change the user and group in one line | ||
|
||
``` | ||
chown user:group file.txt | ||
``` | ||
|
||
4. Change to ownership on a folder recursively | ||
|
||
``` | ||
chown -R user:group folder | ||
``` | ||
|
||
### Syntax: | ||
|
||
``` | ||
chown [-OPTION] [DIRECTORY_PATH] | ||
``` |