First page Back Continue Last page Overview Graphics
Example 1-8
Moving files or directories mv
- We often need to reorganize our directories or files around our file system or rename a file or directory. You can rename the directory test under ~/bash_scripting/example1 to test2 using following command,
- mv test test2
- You can move directory test2 to directory moved using following command
- mv test2 moved
- To see if test2 is inside directory moved, use command ls.