Używam Ubuntu 12.04.2 LTS na laptopie Dell 50-50. Wszystko poszło dobrze, dopóki:
[1635][lam@ubuntu:~/bin]$ ll
total 48
-rwxr-xr-x 1 lam lam 232 Jan 27 20:37 demo.sh
-rwxr-xr-x 1 lam lam 34 Aug 26 22:02 encore.sh
-rwxr-xr-x 1 lam lam 94 Nov 13 16:54 esame.sh
-rwxr-xr-x 1 lam lam 156 Jan 20 14:21 ginfo.sh
-rwxr-xr-x 1 lam lam 61 Oct 31 15:56 hello_world.sh
-rwxr-xr-x 1 lam lam 2323 Jan 20 13:36 infoscript
-rwxrwxr-x 1 lam lam 257 Dec 4 17:22 local-variable
-rwxr-xr-x 1 lam lam 16 Jan 28 15:2[1638]
[lam@ubuntu:~/bin]$ cp sayH.sh temp/sayH2.sh~
rm: cannot remove `sayH.sh': No such file or directory
rm: cannot remove `temp/sayH2.sh~': No such file or directory
Próbuję skopiować plik, ale Ubuntu najwyraźniej próbuje go usunąć. Czy ktoś może to wyjaśnić?
aliasseskomendę alias.
cpw ~/.bash_aliaseslub ~/.bashrc? 2) Nie masz folderu tempw bieżącym katalogu, więc masz na myśli / temp? 3) Jaki jest cel ~twojego miejsca docelowego?
--remove-destination? ... Zobacz man cp. I sugerowałbym type cp(zakładając domyślny Bash) zamiast alias, ponieważ może to być również funkcja.