Linux swaplabel Command

In this tutorial we learn how to use swaplabel commmand in Linux. swaplabel command is swaplabel - print or change the label or UUID of a swap area

What is Linux swaplabel Command?

In this tutorial we learn how to use swaplabel command in Linux. swaplabel command is swaplabel - print or change the label or UUID of a swap area

swaplabel Syntax

       swaplabel [-L label] [-U UUID] device

swaplabel Examples

swaplabel Command Manual / Help

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

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

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

man swaplabel

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

info swaplabel

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

swaplabel --help

Linux swaplabel Command Source Code

You can find swaplabel 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 swaplabel in Linux with practical examples. Visit our Linux Commands guide to learn more about using command line interface in Linux.