$$ gives the process id of the currently executing process whereas $! shows the process id of the process that recently went into background.
I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?
We can use tail –f filename . This will cause only the default last 10 lines to be displayed on std o/p which continuously shows the updating part of the file.