in UNIX,How to copy file into directory?
Answers were Sorted based on User's Feedback
Answer / neena
cp text.txt sample
I want to copy the file(text.txt) from sample1(directory)
to sample directory
| Is This Answer Correct ? | 1 Yes | 0 No |
cp source destination
Cp path_a.txt Path/
Thanks,
Jagadeeb@gmail.com
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / shiva
Take a file to be copied into a directory say file1 to
DIRECTORY.
cp file1 DIRECTORY.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is “chmod” command?
what is the default permission for /etc/shadow file in UNIX
What is the use of touch command in there?
What is a bash command?
What are the general commands in using unix os for a beginner?
what is the difference between SED and GREP ? Which one is more better and why?
How do you remove a crontab file?
How to find and replace the below command?
When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include<stdlib.h> # include <stdio.h> int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:
what is the use of nice command?
how will u execute a file in unix
What is the behavioural difference between cmp and diff commands?