40 likes | 163 Vues
This revision lecture by Mauro Jaskelioff addresses key user session queries, such as how many users are currently logged in and the frequency of specific user logins. It also covers file management issues, including locating a specific file, handling error messages, adjusting file paths, and inspecting file contents without viewing the entire file. Practical solutions for creating and appending files are discussed, including how to find words that begin with a specific letter and generating a new file with specific entries.
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”).