How do you move or rename a file or directory?
The mv command serves the dual purpose of moving and renaming files or directories. To rename a file, mv old_filename new_filename is used. Similarly, to move a file to a different directory, the format is mv filename target_directory/. The same logic applies to directories. It’s a versatile command that aids in organising and re-structuring file locations and names.
Is This Answer Correct ? | 0 Yes | 0 No |
how unix kernel distinguishes between a normal file and device file ?
7 Answers Google, IBM, McAfee, Vodafone,
what is the use of the hidden files?
How do you remove a crontab file?
what is the command to find out which shell you are running?
The command grep first second third /usr/you/myfile a) prints lines containing the words first, second or third from the file /usr/you/myfile b) searches for lines containing the pattern first in the files second, third, and /usr/you/myfile and prints them c) searches the files /usr/you/myfiel and third for lines containing the words first or second and prints them d) replaces the word first with the word second in the files third and /usr/you/myfile e) None of the above
What does pipe () return?
what these two commands prints "echo test","cat test"?
Which command is used to find whether the system is 32 bit or 64 bit?
What is the use of cut command in unix?
How many unix commands are there?
What is mtime in find command?
What is pid?