cp hosts backup/hosts.bak did not work [closed] - shell

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
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.

backup/ is not writeable by the user
hosts is not readable by the user
the disk where backup/ is located is full
hosts is a directory, not a file

Related

Where should I cp oc binary to on MacOS? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
In this documentation it says
unpack the archive and move the oc binary to a directory on your PATH
I tried echo $PATH and it returns:
bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
Clearly there are multiple path here, which one should I move cp oc binary to?
/usr/local/bin would be the usual choice for user or third-party executables. That way it won't get wiped out when you update the OS.
See also: Where do you keep your own scripts on OSX? - the question is about scripts rather than binaries, but the same logic applies.

Are windows security settings on the file or on the location? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
When I copy a file from one location to the other with the destination keep the original permissions or will it take the copied files permissions?
By default, an object inherits permissions from its parent object, either at the time of creation or when it is copied or moved to its parent folder. The only exception to this rule occurs when you move an object to a different folder on the same volume. In this case, the original permissions are retained.
Source: Microsoft support article

How do I connect to remote server in bash? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
The connection works fine with doing it through the gui as shown in pic 1, but I have tried
mount_smbfs //rajohns:MyPassword#msclst2fs
and I see that the format is supposed to be
//[domain;][user[:password]#]server[/share] path
but I don't know what to put for domain or /share or path
Try
mount_smbfs rajohns:MyPassword#msclst2fs/SHARE2 /Volumes/msclst2fs
to make the volume available at /mnt/msclst2fs. The path is wherever in your file system you want to make the volume accessible.

how to copy all extensions bash script [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
So this is probably really easy but I'm new to bash scripts.
I wanted to copy all html files from the directory "/site" to the directory "/checkout/target/site"
I wrote single line of copy code for every one of them but the names keep changing, so I want to write something that copies anything that ends with .html basically
oh and the files might exist in the destination, so overwriting would be a lot better.
Thank you
If it is just in the directory /site (not sub-dirs), this makes it:
cp /site/*html /checkout/target/site/

Find out what file does a program attempt to read [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I've got third party Winamp plug-in in windows, that should be able to load its datafile.
The datafile is located in same folder as the plug-in, but can not be found. My idea is that plug-in searches in some pre-defined path. So I need somehow to find out what file read attempt is done to place file in the appropriate place.
Best way to do this is to use Process Monitor from Sysinternals suite (http://technet.microsoft.com/sysinternals/bb896645)
Set up filters to watch only the examined program and look for 'CreateFile' operations, which are also read attempts.

Resources