I'm using debugfs
to stat a filename with spaces. The file exists, but I get this message (same message if I change spaces by \
or write the filename between simple quotes):
$ sudo debugfs -R "stat /home/user/This is a test.txt" /dev/mapper/VolGroup00-lv_root
debugfs 1.44.5 (15-Dec-2018)
stat: Usage: stat <file>
If I use this format I get this error:
$ sudo debugfs -R "stat $'/home/user/This\x20is\x20a\x20test.txt'" /dev/mapper/VolGroup00-lv_root
debugfs 1.44.5 (15-Dec-2018)
$'/home/user/This\x20is\x20a\x20test.txt': File not found by ext2_lookup
If I use this format I get this error:
$ sudo debugfs -R "stat $'/home/user/This\024is\024a\024test.txt'" /dev/mapper/VolGroup00-lv_root
debugfs 1.44.5 (15-Dec-2018)
$'/home/user/This\024is\024a\024test.txt': File not found by ext2_lookup
Is it possible to stat a filename with spaces with debugfs
?