=====unix Keyword 3=====
Tail
====Definition====
The tail command allows you to grab the last line(s) from the output of a previous command or from a file. Unless you specify the number of lines that you would like the command to grab, it will default to return the last ten lines. In order to specify the the number of lines, add -# (# being the actual number if lines you want to grab) to the command.
====References====
List any sites, books, or sources utilized when researching information on this topic. (Remove any filler text).
* Professor Haas, In class discussion - 11-9-12.
=====unix Keyword 3 Phase 2=====
**mesg/write/wall**
====Definition====
Definition (in your own words) of the chosen keyword.
====References====
List any sites, books, or sources utilized when researching information on this topic. (Remove any filler text).
* Reference 1
* Reference 2
* Reference 3
====Demonstration====
//**Demonstration of mesg**//
To check current mesg access on terminal:
lab46:~$ mesg
is n
To turn mesg access on and check that it is turned on:
lab46:~$ mesg y
lab46:~$ mesg
is y
To turn mesg access off and check that it is turned off:
lab46:~$ mesg n
lab46:~$ mesg
is n
//**Demonstration of write**//
I opened two terminals for this demonstration. One at pts/49 and the other at pts/63.
From my terminal on pts/63
lab46:~$ write ks010285 pts/49
HI Kate on pts 49, this is just a test to show how the write command works! Pretty neat. I will hit the CTRL and D character after this line in order to get the EOF symbol. -o
lab46:~$
On the pts/49 terminal, I received this message:
Message from ks010285@lab46 on pts/63 at 14:52 ...
HI Kate on pts 49, this is just a test to show how the write command works! Pretty neat. I will hit the CTRL and D character after this line in order to get the EOF symbol. -o
EOF
**//Demonstration of wall//**
lab46:~$ wall testwall
-bash: /usr/bin/wall: Permission denied