I was reading a book on UNIX when I came across this question. The command

    cp hosts backup/hosts.bak

did not work even though all files exist. Name three possible reasons. I could think of one only and that too I am not sure about. According to me one reason can be the current directory is not writable by the user. Please help me out to know the actual reasons.

有帮助吗?

解决方案

  1. backup/ is not writeable by the user
  2. hosts is not readable by the user
  3. the disk where backup/ is located is full
  4. hosts is a directory, not a file
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top