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 echo -n "Enter username ________ __________ _______ __________ ____ ________ ___ __________ ________ _____.
_________ ________ ______ _____ _________ _________ _______ _______.
____ ____ _________ ______ _______ _________ ______ _________ _____ ______.
_________ _________ __________ ___ __________ _____ ____ ________ _________ _________.
_____ ____ _______ ___ ______ ______ _____ ___ _________ _____ _________.
______ ___ _________ _________ _____ ________.
____ _______ ________ _____ _________ ______ _________ _______ ____ ___.
_________ ____ ________ ____ ________ _____ ____ ___ ______ ____ ________ ______.
__________ __________ _____ _____ ________ ____ _______ ____ __________ ______.
___ ________ ____ _________ _______ _____ ___.
Get Full Answer on WhatsApp
Here is the shell script as per the requirements for Operating System Concepts & Networking Management Lab: ```bash #!/bin/bash echo -n "Enter username ________ __________ _______ __________ ____ ________ ___ __________ ________ _____.
_________ ________ ______ _____ _________ _________ _______ _______.
____ ____ _________ ______ _______ _________ ______ _________ _____ ______.
_________ _________ __________ ___ __________ _____ ____ ________ _________ _________.
_____ ____ _______ ___ ______ ______ _____ ___ _________ _____ _________.
______ ___ _________ _________ _____ ________.
____ _______ ________ _____ _________ ______ _________ _______ ____ ___.
_________ ____ ________ ____ ________ _____ ____ ___ ______ ____ ________ ______.
__________ __________ _____ _____ ________ ____ _______ ____ __________ ______.
___ ________ ____ _________ _______ _____ ___.
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★★★