How to Work Linux File SystemHow to Work Linux File System
Abir HasnatAbir Hasnat
161-15-6789161-15-6789
Managing File System
• Creating a file
• Deleting a file
• Copy a file
• Move a file
Creating a File
• cat or touch command
• $ touch fileName
• $ cat
• $ cat > fileName
Copying Files
• cp command
• $ cp file1 file2
• $ cp file1 /new/file2
• $ cp file1 file2 file 3 /new/file4
Deleting Files
• rm command
• $ rm file1
• $ rm *.txt
• $rm *.txt *.jpg *.mp4
Renaming Files
• mv command
• $ mv file1 /tmp
• $mv file1 /tmp/file2
Renaming Files
• mv command
• $ mv file1 /tmp
• $mv file1 /tmp/file2

Linux file system