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 command substitution?
how to sort the content of the file based on numeric values
distinguish between multi-tasking,multi-user,multi- processing and time sharing?
7 Answers Alcatel, Cisco, Infosys, University Exams,
use of ls command
Write a grep (or grep) command that selects the lines from a file that have exactly three characters.
What's a command word?
Hi All, Can you please let me know how to grep for a particular pattern in unix. I want to print the dates from the file exp.txt. the date pattern is DD:MM:YYYY, I just want to print all the dates from the file exp.txt.
8 Answers Concentrix, IBM, Symantec, TCS,
How to add content of one file into another file at the beginning
what will be the output of ls ~/..
Give a regular expression that finds two things, try to come up with regular expressions that find each individually using "egrep" command?
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 is .sh file?