Linux blkdiscard Command

In this tutorial we learn how to use blkdiscard commmand in Linux. blkdiscard command is blkdiscard - discard sectors on a device

What is Linux blkdiscard Command?

In this tutorial we learn how to use blkdiscard command in Linux. blkdiscard command is blkdiscard - discard sectors on a device

blkdiscard Syntax

       blkdiscard [options] [-o offset] [-l length] device

blkdiscard Examples

blkdiscard Command Manual / Help

We can use man and info command to see the manual page of blkdiscard command.

blkdiscard command also have --help option to show list of options.

To open man page for blkdiscard command we can use command below. To exit man or info page you can press q.

man blkdiscard

To open info page for blkdiscard command we can use command below.

info blkdiscard

To open help page from blkdiscard command we can run command below.

blkdiscard --help

Linux blkdiscard Command Source Code

You can find blkdiscard command source code from the folowing repositories:

You can read tutorials of related Linux commands below:

Summary

In this tutorial we learn how to use blkdiscard in Linux with practical examples. Visit our Linux Commands guide to learn more about using command line interface in Linux.