Linux check space left on network drive

ubuntu
networking
centos

#1

I have network drive mapped from both Windows server and Unix server on my Linux desktop installed by someone else. So I do not know where to look for config file. I only know password and other get mapped automatically when system boots. Is there is a command to check disk space left on network drive when using Linux desktop?


#2

NFS or CIFS (Windows mount) are treated same as any other mount point. Use the following commands on Linux to check space left on network drive:

  1. df command - report file system disk space usage
  2. du command - estimate file space usage
  3. mount command - mount or show info about mounted file system including NFS/cifs (SMB).

Linux check space left on network drive mounted at /nfs/

df -h | more
df -h /nfs
## only show nfs ##
df -t nfs -h
df -t nfs4 -h
## only show cifs/smb ## 
df -t cifs -h
df -t smb -h

For more info see: