diff --git a/pages/common/seq.md b/pages/common/seq.md new file mode 100644 index 000000000..6fca21779 --- /dev/null +++ b/pages/common/seq.md @@ -0,0 +1,15 @@ +# seq + +> Output a sequence of numbers to stdout. + +- Sequence from 1 to 10: + +`seq 10` + +- Every 3rd number from 5 to 20: + +`seq 5 3 20` + +- Separate the output with a space instead of a newline: + +`seq -s " " 5 3 20` diff --git a/pages/common/uniq.md b/pages/common/uniq.md index 7be8b8bf3..fb28858e6 100644 --- a/pages/common/uniq.md +++ b/pages/common/uniq.md @@ -1,6 +1,6 @@ # uniq -> Report or omit repeated lines. +> Output the unique lines from the given input or file. - Display each line once: diff --git a/pages/osx/w.md b/pages/osx/w.md new file mode 100644 index 000000000..1cf83af6e --- /dev/null +++ b/pages/osx/w.md @@ -0,0 +1,16 @@ +# w + +> Show who is logged on and what they are doing. +> Print user login, TTY, remote host, login time, idle time, current process. + +- Show logged-in users info: + +`w` + +- Show logged-in users info without a header: + +`w -h` + +- Show info about logged-in users, sorted by their idle time: + +`w -i`