Question
Write another shell script named user_check.sh that takes a username as input. The script should check if the given user is currently logged into the system.
If the user is logged in, it should display: "[Username] is currently active on the system."
If the user is not logged in, it should display: "[Username] is not logged in.
Answer :
Word Count : 117
Here is the shell script as per the requirements for Operating System Concepts & Networking Management Lab: ```bash #!/bin/bash ______ __________ _____ ___ ______ ___ __________.
____ ____ ____ _________ _________.
_______ __________ __________ ________ _______ _________ _____ __________ __________.
____ _________ ___ _____ _______ _______ ___ __________ _________ ____ ____ _________.
________ ________ ___ ___ ______ ___ _____.
________ ________ ____ ________ __________ ___ __________ _________ ____ ____.
_______ _____ __________ _____ _________ ______.
_________ ________ __________ __________ _________.
___ _____ _____ _____ ___ ____ ___.
________ _________ ___ _____ __________ _________ __________ __________.
_____ ____ ______ _________ _____ ______ __________ ___ __________ _____ ________.
______ _____ ________ ______ ______ ___ _________ _________ _________ ________ ___.
Get Full Answer on WhatsApp
Here is the shell script as per the requirements for Operating System Concepts & Networking Management Lab: ```bash #!/bin/bash ______ __________ _____ ___ ______ ___ __________.
____ ____ ____ _________ _________.
_______ __________ __________ ________ _______ _________ _____ __________ __________.
____ _________ ___ _____ _______ _______ ___ __________ _________ ____ ____ _________.
________ ________ ___ ___ ______ ___ _____.
________ ________ ____ ________ __________ ___ __________ _________ ____ ____.
_______ _____ __________ _____ _________ ______.
_________ ________ __________ __________ _________.
___ _____ _____ _____ ___ ____ ___.
________ _________ ___ _____ __________ _________ __________ __________.
_____ ____ ______ _________ _____ ______ __________ ___ __________ _____ ________.
______ _____ ________ ______ ______ ___ _________ _________ _________ ________ ___.
Get Full Answer on WhatsApp
IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★