mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-12 18:47:48 +00:00
Update cheatsheets
This commit is contained in:
4
tldr/du
4
tldr/du
@@ -31,3 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- List the human-readable size of all `.jpg` files in subdirectories of the current directory, and show a cumulative total at the end:
|
||||
|
||||
`du -ch {{*/*.jpg}}`
|
||||
|
||||
- List all files and directories (including hidden ones) above a certain [t]hreshold size (useful for investigating what is actually taking up the space):
|
||||
|
||||
`du --all --human-readable --threshold {{1G|1024M|1048576K}} .[^.]* *`
|
||||
|
||||
21
tldr/linux/ntpd
Normal file
21
tldr/linux/ntpd
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# ntpd
|
||||
|
||||
> The official NTP (Network Time Protocol) daemon to synchronize the system clock to remote time servers or local reference clocks.
|
||||
> More information: <https://manned.org/ntpd>.
|
||||
|
||||
- Start the daemon:
|
||||
|
||||
`sudo ntpd`
|
||||
|
||||
- Synchronize system time with remote servers a single time (quit after synchronizing):
|
||||
|
||||
`sudo ntpd --quit`
|
||||
|
||||
- Synchronize a single time allowing "Big" adjustments:
|
||||
|
||||
`sudo ntpd --panicgate --quit`
|
||||
@@ -6,16 +6,21 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# type
|
||||
|
||||
> Display the type of command the shell will execute.
|
||||
> Note: all examples are not POSIX compliant.
|
||||
> More information: <https://manned.org/type>.
|
||||
|
||||
- Display the type of a command:
|
||||
|
||||
`type {{command}}`
|
||||
|
||||
- Display all locations containing the specified executable:
|
||||
- Display all locations containing the specified executable (works only in Bash/fish/Zsh shells):
|
||||
|
||||
`type -a {{command}}`
|
||||
|
||||
- Display the name of the disk file that would be executed:
|
||||
- Display the name of the disk file that would be executed (works only in Bash/fish/Zsh shells):
|
||||
|
||||
`type -p {{command}}`
|
||||
|
||||
- Display the type of a specific command, alias/keyword/function/builtin/file (works only in Bash/fish shells):
|
||||
|
||||
`type -t {{command}}`
|
||||
|
||||
Reference in New Issue
Block a user