{"id":5680,"date":"2023-02-09T10:41:04","date_gmt":"2023-02-09T10:41:04","guid":{"rendered":"https:\/\/linuxsimply.com\/?p=5680"},"modified":"2023-08-30T10:45:15","modified_gmt":"2023-08-30T10:45:15","slug":"fsck-command-in-linux","status":"publish","type":"post","link":"https:\/\/linuxsimply.com\/fsck-command-in-linux\/","title":{"rendered":"The \u201cfsck\u201d Command in Linux [7 Practical Examples]"},"content":{"rendered":"<p style=\"text-align: justify;\">The <strong>fsck<\/strong> command in <strong>Linux<\/strong> is a <strong>file management tool<\/strong> that stands for <strong>file system consistency check<\/strong>. The command checks for file integrity and fixes detected errors interactively. It performs a <strong>thorough examination<\/strong> of the<strong> disk<\/strong> using built-in tools and presents a<strong> report <\/strong>of its findings. If any issues are found, it will try to <strong>fix<\/strong> them <strong>automatically.<\/strong> System administrators can run the command automatically at boot time or manually. In this article, you will learn how to use the <strong>fsck <\/strong>command in different aspects with some practical examples. So let\u2019s begin.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/linuxsimply.com\/fsck-command-in-linux\/#A_Description\" >A. Description<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/linuxsimply.com\/fsck-command-in-linux\/#B_Syntax\" >B. Syntax<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/linuxsimply.com\/fsck-command-in-linux\/#C_Options\" >C. Options<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/linuxsimply.com\/fsck-command-in-linux\/#Cases_Where_you_may_need_to_use_the_%E2%80%9Cfsck%E2%80%9D_command\" >Cases Where you may need to use the \u201cfsck\u201d command:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/linuxsimply.com\/fsck-command-in-linux\/#The_%E2%80%9Cfsck%E2%80%9D_command_checks_for\" >The \u201cfsck\u201d command checks for:<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/linuxsimply.com\/fsck-command-in-linux\/#Practical_Examples_of_the_%E2%80%9Cfsck%E2%80%9D_Command_in_Linux\" >Practical Examples of the \u201cfsck\u201d Command in Linux<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/linuxsimply.com\/fsck-command-in-linux\/#How_to_Use_the_%E2%80%9Cfsck%E2%80%9D_Command_on_File_Systems\" >How to Use the \u201cfsck\u201d Command on File Systems<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/linuxsimply.com\/fsck-command-in-linux\/#Example_1_Run_the_%E2%80%9Cfsck%E2%80%9D_Command_on_File_Systems\" >Example 1: Run the \u201cfsck\u201d Command on File Systems<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/linuxsimply.com\/fsck-command-in-linux\/#Exit_Codes\" >Exit Codes<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/linuxsimply.com\/fsck-command-in-linux\/#Example_2_Run_the_%E2%80%9Cfsck%E2%80%9D_Command_Excluding_Mounted_Files\" >Example 2: Run the \u201cfsck\u201d Command Excluding Mounted Files<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/linuxsimply.com\/fsck-command-in-linux\/#Example_3_Print_the_Output_of_the_%E2%80%9Cfsck%E2%80%9D_Command_Only_Without_Repairing\" >Example 3: Print the Output of the \u201cfsck\u201d Command Only Without Repairing<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/linuxsimply.com\/fsck-command-in-linux\/#Example_4_Fix_the_Detected_Errors_Automatically_Using_the_%E2%80%9Cfsck%E2%80%9D_Command_in_Linux\" >Example 4: Fix the Detected Errors Automatically Using the \u201cfsck\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/linuxsimply.com\/fsck-command-in-linux\/#Example_5_Do_Force_Check_Using_the_%E2%80%9Cfsck%E2%80%9D_Command_in_Linux\" >Example 5: Do Force Check Using the \u201cfsck\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/linuxsimply.com\/fsck-command-in-linux\/#Example_6_Display_the_Verbose_Output_for_the_%E2%80%9Cfsck%E2%80%9D_Command_in_Linux\" >Example 6: Display the Verbose Output for the \u201cfsck\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/linuxsimply.com\/fsck-command-in-linux\/#Example_7_Print_the_Help_messages_for_the_%E2%80%9Cfsck%E2%80%9D_Command_in_Linux\" >Example 7: Print the Help messages for the \u201cfsck\u201d Command in Linux<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/linuxsimply.com\/fsck-command-in-linux\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"A_Description\"><\/span>A. Description<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <strong>fsck<\/strong> command checks and repairs inconsistent filesystems. It is an important tool and you don\u2019t need any<strong> installation process<\/strong> or specific steps to use the command. It comes with <strong>Linux <\/strong>distributions <strong>by default<\/strong>. You can use the <strong>fsck<\/strong> command to repair corrupted files in cases where the system fails to boot or a partition can not be mounted. The program tries to handle filesystems on different physical disk drives in parallel to reduce time checking all of the filesystems. Also, <strong>note that<\/strong> the command does not work on<strong> mounted <\/strong>files and often prints wrong <strong>error messages<\/strong> with further corruption. So make sure to <strong>unmount <\/strong>the file before using the command on it.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"B_Syntax\"><\/span>B. Syntax<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <strong>fsck <\/strong>command is a stable tool that performs repairing cautiously and tries to <strong>avoid <\/strong>actions that may result in the <strong>loss<\/strong> of valid data. The command has a plain syntax. The syntax is,<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">fsck [OPTION]... [filesystem]...<\/code><\/pre>\n<p>Here, the <strong>filesystem<\/strong> can be a <strong>device<\/strong>, a <strong>partition<\/strong>, or a <strong>mount point<\/strong>.<\/p>\n<div class=\"su-note\"  style=\"border-color:#cedfe2;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#E8F9FC;border-color:#ffffff;color:#333333;\">\n<p style=\"text-align: justify;\"><strong>Note: <\/strong>Whatever is enclosed by a square bracket in the above <strong>syntax<\/strong> is not mandatory. Moreover, <strong>OPTION <\/strong>and <strong>FIlesystem <\/strong>are enclosed by square brackets and followed by <strong>3 dots<\/strong> representing that multiple <strong>options <\/strong>and<strong> filenames <\/strong>can be used at a time.<\/p>\n<\/div><\/div>\n<h3><span class=\"ez-toc-section\" id=\"C_Options\"><\/span>C. Options<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <strong>fsck<\/strong> is an essential file management tool for all<strong> Linux<\/strong> users. It uses some<strong> command line options<\/strong>. I will list some of them with short details here. You can view all the information about the command from the <strong>man<\/strong> page.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">man fsck<\/code><\/pre>\n<p><span style=\"color: #800080;\"><strong>Useful Options<\/strong><\/span><\/p>\n<div class=\"su-list\" style=\"margin-left:20px\">\n<ul>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-a, <\/strong>to repair filesystem errors automatically without any interaction, so <strong>be careful <\/strong>using this option.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-A, <\/strong>to check all filesystems listed in <strong>\/etc\/fstab<\/strong>.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-C, <\/strong>to see the fixing progress for <strong>ext2 &amp; ext3<\/strong> type filesystems.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-l, <\/strong>to lock the device so that other programs can\u2019t use the partition during scan &amp; repair.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-f, <\/strong>to force fsck for checking a filesystem, even if it\u2019s clean.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-M, <\/strong>to not check <strong>mounted<\/strong> The command returns the <strong>exit code \u201c0\u201d <\/strong>if the file is mounted.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-N, <\/strong>to do a dry run. The command outputs what it will do without executing any actions. It also displays <strong>errors &amp; warnings.<\/strong><\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-R, <\/strong>to not check root filesystems while you are using the <strong>-A.<\/strong><\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-P, <\/strong>to run multiple filesystems in parallel.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-r, <\/strong>to display device statistics.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-t, <\/strong>to specify which filesystem types to check with the command.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-T, <\/strong>to hide the title when the command starts its action.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-y, <\/strong>to repair filesystem errors <strong>automatically <\/strong>during the specific filesystem check.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-v, <\/strong>to print the <strong>verbose.<\/strong><\/li>\n<\/ul>\n<\/div>\n<div class=\"su-note\"  style=\"border-color:#cedfe2;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#E8F9FC;border-color:#ffffff;color:#333333;\">\n<p style=\"text-align: justify;\"><strong>NOTE:<\/strong> The <strong>options<\/strong> in\u00a0<strong><a href=\"https:\/\/linuxsimply.com\/cli-in-linux\/\" target=\"_blank\" rel=\"noopener\">Linux CLI<\/a> (Command Line Interface)<\/strong> are all <strong>case-sensitive<\/strong>, So be cautious while using them.<\/p>\n<\/div><\/div>\n<h4><span class=\"ez-toc-section\" id=\"Cases_Where_you_may_need_to_use_the_%E2%80%9Cfsck%E2%80%9D_command\"><\/span>Cases Where you may need to use the \u201cfsck\u201d command:<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<div class=\"su-list\" style=\"margin-left:20px\">\n<ul>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>System Boot Issues<\/strong> \u2192The fsck command can detect when the system fails to boot.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>Inconsistencies in the Filesystem<\/strong>\u2192Run the command to check on a filesystem as preventive maintenance or if there there is an issue with the system.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>Filesystem Corruption<\/strong>\u2192In case you get an input-output error for the corrupted filesystem.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>External Drives Check<\/strong>\u2192To check the external drives&#8217; health such as SD cards or USB flash drives.<\/li>\n<\/ul>\n<\/div>\n<h4><span class=\"ez-toc-section\" id=\"The_%E2%80%9Cfsck%E2%80%9D_command_checks_for\"><\/span>The \u201cfsck\u201d command checks for:<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<div class=\"su-list\" style=\"margin-left:20px\">\n<ul>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>File system structure<\/strong>\u2192It verifies the overall structure of the file system, including the superblock, inode table, and block bitmap.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>Inode information<\/strong>\u2192 It checks the consistency of the inode information such as timestamps, permissions, hard links, and ownership.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>Block usage<\/strong>\u2192 It examines blocks or fragment numbers allocated to multiple files and verifies blocks that are not being used multiple times and that there are no unreferenced blocks.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>Link count<\/strong>\u2192 It verifies whether the link counts for each file are accurate or not.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>Directory structure<\/strong>\u2192 It checks for directory structure consistency such as cross-link errors, missing or duplicate entries, and directories that are not reachable.<\/li>\n<\/ul>\n<\/div>\n<h2><span class=\"ez-toc-section\" id=\"Practical_Examples_of_the_%E2%80%9Cfsck%E2%80%9D_Command_in_Linux\"><\/span>Practical Examples of the \u201cfsck\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">There are many cases of filesystem malfunction where you can use the <strong>fsck <\/strong>command. Also, you need to know how to use the command properly as <strong>unnecessary corrective actions<\/strong> may result in <strong>data loss<\/strong>. So <strong>always<\/strong> use the command on file systems <strong>only after the system malfunctions <\/strong>and the default action for each inconsistency should be to <strong>wait<\/strong> for the <strong>operand <\/strong>to enter <strong>yes<\/strong> or <strong>no<\/strong>. Read the following article, where I will discuss how to use the command in different cases with examples.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"How_to_Use_the_%E2%80%9Cfsck%E2%80%9D_Command_on_File_Systems\"><\/span>How to Use the \u201cfsck\u201d Command on File Systems<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\"><strong>Do not run <\/strong>the<strong> fsck<\/strong> command on a filesystem that is currently in use. Attempting to check a <strong>mounted<\/strong> file system can lead to <strong>further errors<\/strong>. So, to run the command first you need to identify the <strong>device partitions<\/strong> you want to repair or check. Run the below command to check all the currently mounted files and their location on your system.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">df -h<\/code><\/pre>\n<p style=\"text-align: justify;\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-5682\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-1.png\" alt=\"Check mounted disk list with their location using the df command. \" width=\"825\" height=\"214\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-1.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-1-300x78.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-1-767x199.png 767w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/>Now if you want to run the<strong> fsck <\/strong>command on any of these mounted files, you have to <strong>umount<\/strong> that file. Otherwise, the command will not perform successfully and may even produce more <strong>errors <\/strong>in the filesystem. Check the below image, where I tried to run the <strong>fsck <\/strong>command on a <strong>mounted<\/strong> file.<img decoding=\"async\" class=\"aligncenter size-full wp-image-5683\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-2.png\" alt=\"Error while running the fsck command on mounted files.\" width=\"581\" height=\"195\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-2.png 581w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-2-300x101.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-2-766x257.png 766w\" sizes=\"(max-width: 581px) 100vw, 581px\" \/><\/p>\n<div class=\"su-note\"  style=\"border-color:#cedfe2;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#E8F9FC;border-color:#ffffff;color:#333333;\">\n<p style=\"text-align: justify;\"><strong>Note:<\/strong> Only a <strong>superuser<\/strong> can make changes or open mounted filesystems. So to run the command on mounted filesystems use <strong>\u2018sudo\u2019<\/strong> ( <strong>S<\/strong>ubstitute <strong>U<\/strong>ser <strong>DO<\/strong>) before the command. Temporarily it allows you to appoint your current user to have<strong> root privileges<\/strong>.<\/p>\n<\/div><\/div>\n<p style=\"text-align: justify;\">To view <strong>disk partitions <\/strong>of any of the disks of your system run the below command. I will view the disk partition for the <strong>sda2<\/strong> disk.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo parted \/dev\/sda2 \u2018print\u2019<\/code><\/pre>\n<p style=\"text-align: justify;\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-5684\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-3.png\" alt=\"Check the disk partitions.\" width=\"631\" height=\"265\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-3.png 631w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-3-300x126.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-3-767x322.png 767w\" sizes=\"(max-width: 631px) 100vw, 631px\" \/>See from the output, the <strong>sda2 disk<\/strong> has only<strong> one partition<\/strong>. Now, I will check the <strong>sda2 disk <\/strong>for inconsistency. For that, I will first<strong> unmount<\/strong> it using the below command and later see if it has been unmounted successfully with the help of the <strong>df <\/strong>command.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo umount \/dev\/sda2<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5685\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-4.png\" alt=\"Unmount a mounted file using the umount command.\" width=\"825\" height=\"210\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-4.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-4-300x76.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-4-766x195.png 766w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/>As you can see from the output list the disk is <strong>not mounted anymore<\/strong>.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_1_Run_the_%E2%80%9Cfsck%E2%80%9D_Command_on_File_Systems\"><\/span>Example 1: Run the \u201cfsck\u201d Command on File Systems<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">As I unmounted the <strong>sda2<\/strong> file now I can run our command<strong> fsck<\/strong> on this filesystem. To do so, I will write the<strong> filesystem name <\/strong>after the command. You can also check <strong>multiple files <\/strong>at a time with the command. Just write the filesystem names with <strong>spaces<\/strong> between them after the command. The syntax is,<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo fsck &lt;filesystem&gt;...<\/code><\/pre>\n<p>Follow the below steps to check the <strong>sda2<\/strong> file system consistency.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo fsck \/dev\/sda2<\/code><\/pre>\n<p>\u278c Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p>\u278d Then run the following command to check on<strong> two filesystems <\/strong>at once:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo fsck \/dev\/sda2 \/dev\/sdb1<\/code><\/pre>\n<p>\u278e Tap the <strong>ENTER <\/strong>key again.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">After running the first command, from the output display, you can see the file information of the <strong>sda2<\/strong> file. As the <strong>disk is clean <\/strong>it is showing this type of message, if there were<strong> multiple problems<\/strong> on the disk then a <strong>confirmation prompt<\/strong> would have appeared.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5686\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-5.png\" alt=\"Check filesystem using the fsck command in linux.\" width=\"553\" height=\"129\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-5.png 553w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-5-300x70.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-5-767x179.png 767w\" sizes=\"(max-width: 553px) 100vw, 553px\" \/><\/p>\n<div class=\"su-note\"  style=\"border-color:#cedfe2;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#E8F9FC;border-color:#ffffff;color:#333333;\">\n<p style=\"text-align: justify;\"><strong>Note: <\/strong>Remember to <strong>remount <\/strong>the disk with the<strong> \u201cmount\u201d <\/strong>command after checking and repairing it, that way you will be able to use it again.<\/p>\n<\/div><\/div>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5687\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-6.png\" alt=\"Check multiple filesystems using the fsck command in linux.\" width=\"700\" height=\"192\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-6.png 700w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-6-300x82.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-6-766x210.png 766w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/> Then, run the second command to check two files <strong>sda2 <\/strong>and<strong> sdb1<\/strong> at once. I <strong>unmounted<\/strong> the <strong>sdb1<\/strong> filesystem just like I<strong> unmounted<\/strong> the <strong>sda2<\/strong> file before running the command. Now from the output you can see the file information for both of them in the order, they were specified in the command.<\/p>\n<h4><span class=\"ez-toc-section\" id=\"Exit_Codes\"><\/span>Exit Codes<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p style=\"text-align: justify;\">The <strong>fsck <\/strong>command produces different <strong>exit codes<\/strong>. From the meaning of these <strong>codes<\/strong>, you can determine what kind of <strong>error <\/strong>occurred while running the command. Read the below code description to learn about them.<\/p>\n<div class=\"su-list\" style=\"margin-left:20px\">\n<ul>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>0<\/strong>\u2192 No errors.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>1<\/strong>\u2192 Filesystem errors corrected.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>2<\/strong>\u2192 System needs to be rebooted.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>4<\/strong>\u2192 Filesystem errors are not corrected.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>8<\/strong>\u2192 Operational error.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>16<\/strong>\u2192 Usage or syntax error.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>32<\/strong>\u2192 Checking canceled by user request.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>128<\/strong>\u2192 Shared-library error.<\/li>\n<\/ul>\n<\/div>\n<hr \/>\n<p><strong><span style=\"font-size: 18pt; color: #000080;\">Similar Readings<\/span><\/strong><\/p>\n<ul>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/diff-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cdiff\u201d Command in Linux [11 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/cmp-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201ccmp\u201d Command in Linux [7 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/comm-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201ccomm\u201d Command in Linux [10 Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n<hr \/>\n<h3><span class=\"ez-toc-section\" id=\"Example_2_Run_the_%E2%80%9Cfsck%E2%80%9D_Command_Excluding_Mounted_Files\"><\/span>Example 2: Run the \u201cfsck\u201d Command Excluding Mounted Files<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">You must not run the <strong>fsck<\/strong> command on <strong>mounted<\/strong> filesystems, which may cause serious damage to the file. But sometimes you may need to check all your filesystems for <strong>errors<\/strong>, in that time remember to<strong> exclude the mounted files<\/strong> using the <strong>option -M <\/strong>with the <strong>fsck <\/strong>command. The syntax is,<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo fsck -M &lt;file-system&gt;<\/code><\/pre>\n<p>See the below steps to check yourself.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a Start by opening the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Then, type the following command in the command prompt to check how the <strong>option -M <\/strong>works on a mounted file:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo fsck -M \/dev\/sdb1<\/code><\/pre>\n<p>\u278c Press the <strong>ENTER<\/strong> button.<\/p>\n<p>\u278d\u00a0 After that <strong>unmount<\/strong> the file with the following command:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo umount \/dev\/sdb1<\/code><\/pre>\n<p>\u278e Hit the <strong>ENTER <\/strong>key.<\/p>\n<p>\u278f Now, run the same command in the <strong>unmounted<\/strong> file,<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo fsck -M \/dev\/sdb1<\/code><\/pre>\n<p>\u2790 Finally, tap the <strong>ENTER <\/strong>button.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">After running the first command, you will notice that the command <strong>didn\u2019t display <\/strong>anything about the file as it is <strong>mounted <\/strong>and you used the<strong> -M option <\/strong>to <strong>exclude<\/strong> the<strong> mounted<\/strong> files. Then <strong>unmount<\/strong> the file using the second command. And run the <strong>fsck <\/strong>command again using the 3rd command, now check the output. It is now showing the <strong>checked output for error<\/strong>. See the below image for a visual aid.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5688\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-7.png\" alt=\"Run the fsck command in linux excluding the mounted files.\" width=\"689\" height=\"237\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-7.png 689w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-7-300x103.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-7-767x264.png 767w\" sizes=\"(max-width: 689px) 100vw, 689px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_3_Print_the_Output_of_the_%E2%80%9Cfsck%E2%80%9D_Command_Only_Without_Repairing\"><\/span>Example 3: Print the Output of the \u201cfsck\u201d Command Only Without Repairing<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">To <strong>print<\/strong> only the <strong>error reports<\/strong> without <strong>repairing <\/strong>them, use the <strong>option -n<\/strong> with the <strong>fsck <\/strong>command. Just type the command then the <strong>option -n <\/strong>followed by the<strong> file system name<\/strong> you want to check for errors. The syntax is,<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo -n &lt;file-system&gt;<\/code><\/pre>\n<p style=\"text-align: justify;\">Act according to the below steps to <strong>check errors<\/strong> of a filesystem &amp; <strong>print only<\/strong>.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a Launch the <strong>Terminal <\/strong>application on your <strong>Ubuntu<\/strong>.<\/p>\n<p>\u278b Then, type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo fsck -n \/dev\/sdb1<\/code><\/pre>\n<p>\u278c Finally, tap the <strong>ENTER<\/strong> button.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">You can see from the output image, that the command is <strong>printing<\/strong> about the <strong>errors<\/strong> and saying, <strong>it won\u2019t fix them automatically.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5689\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-8.png\" alt=\"Only print the errors without repairing using the fsck command in linux.\" width=\"825\" height=\"224\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-8.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-8-300x81.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-8-766x208.png 766w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/strong><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_4_Fix_the_Detected_Errors_Automatically_Using_the_%E2%80%9Cfsck%E2%80%9D_Command_in_Linux\"><\/span>Example 4: Fix the Detected Errors Automatically Using the \u201cfsck\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">Normally, when the<strong> fsck<\/strong> command will find <strong>multiple errors <\/strong>on your filesystem, it will display <strong>confirmation prompts<\/strong>, and perform<strong> interactively<\/strong>. Now, if you want to fix the problems automatically without getting confirmation messages, use the <strong>option -y <\/strong>with the command. The syntax is,<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo -y &lt;file-system&gt;<\/code><\/pre>\n<p style=\"text-align: justify;\">Proceed to the below steps to carry out the process yourself.<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a First, open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Then, type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo -y \/dev\/sda2<\/code><\/pre>\n<p>\u278c Finally, press the <strong>ENTER<\/strong> key.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">After running the command, you will notice that the command has <strong>fixed<\/strong> all the errors by itself without asking for your confirmation. You can see the output display of my command from the following image, as it was <strong>clean <\/strong>it is not showing any <strong>fixing history<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5690\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-9.png\" alt=\"Fix automatically file errors using fsck command in linux.\" width=\"568\" height=\"125\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-9.png 568w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-9-300x66.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-9-768x169.png 768w\" sizes=\"(max-width: 568px) 100vw, 568px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_5_Do_Force_Check_Using_the_%E2%80%9Cfsck%E2%80%9D_Command_in_Linux\"><\/span>Example 5: Do Force Check Using the \u201cfsck\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">From the upper example\u2019s output picture you noticed that when the<strong> fsck <\/strong>command performs on a <strong>clean disk<\/strong>, it <strong>skips<\/strong> the <strong>filesystem check<\/strong> and <strong>minor fixing tasks<\/strong>. Well, you can <strong>force <\/strong>the command to check even the <strong>clean disk<\/strong>. To do so, use the <strong>option \u2013f<\/strong> with the command. The syntax is,<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo -f &lt;file-system&gt;<\/code><\/pre>\n<p>Follow the below steps to <strong>force <\/strong>the <strong>fsck<\/strong> command to<strong> check a filesystem<\/strong>.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Then, type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo fsck -f \/dev\/sdb1<\/code><\/pre>\n<p>\u278c Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">See the output image, the <strong>fsck<\/strong> command is now checking the <strong>sdb1<\/strong> filesystem<strong> thoroughly <\/strong>and <strong>fixing <\/strong>even the<strong> minor errors<\/strong>.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5691\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-10.png\" alt=\"Force check using fsck command in linux.\" width=\"825\" height=\"423\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-10.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-10-300x154.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-10-766x393.png 766w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<hr \/>\n<p><strong><span style=\"font-size: 18pt; color: #000080;\">Similar Readings<\/span><\/strong><\/p>\n<ul>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/ln-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cln\u201d Command in Linux [6 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/lsof-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201clsof\u201d Command in Linux [8 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/tar-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201ctar\u201d Command in Linux [12 Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n<hr \/>\n<h3><span class=\"ez-toc-section\" id=\"Example_6_Display_the_Verbose_Output_for_the_%E2%80%9Cfsck%E2%80%9D_Command_in_Linux\"><\/span>Example 6: Display the Verbose Output for the \u201cfsck\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The system administrators sometimes need a more <strong>detailed output<\/strong> of the <strong>fsck <\/strong>command while <strong>troubleshooting<\/strong>. For that display the<strong> verbose output<\/strong> for the <strong>fsck <\/strong>command. Just use the <strong>option -v<\/strong> with the command followed by the<strong> filesystem<\/strong> you want to check. The syntax is,<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo -v &lt;file-system&gt;<\/code><\/pre>\n<p>Go through the below steps to display the <strong>verbose <\/strong>output.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a Launch the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Then, type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo fsck -v \/dev\/sdb1<\/code><\/pre>\n<p>\u278c Finally, press the <strong>ENTER<\/strong> key.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">Notice the below image, you can see the <strong>verbose <\/strong>output for the <strong>sdb1<\/strong> file. There is a lot more <strong>detailed information<\/strong> than I had before.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5692\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-11.png\" alt=\"Verbose output of fsck command in linux.\" width=\"630\" height=\"522\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-11.png 630w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-11-300x249.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-11-768x636.png 768w\" sizes=\"(max-width: 630px) 100vw, 630px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_7_Print_the_Help_messages_for_the_%E2%80%9Cfsck%E2%80%9D_Command_in_Linux\"><\/span>Example 7: Print the Help messages for the \u201cfsck\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">While working with the <strong>fsck<\/strong> command, if you need any <strong>help <\/strong>with the<strong> options <\/strong>and usage of the command use the <strong>&#8211;help option<\/strong>. It will concisely display all the details about the command <strong>options<\/strong> and then <strong>exit<\/strong>. See the below steps to print the <strong>help<\/strong> messages for the <strong>fsck<\/strong> command.<\/p>\n<p><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a First, begin by opening the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Then, the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">fsck --help<\/code><\/pre>\n<p>\u278c Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p>In the output display, you will see the help messages for the fsck command just like in the following image.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5693\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-12.png\" alt=\"Help messages for the fsck command in linux.\" width=\"700\" height=\"520\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-12.png 700w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-12-300x223.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux-12-767x570.png 767w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">Well, to sum up, the <strong>fsck<\/strong> command in <strong>Linux<\/strong> is an important command tool for fixing and checking your system&#8217;s filesystems health. It is really necessary to learn to use the command properly. In this article, I tried to talk about the basics of the command and explained how to use it with different steps and examples. Hope the article helps you to learn.<\/p>\n<hr \/>\n<p><strong><span style=\"font-size: 18pt; color: #000080;\">Similar Readings<\/span><\/strong><\/p>\n<ul>\n<li><span data-sheets-value=\"{&quot;1&quot;:2,&quot;2&quot;:&quot;The \u201cchgrp\u201d Command in Linux [7 Practical Examples]&quot;}\" data-sheets-userformat=\"{&quot;2&quot;:34620347,&quot;3&quot;:{&quot;1&quot;:0},&quot;4&quot;:{&quot;1&quot;:2,&quot;2&quot;:16773836},&quot;6&quot;:{&quot;1&quot;:[{&quot;1&quot;:2,&quot;2&quot;:0,&quot;5&quot;:{&quot;1&quot;:2,&quot;2&quot;:0}},{&quot;1&quot;:0,&quot;2&quot;:0,&quot;3&quot;:3},{&quot;1&quot;:1,&quot;2&quot;:0,&quot;4&quot;:1}]},&quot;7&quot;:{&quot;1&quot;:[{&quot;1&quot;:2,&quot;2&quot;:0,&quot;5&quot;:{&quot;1&quot;:2,&quot;2&quot;:0}},{&quot;1&quot;:0,&quot;2&quot;:0,&quot;3&quot;:3},{&quot;1&quot;:1,&quot;2&quot;:0,&quot;4&quot;:1}]},&quot;8&quot;:{&quot;1&quot;:[{&quot;1&quot;:2,&quot;2&quot;:0,&quot;5&quot;:{&quot;1&quot;:2,&quot;2&quot;:0}},{&quot;1&quot;:0,&quot;2&quot;:0,&quot;3&quot;:3},{&quot;1&quot;:1,&quot;2&quot;:0,&quot;4&quot;:1}]},&quot;10&quot;:0,&quot;11&quot;:4,&quot;12&quot;:0,&quot;17&quot;:1,&quot;23&quot;:1,&quot;28&quot;:1}\" data-sheets-hyperlink=\"https:\/\/linuxsimply.com\/chgrp-command-in-linux\/\"><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/chgrp-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">T<strong>he \u201cchgrp\u201d Command in Linux [7 Practical Examples]<\/strong><\/a><\/span><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/file-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cfile\u201d Command in Linux [9+ Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/patch-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cpatch\u201d Command in Linux [4 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/rmdir-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201crmdir\u201d Command in Linux [7 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/stat-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cstat\u201d Command in Linux [9 Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;5680&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;3&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;Rate this post&quot;,&quot;legend&quot;:&quot;5\\\/5 - (3 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;The \u201cfsck\u201d Command in Linux [7 Practical Examples]&quot;,&quot;width&quot;:&quot;142.5&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 142.5px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            5\/5 - (3 votes)    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>The fsck command in Linux is a file management tool that stands for file system consistency check. The command checks &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"The \u201cfsck\u201d Command in Linux [7 Practical Examples]\" class=\"read-more button\" href=\"https:\/\/linuxsimply.com\/fsck-command-in-linux\/#more-5680\" aria-label=\"Read more about The \u201cfsck\u201d Command in Linux [7 Practical Examples]\">Read more<\/a><\/p>\n","protected":false},"author":314897,"featured_media":5694,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[55],"class_list":["post-5680","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-commands","tag-file-management-commands","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>The \u201cfsck\u201d Command in Linux [7 Practical Examples]<\/title>\n<meta name=\"description\" content=\"The fsck command in Linux is a system utility for file management. It is used to check the filesystem consistency and fix them interactively.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxsimply.com\/fsck-command-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The \u201cfsck\u201d Command in Linux [7 Practical Examples]\" \/>\n<meta property=\"og:description\" content=\"The fsck command in Linux is a system utility for file management. It is used to check the filesystem consistency and fix them interactively.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxsimply.com\/fsck-command-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxSimply\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/moniramunny05\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-09T10:41:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-30T10:45:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux.png\" \/>\n\t<meta property=\"og:image:width\" content=\"400\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Monira Akter Munny\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Monira Akter Munny\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"13 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/fsck-command-in-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/fsck-command-in-linux\\\/\"},\"author\":{\"name\":\"Monira Akter Munny\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/person\\\/2d8ccee92571d892b55ef5999761fc9e\"},\"headline\":\"The \u201cfsck\u201d Command in Linux [7 Practical Examples]\",\"datePublished\":\"2023-02-09T10:41:04+00:00\",\"dateModified\":\"2023-08-30T10:45:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/fsck-command-in-linux\\\/\"},\"wordCount\":2396,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/fsck-command-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/fsck-command-in-linux.png\",\"keywords\":[\"file management commands\"],\"articleSection\":[\"Linux Commands\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linuxsimply.com\\\/fsck-command-in-linux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/fsck-command-in-linux\\\/\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/fsck-command-in-linux\\\/\",\"name\":\"The \u201cfsck\u201d Command in Linux [7 Practical Examples]\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/fsck-command-in-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/fsck-command-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/fsck-command-in-linux.png\",\"datePublished\":\"2023-02-09T10:41:04+00:00\",\"dateModified\":\"2023-08-30T10:45:15+00:00\",\"description\":\"The fsck command in Linux is a system utility for file management. It is used to check the filesystem consistency and fix them interactively.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/fsck-command-in-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linuxsimply.com\\\/fsck-command-in-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/fsck-command-in-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/fsck-command-in-linux.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/fsck-command-in-linux.png\",\"width\":400,\"height\":400,\"caption\":\"fsck command in linux.\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/fsck-command-in-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/linuxsimply.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The \u201cfsck\u201d Command in Linux [7 Practical Examples]\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#website\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/\",\"name\":\"LinuxSimply\",\"description\":\"All About Linux\",\"publisher\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/linuxsimply.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\",\"name\":\"LinuxSimply\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/LinuxSimply-New-Logo-Without-Icon.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/LinuxSimply-New-Logo-Without-Icon.png\",\"width\":355,\"height\":48,\"caption\":\"LinuxSimply\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/person\\\/2d8ccee92571d892b55ef5999761fc9e\",\"name\":\"Monira Akter Munny\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Monira-Akter-Munny-II-96x96.png\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Monira-Akter-Munny-II-96x96.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Monira-Akter-Munny-II-96x96.png\",\"caption\":\"Monira Akter Munny\"},\"description\":\"Hello!! This is Monira Akter Munny. I'm a Linux content developer executive here, at SOFTEKO company. I have completed my B.Sc. in Engineering from Rajshahi University of Engineering &amp; Technology in the Electrical &amp; Electronics department. I'm more of an online gaming person who also loves to read blogs &amp; write. As an open-minded person ready to learn &amp; adapt to new territory, I'm always excited to explore the Linux world &amp; share it with you! Read Full Bio\",\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/moniramunny05\",\"https:\\\/\\\/www.instagram.com\\\/monira_munny\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/monira-akter-munny-a76742113\\\/\"],\"url\":\"https:\\\/\\\/linuxsimply.com\\\/author\\\/munny\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The \u201cfsck\u201d Command in Linux [7 Practical Examples]","description":"The fsck command in Linux is a system utility for file management. It is used to check the filesystem consistency and fix them interactively.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/linuxsimply.com\/fsck-command-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"The \u201cfsck\u201d Command in Linux [7 Practical Examples]","og_description":"The fsck command in Linux is a system utility for file management. It is used to check the filesystem consistency and fix them interactively.","og_url":"https:\/\/linuxsimply.com\/fsck-command-in-linux\/","og_site_name":"LinuxSimply","article_author":"https:\/\/www.facebook.com\/moniramunny05","article_published_time":"2023-02-09T10:41:04+00:00","article_modified_time":"2023-08-30T10:45:15+00:00","og_image":[{"width":400,"height":400,"url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux.png","type":"image\/png"}],"author":"Monira Akter Munny","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Monira Akter Munny","Est. reading time":"13 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxsimply.com\/fsck-command-in-linux\/#article","isPartOf":{"@id":"https:\/\/linuxsimply.com\/fsck-command-in-linux\/"},"author":{"name":"Monira Akter Munny","@id":"https:\/\/linuxsimply.com\/#\/schema\/person\/2d8ccee92571d892b55ef5999761fc9e"},"headline":"The \u201cfsck\u201d Command in Linux [7 Practical Examples]","datePublished":"2023-02-09T10:41:04+00:00","dateModified":"2023-08-30T10:45:15+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxsimply.com\/fsck-command-in-linux\/"},"wordCount":2396,"commentCount":0,"publisher":{"@id":"https:\/\/linuxsimply.com\/#organization"},"image":{"@id":"https:\/\/linuxsimply.com\/fsck-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux.png","keywords":["file management commands"],"articleSection":["Linux Commands"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxsimply.com\/fsck-command-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxsimply.com\/fsck-command-in-linux\/","url":"https:\/\/linuxsimply.com\/fsck-command-in-linux\/","name":"The \u201cfsck\u201d Command in Linux [7 Practical Examples]","isPartOf":{"@id":"https:\/\/linuxsimply.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxsimply.com\/fsck-command-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/linuxsimply.com\/fsck-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux.png","datePublished":"2023-02-09T10:41:04+00:00","dateModified":"2023-08-30T10:45:15+00:00","description":"The fsck command in Linux is a system utility for file management. It is used to check the filesystem consistency and fix them interactively.","breadcrumb":{"@id":"https:\/\/linuxsimply.com\/fsck-command-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxsimply.com\/fsck-command-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/fsck-command-in-linux\/#primaryimage","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/02\/fsck-command-in-linux.png","width":400,"height":400,"caption":"fsck command in linux."},{"@type":"BreadcrumbList","@id":"https:\/\/linuxsimply.com\/fsck-command-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxsimply.com\/"},{"@type":"ListItem","position":2,"name":"The \u201cfsck\u201d Command in Linux [7 Practical Examples]"}]},{"@type":"WebSite","@id":"https:\/\/linuxsimply.com\/#website","url":"https:\/\/linuxsimply.com\/","name":"LinuxSimply","description":"All About Linux","publisher":{"@id":"https:\/\/linuxsimply.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxsimply.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/linuxsimply.com\/#organization","name":"LinuxSimply","url":"https:\/\/linuxsimply.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/#\/schema\/logo\/image\/","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/LinuxSimply-New-Logo-Without-Icon.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/LinuxSimply-New-Logo-Without-Icon.png","width":355,"height":48,"caption":"LinuxSimply"},"image":{"@id":"https:\/\/linuxsimply.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/linuxsimply.com\/#\/schema\/person\/2d8ccee92571d892b55ef5999761fc9e","name":"Monira Akter Munny","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Monira-Akter-Munny-II-96x96.png","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Monira-Akter-Munny-II-96x96.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Monira-Akter-Munny-II-96x96.png","caption":"Monira Akter Munny"},"description":"Hello!! This is Monira Akter Munny. I'm a Linux content developer executive here, at SOFTEKO company. I have completed my B.Sc. in Engineering from Rajshahi University of Engineering &amp; Technology in the Electrical &amp; Electronics department. I'm more of an online gaming person who also loves to read blogs &amp; write. As an open-minded person ready to learn &amp; adapt to new territory, I'm always excited to explore the Linux world &amp; share it with you! Read Full Bio","sameAs":["https:\/\/www.facebook.com\/moniramunny05","https:\/\/www.instagram.com\/monira_munny\/","https:\/\/www.linkedin.com\/in\/monira-akter-munny-a76742113\/"],"url":"https:\/\/linuxsimply.com\/author\/munny\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts\/5680","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/users\/314897"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/comments?post=5680"}],"version-history":[{"count":0,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts\/5680\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/media\/5694"}],"wp:attachment":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/media?parent=5680"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/categories?post=5680"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/tags?post=5680"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}