Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Shell Scripting
  • Kali Linux
  • Ubuntu
  • Red Hat
  • CentOS
  • Docker in Linux
  • Kubernetes in Linux
  • Linux interview question
  • Python
  • R
  • Java
  • C
  • C++
  • JavaScript
  • DSA
Open In App

biff command in Linux

Last Updated : 19 Apr, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

If you're working on a Unix or Linux terminal and want instant alerts for incoming emails then the biff command is just what you need. Originally built for early Unix systems, biff is a lightweight terminal-based mail notification tool that instantly pops up when new mail arrives. It gets its name from a real dog at UC Berkeley, known for barking whenever the mailman showed up—fitting for a tool that does the same in your terminal

Unlike modern GUI email clients, which consume more resources and often delay alerts, biff works asynchronously through the comsat daemon, making it perfect for users working over SSH, managing remote Linux servers, or coding in minimal environments. It even shows the first few lines of the message directly in your terminal, giving you just enough info to decide if it's urgent—no switching windows or opening mail clients needed.

What is Biff?

Biff is like a text message notification for your Unix terminal – it pops up when you get new emails. Created for old-school systems without fancy GUIs, it’s named after a UC Berkeley dog that barked when mail arrived! 

Syntax:

biff [ y | n ]

Options:

  • Y : This option is to enable the mail notification.
  • N : This option is to disable the mail notification.

Note:

  • When mail notification is enabled, the header and first few lines of the message will be printed on your screen whenever mail arrives. To enable the notifications you have to pass this command:
biff y
  • Biff operates asynchronously via the comsat service. If that service is not enabled, biff will not do anything.
  •  Turn Off Alerts of notification
biff n    # "No more distractions!"

How Biff Works

Here are how the biff works:

  1. Comsat Service: Biff relies on the comsat (communications satellite) daemon—a background service that listens for new mail events. It acts like a notification server that pushes updates to your terminal instantly when a new mail arrives.
  2. Asynchronous Alerts: Unlike GUI clients that interrupt your workflow or require you to switch windows, Biff alerts pop up in your current terminal session—while you're typing, compiling, or managing the server. No user action is needed.
  3. Preview Feature: Biff doesn't just say "You’ve got mail." It smartly shows you the email sender and the first 15 lines of the message, allowing quick context without opening a mail client.

Biff vs Modern Tools

Biff is a classic Linux utility designed to notify users immediately when new mail arrives

FeatureBiffGUI Email Clients
SpeedInstant notifications as soon as new mail hits the server—no need to refresh or check manually.Often requires manual refresh or relies on periodic syncing, which might delay alerts.
ResourceExtremely lightweight. It uses almost no system memory or CPU.GUI-based clients consume more RAM and CPU, especially when running continuously in the background.
Use CaseIdeal for system administrators, developers, or users working over SSH on remote servers.Better suited for personal desktops and laptops where a full-featured interface is needed.

Conclusion

The biff command in Linux may seem old-school, but it still holds a valuable place in modern terminal-based workflows, especially for system administrators, developers, or anyone using SSH on cloud servers like AWS, Azure, or GCP. It offers a fast, resource-light way to stay on top of your email—without disrupting your work or loading a heavy GUI.


S

schrodinger_19
Improve
Article Tags :
  • Linux-Unix

Similar Reads

    atd command in Linux with examples
    atd is a job scheduler daemon that runs jobs scheduled for later execution. These jobs are one-time task(not recurring) at a specific time scheduled using 'at' or 'batch' utility. Syntax: atd [-l load_avg] [-b batch_interval] [-d] [-f] [-s] Options: -l : Specifies a limiting load factor, over which
    2 min read
    atrm command in Linux with examples
    atrm command is used to remove the specified jobs. To remove a job, its job number is passed in the command. A user can only delete jobs that belong to him. Only superuser can delete any job even if that belongs to another user. Syntax: atrm [-V] job [job...] Options: -V : Used to print the version
    1 min read
    atq command in linux with examples
    atq displays the list of pending jobs which are scheduled by the user. If the user is the superuser then the pending jobs of all the users will be displayed. The output lines display Job number, date, hour, queue, and username for each job. Syntax: atq [-V] [-q queue] Options: -V: It will display th
    2 min read
    autoconf command in Linux with examples
    autoconf command is used in Linux to generate configuration scripts. Generate a configuration script from a TEMPLATE-FILE if given, or from ‘configure.ac’ if present, or 'configure.in'. The output is sent to the standard output if TEMPLATE-FILE is given, otherwise, it is sent into ‘configure’. To us
    1 min read
    autoheader command in Linux with Examples
    autoheader command in Linux is used to create a template file of C “#define” or any other template header for configure to use. If the user will give autoheader an argument, it reads the standard input instead of reading configure.ac and also writes the header file to the standard output. This comma
    3 min read
    automake command in Linux with Examples
    automake is a tool used for automatically generating Makefile.in files compliant with the set GNU Coding Standards. autoconf is required for the use of automake. automake manual can either be read on-line or downloaded in the PDF format. More formats are also offered for download or on-line reading.
    1 min read
    autoreconf command in Linux with examples
    autoreconf is a Autotool which is used to create automatically buildable source code for Unix-like systems. Autotool is a common name for autoconf, automake, etc. These all together are termed as Autotools. Important Points: Provides Portability of source code packages by automatic buildable capabil
    2 min read
    AWK command in Unix/Linux with examples
    Awk is a scripting language used for manipulating data and generating reports. The awk command programming language requires no compiling and allows the user to use variables, numeric functions, string functions, and logical operators. Awk is a utility that enables a programmer to write tiny but eff
    8 min read
    banner command in Linux with examples
    The 'banner' command in Linux is a simple yet powerful utility used to display text in large ASCII characters on the terminal. This command can be particularly useful for creating prominent messages or headings within scripts and outputs.Syntax of the 'banner' Commandbanner textbanner 'Command' Exam
    3 min read
    basename Command in Linux with examples
    The 'basename' command in Linux is a fundamental utility used in file manipulation and script writing. It simplifies file paths by stripping directory information and optional suffixes from file names. Here a detailed overview of the 'basename' command, including its syntax, options, and practical u
    3 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences