Give Command that will move a single file
called "unix.txt"
Answers were Sorted based on User's Feedback
Answer / kunal bariar
the above 2 answers are for renaming the file from unix.txt
to unix1.txt
the answer is
mv unix.txt "pat name where unix.txt is to be moved"
eg:- mv unix.txt /user1/ins/
| Is This Answer Correct ? | 15 Yes | 0 No |
Answer / krishna
Yes the first two answers are not true!
That command and format is used to renaming a file or folder!
If the source and destination is same then it is renameing..
Eg : mv krishna krishna2
That is ranaming the krishna file to krishna2
Moving a file is something destination and source are diff!
Eg: mv /tmp/krishna.txt /home/
In that krishna.txt is moved from /tmp file system to /home file system!
| Is This Answer Correct ? | 3 Yes | 1 No |
mv filename dest_location --> to move the file to other location
mv filename filename1 --> to rename the file
| Is This Answer Correct ? | 0 Yes | 0 No |
What is time_t?
How do I search for text in vi?
What is difference between grep and find command in unix?
Assume that a file’s permissions give you read and write access. What operations can you perform on the file if it is in a directory which has “r”(read) only process? What operations can you perform on the file if it is in a directory which has “x”(execute) only access?
What are grep patterns?
what is the command to list files in a directory in UNIX?
how unix kernel distinguishes between a normal file and device file ?
7 Answers Google, IBM, McAfee, Vodafone,
How to install scsi driver in unix? give me explanation clearly?
How does pipe () work?
What is "type" command in unix?what is the functionality??
How can you copy files or directories?
What is command statement?