fdisk command not found - Ubuntu 22.04

Page content

How to Install fdisk Command on Ubuntu 22.04

In Ubuntu 22.04, the fdisk command is no longer included by default in the base installation. fdisk is a powerful command-line tool used for disk partitioning and management in Linux systems. If you find that fdisk is not found on your Ubuntu 22.04 system, you can easily install it using the following steps:

  1. Open a Terminal: You can open a terminal by pressing Ctrl + Alt + T or by searching for “Terminal” in the application menu.

  2. Install fdisk: Run the following command in the terminal to install fdisk:

    sudo apt update
    sudo apt install fdisk
    

<ins class=“adsbygoogle” <style=“display:block; text-align:center;” <data-ad-layout=“in-article” <data-ad-format=“fluid” <data-ad-client=“ca-pub-3694707216928989” <data-ad-slot=“8801045010”>

fdisk --version
  1. Start Using fdisk: You can now use the fdisk command to manage disk partitions on your Ubuntu 22.04 system.

Why is fdisk not included by default?

In newer versions of Ubuntu, some command-line tools may not be included in the base installation to streamline the system and reduce unnecessary packages. This change encourages users to install specific tools only when needed, reducing the overall system complexity and potential security risks.

Conclusion

By following the steps outlined in this tutorial, you can easily install the fdisk command on your Ubuntu 22.04 system and start managing disk partitions efficiently. Remember to use fdisk with caution, as it has the power to modify disk partitions and could potentially cause data loss if used incorrectly.