linux – –nice with cp为cp提供更多的处理器优先级?

前端之家收集整理的这篇文章主要介绍了linux – –nice with cp为cp提供更多的处理器优先级?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
如何在 linux中使用–nice = -10 with cp命令?

以下是我尝试该选项时的示例,它给出了错误无法识别的选项
EX错误

  1. cp --nice=-20 -r dir1 /d/
  2. cp: unrecognized option `--nice=-20'
  3. Try `cp --help' for more information.

解决方法

nice是一个命令,它不是cp命令的选项.

从男人好:

  1. NAME
  2. nice - run a program with modified scheduling priority
  3.  
  4. SYNOPSIS
  5. nice [OPTION] [COMMAND [ARG]...]
  6.  
  7. DESCRIPTION
  8. Run COMMAND with an adjusted niceness,which affects process scheduling.
  9. With no COMMAND,print the current niceness. Nicenesses range from -20
  10. (most favorable scheduling) to 19 (least favorable).
  11.  
  12. -n,--adjustment=N
  13. add integer N to the niceness (default 10)

所以为了你的目的,你会使用这个:

  1. nice -n -20 cp -r dir1 /d/

猜你在找的Linux相关文章