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.
Shell is a interface between user and the kernel. Even though there can be only one kernel ; a system can have many shell running simultaneously . Whenever a user enters a command through keyboard the shell communicates with the kernel to execute it and then display the output to the user.
“exec” overlays the newly forked process on the current process ; so when I execute the command using exec, the command gets executed on the current shell without creating any new processes. Eg: Executing “exec ls” on command prompt will execute ls and once ls exits, the process will shut down
How can I set the default rwx permission to all users on every file which is created in the current shell?
We can use: umask 777 This will set default rwx permission for every file which is created to every user.