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 does the metacharacter mean?
What is the use of touch command in there?
What is the function of grep command in unix?
What are the differences among a system call, a library function, and a unix command?
what are the different commands used to view the contents of a file?
Write a grep (or grep) command that selects the lines from a file that have exactly three characters.
Write a command to display a file’s contents in various formats?
How do you create a file in UNIX
36 Answers Accenture, EMG, Nokia, QA, TD,
what is the difference between SED and GREP ? Which one is more better and why?
How can i know my Filesystem and its current usage in my prod UNIX system?
How to check whether some services are running in another server or not? Suppose i am currently in a server named A.I want to check whether some services are running in server B without logging into the server B.
3 Answers Amazon, MBA, Syntel, TCS, Unisys,
What is the use of the tee command?