From 780ba1de5015c9f7b8a04488c00d670481a24dad Mon Sep 17 00:00:00 2001 From: Polle Vanhoof Date: Wed, 25 Oct 2017 15:58:18 +0200 Subject: [PATCH 1/4] write: add page --- pages/linux/write | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pages/linux/write diff --git a/pages/linux/write b/pages/linux/write new file mode 100644 index 000000000..f8bf3d652 --- /dev/null +++ b/pages/linux/write @@ -0,0 +1,17 @@ +# write + +> Write a message on the terminal of a specified logged in user. (ctrl-C to stop writing messages) +> To find out your own terminal_id see the 'tty' command +> To find out all terminal_ids of all users active on the system see the 'who' command + +- Send a message to user {{username}} on terminal {{terminal_id}}: + +`write {{username}} {{terminal_id}}` + +- send message to user 'testuser' on terminal /dev/tty/5 + +`write {{testuser}} {{tty/5}}` + +- send message to user 'jhondoe' on pseudo terminal /dev/pts/5 + +`write {{jhondoe}} {{pts/5}}` From 4250b8ad66080eaa8952a55c07ec2945b85d2b9f Mon Sep 17 00:00:00 2001 From: Polle Vanhoof Date: Thu, 26 Oct 2017 10:16:38 +0200 Subject: [PATCH 2/4] write: Update page extension and heading --- pages/linux/{write => write.md} | 1 - 1 file changed, 1 deletion(-) rename pages/linux/{write => write.md} (89%) diff --git a/pages/linux/write b/pages/linux/write.md similarity index 89% rename from pages/linux/write rename to pages/linux/write.md index f8bf3d652..168a4ecfb 100644 --- a/pages/linux/write +++ b/pages/linux/write.md @@ -1,7 +1,6 @@ # write > Write a message on the terminal of a specified logged in user. (ctrl-C to stop writing messages) -> To find out your own terminal_id see the 'tty' command > To find out all terminal_ids of all users active on the system see the 'who' command - Send a message to user {{username}} on terminal {{terminal_id}}: From c7275e5146c92e31b5dfa8636bad976c54e3ae2e Mon Sep 17 00:00:00 2001 From: Polle Vanhoof Date: Thu, 26 Oct 2017 10:29:50 +0200 Subject: [PATCH 3/4] write: update remaining issues (capital letters) --- pages/linux/write.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/linux/write.md b/pages/linux/write.md index 168a4ecfb..757b456df 100644 --- a/pages/linux/write.md +++ b/pages/linux/write.md @@ -1,16 +1,16 @@ # write -> Write a message on the terminal of a specified logged in user. (ctrl-C to stop writing messages) -> To find out all terminal_ids of all users active on the system see the 'who' command +> Write a message on the terminal of a specified logged in user (ctrl-C to stop writing messages). +> To find out all terminal_ids of all users active on the system see the 'who' command. - Send a message to user {{username}} on terminal {{terminal_id}}: `write {{username}} {{terminal_id}}` -- send message to user 'testuser' on terminal /dev/tty/5 +- Send message to user 'testuser' on terminal /dev/tty/5: `write {{testuser}} {{tty/5}}` -- send message to user 'jhondoe' on pseudo terminal /dev/pts/5 +- Send message to user 'jhondoe' on pseudo terminal /dev/pts/5: `write {{jhondoe}} {{pts/5}}` From abd98777f5740e9aa4a192ee66e06bc143f8952b Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Thu, 26 Oct 2017 21:39:43 +0530 Subject: [PATCH 4/4] write: simplify page - Simplify heading and made who command within backticks - Simplified some command descriptions. --- pages/linux/write.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/linux/write.md b/pages/linux/write.md index 757b456df..37877e0d8 100644 --- a/pages/linux/write.md +++ b/pages/linux/write.md @@ -1,16 +1,16 @@ # write > Write a message on the terminal of a specified logged in user (ctrl-C to stop writing messages). -> To find out all terminal_ids of all users active on the system see the 'who' command. +> Use the `who` command to find out all terminal_ids of all active users active on the system. -- Send a message to user {{username}} on terminal {{terminal_id}}: +- Send a message to a given user on a given terminal id: `write {{username}} {{terminal_id}}` -- Send message to user 'testuser' on terminal /dev/tty/5: +- Send message to "testuser" on terminal "/dev/tty/5": `write {{testuser}} {{tty/5}}` -- Send message to user 'jhondoe' on pseudo terminal /dev/pts/5: +- Send message to "jhondoe" on pseudo terminal "/dev/pts/5": `write {{jhondoe}} {{pts/5}}`