Close Menu
    Facebook X (Twitter) Instagram
    Command Linux
    • About
    • How to
      • Q&A
    • OS
      • Windows
      • Arch Linux
    • AI
    • Gaming
      • Easter Eggs
    • Statistics
    • Blog
      • Featured
    • MORE
      • IP Address
      • Man Pages
    • Write For Us
    • Contact
    Command Linux
    Home - man page - MESG

    MESG

    WillieBy WillieFebruary 20, 2026Updated:April 17, 2026No Comments1 Min Read
     

    NAME

    mesg – control write access to your terminal  

    SYNOPSIS

    mesg [y|n]  

    DESCRIPTION

    Mesg controls the access to your terminal by others. It’s typically used to allow or disallow other users to write to your terminal (see write(1)).  

    OPTIONS

    y
    Allow write access to your terminal.
    n
    Disallow write access to your terminal.

    If no option is given, mesg prints out the current access state of your terminal.  

    NOTES

    Mesg assumes that its standard input is connected to your terminal. That also means that if you are logged in multiple times, you can get/set the mesg status of other sessions by using redirection. For example "mesg n < /dev/pts/46".  

    Willie
    • Website

    Willie has over 15 years of experience in Linux system administration and DevOps. After managing infrastructure for startups and enterprises alike, he founded Command Linux to share the practical knowledge he wished he had when starting out. He oversees content strategy and contributes guides on server management, automation, and security.

    Related Posts

    OPENDIR

    April 21, 2026

    TAIL

    April 21, 2026

    OPERATOR

    April 21, 2026

    NANO

    April 21, 2026
    Top Posts

    STRCASECMP

    February 24, 2026

    LESS

    April 19, 2026

    SD

    January 28, 2026

    Ntohl

    April 15, 2026
    • Home
    • Contact Us
    • Privacy Policy
    • Terms of Use

    Type above and press Enter to search. Press Esc to cancel.