Download - 30 Unix Commands
-
7/21/2019 30 Unix Commands
1/6
-
7/21/2019 30 Unix Commands
2/6
-
7/21/2019 30 Unix Commands
3/6
-
7/21/2019 30 Unix Commands
4/6
-
7/21/2019 30 Unix Commands
5/6
-
7/21/2019 30 Unix Commands
6/6
machine, called, say, sole, then use
talkuser1@soleInitially, talkwill send a message to the other user, requesting a talkconnection. A talksessionwill only be established if that user responds by using talkto ask to talk to you. So if yourusername is user2and your host machine is carp, then user1must reply
talkuser2@carpThen two windows are formed on both terminals for the users to type their messages to each other.To exit from talk use the interrupt character.
wc - display a count of lines, words and characters
wccounts the number of lines, words, and characters in files. If no filename is given, wcwill count thestandard input instead.
wcfile1will produce output of the form
3 12 184 file1
showing that file1contains 3 lines, 12 words, and 184 characters. There are options to wcthatrestrict the count to lines, or words, or characters. wc -lwill just count lines, wc -wwill onlycount words, and wc -conly counts characters.
Documentation | Computing Service home | University home
University of Cambridge Computing Service, April [email protected]