Create a file Touch
Touch filenames
Create a folder mkdir
mkdir dir3 dir4 DIR5 Create multiple folders
mkdir ~/games Create the Games folder under this directory of logged-in users
Mkdir-p DIR6/DIR7/DIR8 Creating multi-tier folders
Copying a replicated folder
For example-->tomcat source folder to copy
| Other
| Folder
| Tomcat_2 Destination Folder Empty folder
Steps
#cd Tomcat into the Tomcat folder
#cp-ri *. /tomcat_2
CP [-i] source_file destinmation_file
Mv:move or rename files and directions
Mv-i Source Target_file
Mv-i Source Target_directing
For example #mv Dir1 Dir2
1 folder Dir1 disappears soon the file header Dir1 renamed to Dir2
2 Folder 2 if present
Move folder Dir1 to Folder Dir2
#mv file1 file2
1 if the file file2 does not exist, the File1 is renamed to File2
2 If the file File2 exists then file1 disappears file2 be file1 content and replace
RM &rmdir
Remove files
Delete empty folder RmDir dir
Delete non-empty folders Rm-ri dir
Delete each file to confirm that you want to delete the file is deleted only when you enter Y. Enter any other alphabetic file that is not deleted
Rm-rf dir forcibly delete directory no information interaction
Linux Learning Note 10