Q.) Explain the discrepancy between these 2 outputs:
df -h /tmp/
Filesystem Size Used Avail Capacity Mounted on
/dev/sda1 496M 39M 417M 9% /tmp
du -d 0 -h /tmp/
22M /tmp/
Q.) Explain what could be the reason that student user is not able to delete the file :
Q.) What could be the reason that "newdir" cannot be created in this case ? How can we solve this ?
#pwd
/root
#mkdir newdir
mkdir: cannot create directory `newdir': No space left on device
#df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 41G 4.1G 35G 11% /
/dev/sda3 91G 36G 51G 42% /home
/dev/sda2 99G 3.4G 91G 4% /usr
I'll be posting a series of Linux-related questions covering various skill levels. Feel free to share your insights and expertise. Your contributions will benefit learners at all stages, from those in current roles to those preparing for Linux interviews.
checking directories /subdirectoirs and inside number of files.
By the way inode contraint was with till ext4 file system and since redhat8 xfs is default file system and it has no limitation of inode count so there would be no inode kind of issue henceforth what I belive ....xfs file system based on solars zfs file system there is no inode constraints ...earlier we used to face lot of issue with inode when solaris used to UFS file system ...only solution was either remove files or recreate file systems.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.