Skip to content

Commit b6a557f

Browse files
authored
*: remove and merge duplicate pages (#15983)
1 parent 112e4f8 commit b6a557f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+183
-626
lines changed

Diff for: pages/common/chsh.md

-17
This file was deleted.

Diff for: pages/common/coproc.md

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323

2424
`coproc {{name}} { while read line; do {{command1; command2; ...}}; done }`
2525

26+
- Create a coprocess which repeatedly reads `stdin`, runs a pipeline on the input, and writes the output to `stdout`:
27+
28+
`coproc {{name}} { while read line; do echo "$line" | {{command1 | command2 | ...}} | cat /dev/fd/0; done }`
29+
2630
- Create and use a coprocess running `bc`:
2731

2832
`coproc BC { bc --mathlib; }; echo "1/3" >&"${BC[1]}"; read output <&"${BC[0]}"; echo "$output"`

Diff for: pages/common/cp.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,24 @@
1313

1414
- Recursively copy a directory's contents to another location (if the destination exists, the directory is copied inside it):
1515

16-
`cp -R {{path/to/source_directory}} {{path/to/target_directory}}`
16+
`cp {{[-r|--recursive]}} {{path/to/source_directory}} {{path/to/target_directory}}`
1717

1818
- Copy a directory recursively, in verbose mode (shows files as they are copied):
1919

20-
`cp -vR {{path/to/source_directory}} {{path/to/target_directory}}`
20+
`cp {{[-vr|--verbose --recursive]}} {{path/to/source_directory}} {{path/to/target_directory}}`
2121

2222
- Copy multiple files at once to a directory:
2323

24-
`cp -t {{path/to/destination_directory}} {{path/to/file1 path/to/file2 ...}}`
24+
`cp {{[-t|--target-directory]}} {{path/to/destination_directory}} {{path/to/file1 path/to/file2 ...}}`
2525

26-
- Copy text files to another location, in interactive mode (prompts user before overwriting):
26+
- Copy all files with a specific extension to another location, in interactive mode (prompts user before overwriting):
2727

28-
`cp -i {{*.txt}} {{path/to/target_directory}}`
28+
`cp {{[-i|--interactive]}} {{*.ext}} {{path/to/target_directory}}`
2929

3030
- Follow symbolic links before copying:
3131

32-
`cp -L {{link}} {{path/to/target_directory}}`
32+
`cp {{[-L|--dereference]}} {{link}} {{path/to/target_directory}}`
3333

34-
- Use the first argument as the destination directory (useful for `xargs ... | cp -t <DEST_DIR>`):
34+
- Use the full path of source files, creating any missing intermediate directories when copying:
3535

36-
`cp -t {{path/to/target_directory}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`
36+
`cp --parents {{source/path/to/file}} {{path/to/target_file}}`

Diff for: pages/common/duc.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44
> Duc maintains a database of accumulated sizes of directories of the file system, allowing queries in this database, or creating fancy graphs to show where data is.
55
> More information: <http://duc.zevv.nl>.
66
7-
- Index the /usr directory, writing to the default database location ~/.duc.db:
7+
- Index the `/usr` directory, writing to the default database location `~/.duc.db`:
88

99
`duc index {{/usr}}`
1010

11-
- List all files and directories under /usr/local, showing relative file sizes in a [g]raph:
11+
- List all files and directories under `/usr/local`, showing relative file sizes in a graph:
1212

13-
`duc ls -Fg {{/usr/local}}`
13+
`duc ls {{[-Fg|--classify --graph]}} {{/usr/local}}`
1414

15-
- List all files and directories under /usr/local using treeview recursively:
15+
- List all files and directories under `/usr/local` using treeview recursively:
1616

17-
`duc ls -Fg -R {{/usr/local}}`
17+
`duc ls {{[-Fg|--classify --graph]}} {{[-R|--recursive]}} {{/usr/local}}`
1818

1919
- Start the graphical interface to explore the file system using sunburst graphs:
2020

Diff for: pages/common/ed.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
- Start an interactive editor session with an empty document and without diagnostics, byte counts and '!' prompt:
2020

21-
`ed {{[-q|--quiet]}}`
21+
`ed {{[-q|--quiet]}} {{[-s|--script]}}`
2222

2323
- Start an interactive editor session without exit status change when command fails:
2424

Diff for: pages/common/flex.md

-26
This file was deleted.

Diff for: pages/common/last.md

+14-6
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,34 @@
33
> View the last logged in users.
44
> More information: <https://manned.org/last>.
55
6-
- View last logins, their duration and other information as read from `/var/log/wtmp`:
6+
- View last login infromation (e.g., username, terminal, boot time, kernel) of all users as read from `/var/log/wtmp`:
77

88
`last`
99

10+
- List login information of a specific user:
11+
12+
`last {{username}}`
13+
1014
- Specify how many of the last logins to show:
1115

12-
`last -n {{login_count}}`
16+
`last {{[-n|--limit]}} {{login_count}}`
1317

1418
- Print the full date and time for entries and then display the hostname column last to prevent truncation:
1519

16-
`last -F -a`
20+
`last {{[-F|--fulltimes]}} {{[-a|--hostlast]}}`
1721

1822
- View all logins by a specific user and show the IP address instead of the hostname:
1923

20-
`last {{username}} -i`
24+
`last {{username}} {{[-i|--ip]}}`
25+
26+
- List information since a specific time and date:
27+
28+
`last {{[-s|--since]}} {{-7days}}`
2129

2230
- View all recorded reboots (i.e., the last logins of the pseudo user "reboot"):
2331

2432
`last reboot`
2533

26-
- View all recorded shutdowns (i.e., the last logins of the pseudo user "shutdown"):
34+
- Display help:
2735

28-
`last shutdown`
36+
`last {{[-h|--help]}}`

Diff for: pages/common/lex.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
> Lexical analyzer generator.
44
> Given the specification for a lexical analyzer, generates C code implementing it.
55
> Note: on most major OSes, this command is an alias for `flex`.
6-
> More information: <https://manned.org/lex.1>.
6+
> More information: <https://manned.org/lex>.
77
88
- Generate an analyzer from a Lex file, storing it to the file `lex.yy.c`:
99

Diff for: pages/common/man.md

+9-5
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,30 @@
77

88
`man {{command}}`
99

10+
- Open the man page for a command in a browser (`BROWSER` environment variable can replace `=browser_name`):
11+
12+
`man {{[-Hbrowser_name|--html=browser_name]}} {{command}}`
13+
1014
- Display the man page for a command from section 7:
1115

1216
`man {{7}} {{command}}`
1317

1418
- List all available sections for a command:
1519

16-
`man -f {{command}}`
20+
`man {{[-f|--whatis]}} {{command}}`
1721

1822
- Display the path searched for manpages:
1923

20-
`man --path`
24+
`man {{[-w|--path]}}`
2125

2226
- Display the location of a manpage rather than the manpage itself:
2327

24-
`man -w {{command}}`
28+
`man {{[-w|--where]}} {{command}}`
2529

2630
- Display the man page using a specific locale:
2731

28-
`man {{command}} --locale={{locale}}`
32+
`man {{[-L|--locale]}} {{locale}} {{command}}`
2933

3034
- Search for manpages containing a search string:
3135

32-
`man -k "{{search_string}}"`
36+
`man {{[-k|--apropos]}} "{{search_string}}"`

Diff for: pages/common/mycli.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# mycli
22

3-
> A command-line client for MySQL that can do auto-completion and syntax highlighting.
4-
> More information: <https://mycli.net>.
3+
> A CLI for MySQL, MariaDB, and Percona that can do auto-completion and syntax highlighting.
4+
> More information: <https://manned.org/mycli>.
55
66
- Connect to a local database on port 3306, using the current user's username:
77

88
`mycli {{database_name}}`
99

1010
- Connect to a database (user will be prompted for a password):
1111

12-
`mycli -u {{username}} {{database_name}}`
12+
`mycli {{[-u|--user]}} {{username}} {{database_name}}`
1313

1414
- Connect to a database on another host:
1515

16-
`mycli -h {{database_host}} -P {{port}} -u {{username}} {{database_name}}`
16+
`mycli {{[-h|--host]}} {{database_host}} {{[-P|--port]}} {{port}} {{[-u|--user]}} {{username}} {{database_name}}`

Diff for: pages/common/pngcheck.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# pngcheck
22

3-
> Print detailed information about and verify PNG, JNG, and MNG files.
4-
> More information: <http://www.libpng.org/pub/png/apps/pngcheck.html>.
3+
> Forensics tool for validating the integrity of PNG based (PNG, JNG, MNG) image files.
4+
> Can also extract embedded images and text from a file.
5+
> More information: <https://github.com/pnggroup/pngcheck>.
56
6-
- Print a summary for an image (width, height, and color depth):
7+
- Verify the integrity of an image file (width, height, and color depth):
78

89
`pngcheck {{path/to/image.png}}`
910

Diff for: pages/common/renice.md

+10-6
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,18 @@
55
> See also: `nice`.
66
> More information: <https://manned.org/renice>.
77
8-
- Increase/decrease the priority of a running [p]rocess:
8+
- Set the absolute priority of a running process:
99

10-
`renice -n {{3}} -p {{pid}}`
10+
`renice --priority {{3}} {{[-p|--pid]}} {{pid}}`
1111

12-
- Increase/decrease the priority of all processes owned by a [u]ser:
12+
- Increase the priority of a running process:
1313

14-
`renice -n {{-4}} -u {{uid|user}}`
14+
`sudo renice --relative {{-4}} {{[-p|--pid]}} {{pid}}`
1515

16-
- Increase/decrease the priority of all processes that belong to a process [g]roup:
16+
- Decrease the priority of all processes owned by a user:
1717

18-
`renice -n {{5}} -g {{process_group}}`
18+
`renice --relative {{4}} {{[-u|--user]}} {{uid|user}}`
19+
20+
- Set the priority of all processes that belong to a process group:
21+
22+
`sudo renice {{-5}} {{[-g|--pgrp]}} {{process_group}}`

Diff for: pages/common/rm.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,20 @@
1010

1111
- Remove specific files ignoring nonexistent ones:
1212

13-
`rm -f {{path/to/file1 path/to/file2 ...}}`
13+
`rm {{[-f|--force]}} {{path/to/file1 path/to/file2 ...}}`
1414

1515
- Remove specific files interactively prompting before each removal:
1616

17-
`rm -i {{path/to/file1 path/to/file2 ...}}`
17+
`rm {{[-i|--interactive]}} {{path/to/file1 path/to/file2 ...}}`
1818

1919
- Remove specific files printing info about each removal:
2020

21-
`rm -v {{path/to/file1 path/to/file2 ...}}`
21+
`rm {{[-v|--verbose]}} {{path/to/file1 path/to/file2 ...}}`
2222

2323
- Remove specific files and directories recursively:
2424

25-
`rm -r {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`
25+
`rm {{[-r|--recursive]}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`
26+
27+
- Remove empty directories (this is considered the safe method):
28+
29+
`rm {{[-d|--dir]}} {{path/to/directory}}`

Diff for: pages/common/rmdir.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010

1111
- Remove specific nested directories recursively:
1212

13-
`rmdir -p {{path/to/directory1 path/to/directory2 ...}}`
13+
`rmdir {{[-p|--parents]}} {{path/to/directory1 path/to/directory2 ...}}`

Diff for: pages/common/script.md

+14-6
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,32 @@
11
# script
22

3-
> Make a typescript file of a terminal session.
3+
> Record all terminal output to a typescript file.
44
> More information: <https://manned.org/script>.
55
6-
- Start recording in file named "typescript":
6+
- Record a new session to a file named `typescript` in the current directory:
77

88
`script`
99

1010
- Stop recording:
1111

1212
`exit`
1313

14-
- Start recording in a given file:
14+
- Record a new session to a custom filepath:
1515

16-
`script {{logfile.log}}`
16+
`script {{path/to/session.out}}`
1717

1818
- Append to an existing file:
1919

20-
`script -a {{logfile.log}}`
20+
`script {{[-a|--append]}} {{logfile.log}}`
21+
22+
- Record timing information (data is outputted to `stderr`):
23+
24+
`script {{[-t|--timing]}} 2> {{path/to/timing_file}}`
25+
26+
- Write out data as soon as it happens:
27+
28+
`script {{[-f|--flush]}} {{path/to/file}}`
2129

2230
- Execute quietly without start and done messages:
2331

24-
`script -q {{logfile.log}}`
32+
`script {{[-q|--quiet]}} {{logfile.log}}`

Diff for: pages/common/tac.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212

1313
`{{cat path/to/file}} | tac`
1414

15-
- Use a specific [s]eparator:
15+
- Use a specific separator:
1616

17-
`tac -s {{separator}} {{path/to/file1 path/to/file2 ...}}`
17+
`tac {{[-s|--separator]}} {{separator}} {{path/to/file1 path/to/file2 ...}}`
1818

19-
- Use a specific [r]egex as a [s]eparator:
19+
- Use a specific regex as a separator:
2020

21-
`tac -r -s {{separator}} {{path/to/file1 path/to/file2 ...}}`
21+
`tac {{[-r|--regex]}} {{[-s|--separator]}} {{separator}} {{path/to/file1 path/to/file2 ...}}`
2222

23-
- Use a separator [b]efore each file:
23+
- Use a separator before each file:
2424

25-
`tac -b {{path/to/file1 path/to/file2 ...}}`
25+
`tac {{[-b|--before]}} {{path/to/file1 path/to/file2 ...}}`

Diff for: pages/common/uname.md

+17-5
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,30 @@
88

99
`uname`
1010

11+
- Print all available system information:
12+
13+
`uname {{[-a|--all]}}`
14+
1115
- Print system architecture and processor information:
1216

13-
`uname --machine --processor`
17+
`uname {{[-mp|--machine --processsor]}}`
1418

1519
- Print kernel name, kernel release and kernel version:
1620

17-
`uname --kernel-name --kernel-release --kernel-version`
21+
`uname {{[-srv|--kernel-name --kernel-release --kernel-version]}}`
1822

1923
- Print system hostname:
2024

21-
`uname --nodename`
25+
`uname {{[-n|--nodename]}}`
2226

23-
- Print all available system information:
27+
- Print the current operating system name:
28+
29+
`uname {{[-o|--operating-system]}}`
30+
31+
- Print the current network node host name:
32+
33+
`uname {{[-n|--nodename]}}`
34+
35+
- Display help:
2436

25-
`uname --all`
37+
`uname --help`

0 commit comments

Comments
 (0)