Code: Select all
cp ....
He was in his home directory on a remote account, so he does not have permission to write to a higher directory.
What did he just do? I can't figure it out.
Moderator: Thanas
Code: Select all
cp ....
Code: Select all
$ echo $?
Code: Select all
[dkn2n4@rc13cslinux ~]$ cp ....
[dkn2n4@rc13cslinux ~]$
Code: Select all
[dkn2n4@rc13cslinux ~]$ cp ....
cp: missing destination file
Try 'cp --help' for more information.
[dkn2n4@rc13cslinux ~]$
Code: Select all
[dkn2n4@rc13cslinux ~]$ cd ....
-bash: cd: ....: No such file or directory
[dkn2n4@rc13cslinux ~]$
Code: Select all
cp filename ....
It would have created a file named "...." in the working directory, which was a copy of filename.Dave wrote:Ok, I spoke with my roomate, and apparently he actually ran the commandThat probably changes things significantly. I just tried it, and it does execute with error-level zero.Code: Select all
cp filename ....
I tried it 5 folders deep, and I can't find the file I just copied.
And since it has a leading '.', most file viewing utilities acknowledge that it's a hidden file and don't display it. 'ls -A' is the trick there.Durandal wrote: It would have created a file named "...." in the working directory, which was a copy of filename.