Step1: Go to the Files tab in a channel.
Step2: Or, if the file or folder is in your OneDrive, go to Files on the left of Teams
Step3: select OneDrive.
Step4: Select More options More options button next to the file or folder and then select Rename.
Step5: Enter the new name and select Save.