40 likes | 153 Vues
32 Revision Lecture. Mauro Jaskelioff. About Users. How many users are logged on right now? How many times user zlizmj is logged on? Full name of users logged on? How many times users with name “Mauro” is logged on?. Words. There is a file somewhere in the filesystem named “words”
E N D
32 Revision Lecture Mauro Jaskelioff
About Users • How many users are logged on right now? • How many times user zlizmj is logged on? • Full name of users logged on? • How many times users with name “Mauro” is logged on?
Words • There is a file somewhere in the filesystem named “words” • Argh! Too many errors! Can we send all the errors messages to a file? • What’s the size of the file? • The path to the file is too long. I would like to have the file in my home directory. Which options do I have for doing this?
More words • Which type of file is words? • Can we take a look at the contents without listing the whole (big!) file? • How can we find all the words that begin with ‘x’? • Create a file with all these words called mywords • Append to mywords all the words with the letters (a,b,c,d,e) in order (for example “scabicide”).