mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-10 04:58:11 +00:00
Update cheatsheets
This commit is contained in:
@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display all filesystems and their disk usage in human-readable form:
|
||||
|
||||
`df -h`
|
||||
`df {{-h|--human-readable}}`
|
||||
|
||||
- Display the filesystem and its disk usage containing the given file or directory:
|
||||
|
||||
@@ -22,8 +22,12 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Include statistics on the number of free inodes:
|
||||
|
||||
`df -i`
|
||||
`df {{-i|--inodes}}`
|
||||
|
||||
- Display filesystems but exclude the specified types:
|
||||
|
||||
`df -x {{squashfs}} -x {{tmpfs}}`
|
||||
`df {{-x|--exclude-type}} {{squashfs}} {{-x|--exclude-type}} {{tmpfs}}`
|
||||
|
||||
- Display filesystem types:
|
||||
|
||||
`df {{-T|--print-type}}`
|
||||
|
||||
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Package management utility for RHEL, Fedora, and CentOS (it replaces dnf, which in turn replaced yum).
|
||||
> DNF5 is a C++ rewrite of the DNF package manager featuring improved performance and a smaller size.
|
||||
> For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
|
||||
> More information: <https://dnf5.readthedocs.io/>.
|
||||
> More information: <https://dnf5.readthedocs.io>.
|
||||
|
||||
- Upgrade installed packages to the newest available versions:
|
||||
|
||||
|
||||
@@ -16,11 +16,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a copy with Unix-style line endings:
|
||||
|
||||
`dos2unix -n {{path/to/file}} {{path/to/new_file}}`
|
||||
`dos2unix {{-n|--newfile}} {{path/to/file}} {{path/to/new_file}}`
|
||||
|
||||
- Display file information:
|
||||
|
||||
`dos2unix -i {{path/to/file}}`
|
||||
`dos2unix {{-i|--info}} {{path/to/file}}`
|
||||
|
||||
- Keep/add/remove Byte Order Mark:
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Change macOS-style line endings to Unix-style.
|
||||
> Replaces CR with LF.
|
||||
> See also `unix2dos`, `unix2mac`, and `dos2unix`.
|
||||
> More information: <https://waterlan.home.xs4all.nl/dos2unix.html>.
|
||||
> More information: <https://manned.org/mac2unix>.
|
||||
|
||||
- Change the line endings of a file:
|
||||
|
||||
@@ -16,11 +16,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a copy with Unix-style line endings:
|
||||
|
||||
`mac2unix -n {{path/to/file}} {{path/to/new_file}}`
|
||||
`mac2unix {{-n|--newfile}} {{path/to/file}} {{path/to/new_file}}`
|
||||
|
||||
- Display file information:
|
||||
|
||||
`mac2unix -i {{path/to/file}}`
|
||||
`mac2unix {{-i|--info}} {{path/to/file}}`
|
||||
|
||||
- Keep/add/remove Byte Order Mark:
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Change Unix-style line endings to DOS-style.
|
||||
> Replaces LF with CRLF.
|
||||
> See also `unix2mac`, `dos2unix`, and `mac2unix`.
|
||||
> More information: <https://waterlan.home.xs4all.nl/dos2unix.html>.
|
||||
> More information: <https://manned.org/unix2dos>.
|
||||
|
||||
- Change the line endings of a file:
|
||||
|
||||
@@ -16,11 +16,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a copy with DOS-style line endings:
|
||||
|
||||
`unix2dos -n {{path/to/file}} {{path/to/new_file}}`
|
||||
`unix2dos {{-n|--newfile}} {{path/to/file}} {{path/to/new_file}}`
|
||||
|
||||
- Display file information:
|
||||
|
||||
`unix2dos -i {{path/to/file}}`
|
||||
`unix2dos {{-i|--info}} {{path/to/file}}`
|
||||
|
||||
- Keep/add/remove Byte Order Mark:
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Change Unix-style line endings to macOS-style.
|
||||
> Replaces LF with CR.
|
||||
> See also `unix2dos`, `dos2unix`, and `mac2unix`.
|
||||
> More information: <https://waterlan.home.xs4all.nl/dos2unix.html>.
|
||||
> Informasi lebih lanjut: <https://manned.org/unix2mac>.
|
||||
|
||||
- Change the line endings of a file:
|
||||
|
||||
@@ -16,11 +16,11 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Create a copy with macOS-style line endings:
|
||||
|
||||
`unix2mac -n {{path/to/file}} {{path/to/new_file}}`
|
||||
`unix2mac {{-n|--newfile}} {{path/to/file}} {{path/to/new_file}}`
|
||||
|
||||
- Display file information:
|
||||
|
||||
`unix2mac -i {{path/to/file}}`
|
||||
`unix2mac {{-i|--info}} {{path/to/file}}`
|
||||
|
||||
- Keep/add/remove Byte Order Mark:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user