size.rst 702 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. .. SPDX-License-Identifier: GPL-2.0+
  2. size command
  3. ============
  4. Synopsis
  5. --------
  6. ::
  7. size <interface> <dev[:part]> <filename>
  8. Description
  9. -----------
  10. The size command determines the size of a file and sets the environment variable
  11. filesize to this value. If filename points to a directory, the value is set to
  12. zero.
  13. If the command fails, the filesize environment variable is not changed.
  14. dev
  15. device number
  16. part
  17. partition number, defaults to 1
  18. filename
  19. path to file
  20. Configuration
  21. -------------
  22. The size command is only available if CONFIG_CMD_FS_GENERIC=y.
  23. Return value
  24. ------------
  25. The return value $? is set to 0 (true) if the command succeded and to 1 (false)
  26. otherwise.