Solved file system commands

Solved issue

CaffeineAddict

Well-Known Member
Joined
Jan 21, 2024
Messages
478
Reaction score
305
Credits
3,966
I'm assembling a list of file system commands to learn more about, I noticed there is common naming schema, for ex.

  • e2label
  • tune2fs
  • dump2fs
  • resize2fs
  • e2freefrag
  • e2fsck
  • e4defrag

What all these have in common is naming, it has "2" or "4" in name.

Questions:
1.) Beside these what other fs commands exist that have similar naming schema?
2.) What's the meaning of these numbers in naming? why 2, 4 etc.
 


If it's about the extended filesystem, the commonality is e2 rather than just 2. The 2 itself appears in numerous unrelated executables. To see that, one can run:
Code:
ls /usr/bin/| grep 2

"dump2fs" in post #1 is actually "dumpe2fs"

On this machine though, the executables related to filesystem manipulations e2 or e4 in their name are thus:
Code:
[tom@min ~]$ ls /usr/bin | grep e2
file2brl

[tom@min ~]$ ls /usr/sbin | grep e2
dumpe2fs
e2freefrag
e2fsck
e2image
e2label
e2mmpstatus
e2scrub
e2scrub_all
e2undo
mke2fs
resize2fs
tune2fs

[tom@min ~]$ ls /usr/bin | grep e4
[tom@min ~]$ ls /usr/sbin | grep e4
e4crypt
e4defrag
xfce4-kiosk-query

The xfce4-kiosk-query is not a relevant member of the group of course.

Not all filesystem commands are picked up this way though a lot of the extended filesystem commands do come up. There are so many other filesystems with each having their own set of commands to manipulate them, e.g.: lvm, xfs, btrfs, zfs, fuse etc. It's a cornucopia of riches about which I can't say much more :) .
 
Last edited:

Staff online


Top