mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 22:06:03 +02:00
git-replace, w: add pages (#4496)
This commit is contained in:
parent
c4cf48e922
commit
b3c2c81d07
2 changed files with 36 additions and 0 deletions
16
pages/common/git-replace.md
Normal file
16
pages/common/git-replace.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# git replace
|
||||
|
||||
> Create, list, and delete refs to replace objects.
|
||||
> More information: <https://git-scm.com/docs/git-replace>.
|
||||
|
||||
- Replace any commit with a different one, leaving other commits unchanged:
|
||||
|
||||
`git replace {{object}} {{replacement}}`
|
||||
|
||||
- Delete existing replace refs for the given objects:
|
||||
|
||||
`git replace --delete {{object}}`
|
||||
|
||||
- Edit an object’s content interactively:
|
||||
|
||||
`git replace --edit {{object}}`
|
20
pages/linux/w.md
Normal file
20
pages/linux/w.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# w
|
||||
|
||||
> Display who is logged in and their processes.
|
||||
> More information: <https://www.geeksforgeeks.org/w-command-in-linux-with-examples/>.
|
||||
|
||||
- Display information about all users who are currently logged in:
|
||||
|
||||
`w`
|
||||
|
||||
- Display information about a specific user:
|
||||
|
||||
`w {{user}}`
|
||||
|
||||
- Display information without including the header:
|
||||
|
||||
`w --no-header`
|
||||
|
||||
- Display information without including the login, JCPU and PCPU columns:
|
||||
|
||||
`w --short`
|
Loading…
Add table
Reference in a new issue