I would like to know if there's any option to use with the du command so that I can list only the files/directories on the current filesystem... I usually use
du -gs *
But I'd like to see only the directories in the filesystem I am on, and not the mount point directory of other fss...
I know -x flag has something to do with that, but man pages doesn't show any example.
That worked fine, but I was actually asking about doing something like listing only directories
i.e.: I use on /
du -ms * | sort
and that shows me a list of all directories (-s) in the / filesystem. The matter is that I may have many filesystems mounted over /, which are shown as a normal directory. Now, I don't want to list all those mount points over / (like /usr, /var, and any other fs), only normal directories created on /.
Is it possible to do that?
I apologize for my English, I hope you have understood.