fstat() is the system call used to get file status information, including file size. It operates on file descriptors and populates a struct stat with size, permissions, and timestamps. ls -l is a shell command, sizeof() is a compile-time operator, and filesize() is not a standard function.