Skip to main content
Ctrl+K
Jörg Faschingbauer - Home Jörg Faschingbauer - Home
  • Training Courses
  • About
  • Blog
  • Training Courses
  • About
  • Blog

Section Navigation

  • Course Descriptions
  • Pricing, Organizational
  • Log Of Past Courses
  • Complete Slide Material
    • Linux: Introduction, Userland/Kernel Programming, Hardware/Embedded
      • Linux Basics
        • Introduction: Concepts and Terminology
        • The Shell (Bash - “Bourne Again Shell”)
          • Commandline
          • Absolute and Relative Paths
          • Special Paths
          • Directory Listings: The ls Command
          • Current Working Directory
          • Creating And Removing Files and Directories
          • Copying: cp
          • Moving and Renaming: mv
          • Symbolic Links, Hard Links
          • Shell Configuration File: ~/.bashrc
          • The Shell - Exercises
            • Exercises: Create/Copy/Move/Remove
              • Exercise: mkdir
              • Exercise: Create Files (I/O Redirection)
              • Exercise: Copy Files
              • Exercise: Move Files
              • Exercise: Verify, Repeat
              • Exercise: Copy Directory Tree
              • Exercise: Remove Directory Tree
              • Exercise: Funny Stuff
            • Exercises: The ls Command
            • FH/Moodle Quiz: Shell
        • File System Permissions
        • Tools: Inspecting Text Files
        • Archiving and Compression
        • I/O Redirection And Pipes
        • Exercises/Exams: Linux Basics
      • Linux Systems Programming
      • SSH: Secure Shell
      • Toolchain, And Cross Development
      • Linux Hardware Interfaces
      • Linux Kernel Driver Development
      • Drafts
    • Python Programming
    • C Programming
    • C++ Programming
    • Build Tools, Unit Testing, Design, And More
  • Training Courses
  • Complete Slide Material
  • Linux: Introduction, Userland/Kernel Programming, Hardware/Embedded
  • Linux Basics
  • The Shell (Bash - “Bourne Again Shell”)
  • The Shell - Exercises
  • Exercises: Create/Copy/Move/Remove
  • Exercise: Move Files

Exercise: Move Files#

  • Directory Listings: The ls Command

  • Creating And Removing Files and Directories

  • Moving and Renaming: mv

  • Create two files garbage1.txt and garbage2.txt in your home directory (containing whatever you like)

    • Prior to doing this, use the ls command to verify that you don’t accidentally overwrite existing files (you created - and should have removed - them in Exercise: Copy Files)

  • Move these files into /tmp/firstname.lastname/parent

    • Do this using a single command

© Copyright 2019-2025 (GPLv3), Jörg Faschingbauer.

Created using Sphinx 8.1.3.

Built with the PyData Sphinx Theme 0.16.1.

Show Source