📖
Resources
  • 👋Welcome!
  • Semesters
    • 🚀S1 & S2
      • 🔍Focus
      • âš—ī¸Chemistry
      • 🔭Physics
      • 📊LAC
      • 📈VCD
      • đŸ˜ī¸BCE - BME
      • 🔌BEE
      • 📐Graphics
      • âš™ī¸Mechanics
      • đŸ–Ĩī¸CP
      • â›ˇī¸Life Skills
      • 🧑‍đŸ’ŧPC
    • 📚S3
      • 📉DS
      • âš™ī¸DE
      • 📊DMS
      • 🧑‍đŸ’ģOOP
      • đŸ–Ĩī¸OOP Lab
      • đŸ—ī¸LSD
      • 🌱SE
      • 🔍Extras
    • 📓S4
      • 📊GT
      • 💾COA
      • đŸĒŖDBMS
      • đŸ’ŊOS
      • 😃PE
      • đŸ‡ŽđŸ‡ŗCOI
      • đŸĨŧDE Lab
      • đŸ’ģOS Lab
      • 🔐Number Theory
    • âœī¸S5
      • 💾FLAT
      • 🛜CN
      • đŸ’ŊSS
      • đŸ•šī¸MM
      • đŸ’ģMOSS
      • â˜ĸī¸DM
      • đŸĨŧSS&M Lab
      • đŸĒŖDBMS Lab
      • Cryptographic Algorithms
    • 📖S6
      • CD
      • CGIP
      • AAD
      • PIP (Elective)
      • IEFT
      • CCW
      • Networking Lab
      • Mini Project
    • 📝S7
    • 🎓S8
  • Resources
    • Git
      • Git installation
      • What is Git?
    • Linux
      • Introduction
        • History of Operating System
        • Rise of GNU Project
        • Basic Terminologies
      • Linux shell
      • Commands
        • The Linux man command
        • The Linux ls command
        • cd command
        • The Linux pwd command
        • The Linux mkdir command
        • The Linux rmdir command
        • mv command
        • cp command
        • open command
        • touch command
        • find command
        • Cat command
        • grep command
        • Echo command
        • Vim Editor
        • Emacs Editor
        • Nano editor
        • whoami command
        • who command
        • su command
        • sudo command
        • passwd command
        • clear command
        • History command
    • DSA
      • 1.2 Concepts of Sliding Window Technique
      • 2.2 Characteristics of Sliding Window Problems
      • 1.3 Introduction to Deque and Monotonic Stack
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Resources
  2. Linux
  3. Commands

mv command

The Linux mv command

Once you have a file, you can move it around using the mv command. You specify the file current path, and its new path:

touch test
mv pear new_pear

The pear file is now moved to new_pear. This is how you rename files and folders.

If the last parameter is a folder, the file located at the first parameter path is going to be moved into that folder. In this case, you can specify a list of files and they will all be moved in the folder path identified by the last parameter:

touch pear
touch apple
mkdir fruits
mv pear apple fruits #pear and apple moved to the fruits folder
PreviousThe Linux rmdir commandNextcp command

Last updated 1 year ago

Was this helpful?