How to move files to parent directory?

QuestionsQuestions8 SkillsProBasic Files OperationsSep, 29 2025
0139

To move files to the parent directory using the mv command, you can use the following syntax:

mv filename ..

Here, .. represents the parent directory.

For example, if you want to move a file named file.txt to the parent directory, you would use:

mv file.txt ..

You can also move multiple files at once by specifying them before the .., like this:

mv file1.txt file2.txt ..

0 Comments

no data
Be the first to share your comment!