(https://media.geeksforgeeks.org/wp-content/cdn-uploads/gfg_favicon.png) (https://fonts.googleapis.com) (https://fonts.gstatic.com) How to Copy Files and Directories in Linux | cp Command - GeeksforGeeks (http://gmpg.org/xfn/11) () (https://www.geeksforgeeks.org/cp-command-linux-examples/) (//www.geeksforgeeks.org) (//s.w.org) (https://www.geeksforgeeks.org/wp-content/themes/iconic-one/css/gfg.min.css?ver=11.47) (https://www.geeksforgeeks.org/?p=165246) (https://www.geeksforgeeks.org/wp-content/uploads/gfg_200X200-100x100.png) (https://www.geeksforgeeks.org/wp-content/uploads/gfg_200X200.png) (https://www.geeksforgeeks.org/wp-content/uploads/gfg_200X200.png) Skip to content (https://www.geeksforgeeks.org/) (geeksforgeeks) Tutorials Python Tutorial (https://www.geeksforgeeks.org/taking-input-in-python/?ref=outind) Taking Input in Python (https://www.geeksforgeeks.org/python-operators/?ref=outind) Python Operators Python Data Types (https://www.geeksforgeeks.org/python-numbers/?ref=outind) Python Numbers (https://www.geeksforgeeks.org/python-string/?ref=outind) Python String (https://www.geeksforgeeks.org/python-lists/?ref=outind) Python Lists (https://www.geeksforgeeks.org/python-tuples/?ref=outind) Python Tuples (https://www.geeksforgeeks.org/sets-in-python/?ref=outind) Sets in Python (https://www.geeksforgeeks.org/python-dictionary/?ref=outind) Python Dictionary Python Loops and Control Flow (https://www.geeksforgeeks.org/python3-if-if-else-nested-if-if-elif-statements/?ref=outind) Python Conditional Statements (https://www.geeksforgeeks.org/loops-in-python/?ref=outind) Python Loops (https://www.geeksforgeeks.org/python-functions/?ref=outind) Python Functions (https://www.geeksforgeeks.org/python-oops-concepts/?ref=outind) Python OOPS Concept Python Data Structures (https://www.geeksforgeeks.org/python-data-structures-and-algorithms/?ref=outind) Python DSA (https://www.geeksforgeeks.org/python-linked-list/?ref=outind) Linked List (https://www.geeksforgeeks.org/stack-in-python/?ref=outind) Stack (https://www.geeksforgeeks.org/queue-in-python/?ref=outind) Queue (https://www.geeksforgeeks.org/binary-tree-data-structure/?ref=outind) Tree (https://www.geeksforgeeks.org/introduction-to-heap-data-structure-and-algorithm-tutorials/?ref=outind) Heap (https://www.geeksforgeeks.org/introduction-to-hashing-data-structure-and-algorithm-tutorials/?ref=outind) Hashing (https://www.geeksforgeeks.org/introduction-to-graphs-data-structure-and-algorithm-tutorials/?ref=outind) Graph (https://www.geeksforgeeks.org/introduction-to-set-data-structure-and-algorithm-tutorials/?ref=outind) Sets (https://www.geeksforgeeks.org/introduction-to-map-data-structure-and-algorithm-tutorials/?ref=outind) Map (https://www.geeksforgeeks.org/advanced-data-structures/?ref=outind) Advance Data Structure (https://www.geeksforgeeks.org/sorting-algorithms-in-python/?ref=outind) Sorting Algorithms (https://www.geeksforgeeks.org/searching-algorithms/?ref=outind) Searching Algorithms (https://www.geeksforgeeks.org/python-exception-handling/?ref=outind) Python Exception Handling (https://www.geeksforgeeks.org/file-handling-python/?ref=outind) Python File Handling Python Exercises (https://www.geeksforgeeks.org/python-list-exercise/?ref=outind) Python List Exercise (https://www.geeksforgeeks.org/python-string-exercise/?ref=outind) Python String Exercise (https://www.geeksforgeeks.org/python-tuple-exercise/?ref=outind) Python Tuple Exercise (https://www.geeksforgeeks.org/python-dictionary-exercise/?ref=outind) Python Dictionary Exercise (https://www.geeksforgeeks.org/python-set-exercise/?ref=outind) Python Set Exercise (https://www.geeksforgeeks.org/python-design-patterns/?ref=outind) Python Design Patterns (https://www.geeksforgeeks.org/python-programming-examples/?ref=outind) Python Programming Examples (https://www.geeksforgeeks.org/python-exercises-practice-questions-and-solutions/?ref=outind) Python Practice Questions Java Java Programming Language (https://www.geeksforgeeks.org/java/?ref=outind) Java Tutorial (https://www.geeksforgeeks.org/data-types-in-java/?ref=outind) Data Types (https://www.geeksforgeeks.org/variables-in-java/?ref=outind) Variables (https://www.geeksforgeeks.org/operators-in-java/?ref=outind) Operators (https://www.geeksforgeeks.org/decision-making-javaif-else-switch-break-continue-jump/?ref=outind) Flow Control in Java (https://www.geeksforgeeks.org/loops-in-java/?ref=outind) Loops in Java (https://www.geeksforgeeks.org/methods-in-java/?ref=outind) Methods (https://www.geeksforgeeks.org/strings-in-java/?ref=outind) Strings (https://www.geeksforgeeks.org/arrays-in-java/?ref=outind) Arrays OOPs Concepts (https://www.geeksforgeeks.org/object-oriented-programming-oops-concept-in-java/?ref=outind) OOPs Concepts (https://www.geeksforgeeks.org/classes-objects-java/?ref=outind) Classes and Objects (https://www.geeksforgeeks.org/access-modifiers-java/?ref=outind) Access Modifiers (https://www.geeksforgeeks.org/inheritance-in-java/?ref=outind) Inheritance (https://www.geeksforgeeks.org/abstraction-in-java-2/?ref=outind) Abstraction (https://www.geeksforgeeks.org/encapsulation-in-java/?ref=outind) Encapsulation (https://www.geeksforgeeks.org/polymorphism-in-java/?ref=outind) Polymorphism (https://www.geeksforgeeks.org/interfaces-in-java/?ref=outind) Interface (https://www.geeksforgeeks.org/packages-in-java/?ref=outind) Packages (https://www.geeksforgeeks.org/multithreading-in-java/?ref=outind) Multithreading (https://www.geeksforgeeks.org/file-handling-in-java/?ref=outind) File Handling (https://www.geeksforgeeks.org/regular-expressions-in-java/?ref=outind) Regular Expression Java Collections (https://www.geeksforgeeks.org/collections-in-java-2/?ref=outind) Java Collections (https://www.geeksforgeeks.org/collections-class-in-java/?ref=outind) Collection Class (https://www.geeksforgeeks.org/list-interface-java-examples/?ref=outind) List Interface (https://www.geeksforgeeks.org/arraylist-in-java/?ref=outind) ArrayList (https://www.geeksforgeeks.org/linked-list-in-java/?ref=outind) LinkedList Class (https://www.geeksforgeeks.org/queue-interface-java/?ref=outind) Queue Interface (https://www.geeksforgeeks.org/set-in-java/?ref=outind) Set Interface (https://www.geeksforgeeks.org/hashset-in-java/?ref=outind) HashSet Class (https://www.geeksforgeeks.org/map-interface-java-examples/?ref=outind) Map Interface (https://www.geeksforgeeks.org/java-util-hashmap-in-java-with-examples/?ref=outind) HashMap Class (https://www.geeksforgeeks.org/hashtable-in-java/?ref=outind) HashTable Class (https://www.geeksforgeeks.org/iterators-in-java/?ref=outind) Iterator (https://www.geeksforgeeks.org/comparator-interface-java/?ref=outind) Comparator (https://www.geeksforgeeks.org/java-collections-interview-questions/?ref=outind) Collection Interview Questions (https://www.geeksforgeeks.org/java-8-features/?ref=outind) Java 8 Tutorial Java Programs (https://www.geeksforgeeks.org/java-programming-examples/?ref=outind) Java Programming Examples (https://www.geeksforgeeks.org/java-array-programs/?ref=outind) Java Array Programs (https://www.geeksforgeeks.org/java-string-programs/?ref=outind) Java String Programs (https://www.geeksforgeeks.org/java-date-time-programs/?ref=outind) Java Date-Time Programs (https://www.geeksforgeeks.org/java-file-handling-programs/?ref=outind) Java File Handling Programs (https://www.geeksforgeeks.org/java-collection-programs/?ref=outind) Java Collection Programs (https://www.geeksforgeeks.org/java-jdbc-programs/?ref=outind) Java JDBC Programs (https://www.geeksforgeeks.org/java-apache-poi-programs/?ref=outind) Java Apache POI Programs (https://www.geeksforgeeks.org/java-opencv-programs/?ref=outind) Java OpenCV Programs Java Interview Questions (https://www.geeksforgeeks.org/java-interview-questions/?ref=outind) Java Interview Questions (https://www.geeksforgeeks.org/core-java-interview-questions-for-freshers/?ref=outind) Core Java Interview Questions-Freshers (https://www.geeksforgeeks.org/top-20-java-multithreading-interview-questions-answers/?ref=outind) Java Multithreading Interview Questions (https://www.geeksforgeeks.org/oops-interview-questions/?ref=outind) OOPs Interview Questions and Answers (https://www.geeksforgeeks.org/java-exercises/?ref=outind) Java Exercises Java Quiz (https://www.geeksforgeeks.org/quizzes/50-java-language-mcqs-with-answers-2/?ref=outind) Java Quiz (https://www.geeksforgeeks.org/java-multiple-choice-questions/?ref=outind) Core Java MCQ (https://www.geeksforgeeks.org/java-projects/?ref=outind) Java Projects Advance Java (https://www.geeksforgeeks.org/spring/?ref=outind) Spring Tutorial (https://www.geeksforgeeks.org/spring-boot/?ref=outind) Spring Boot Tutorial (https://www.geeksforgeeks.org/spring-boot-interview-questions/?ref=outind) Spring Boot Interview Questions (https://www.geeksforgeeks.org/spring-mvc/?ref=outind) Spring MVC Tutorial (https://www.geeksforgeeks.org/spring-mvc-interview-questions/?ref=outind) Spring MVC Interview Questions (https://www.geeksforgeeks.org/hibernate-tutorial/?ref=outind) Hibernate Tutorial (https://www.geeksforgeeks.org/hibernate-interview-questions/?ref=outind) Hibernate Interview Questions Programming Languages (https://www.geeksforgeeks.org/c-programming-language/?ref=outind) C (https://www.geeksforgeeks.org/c-plus-plus/?ref=outind) C++ (https://www.geeksforgeeks.org/learn-javascript-js-roadmap-for-beginners/?ref=outind) JavaScript (https://www.geeksforgeeks.org/php-tutorial/?ref=outind) PHP (https://www.geeksforgeeks.org/r-tutorial/?ref=outind) R Tutorial (https://www.geeksforgeeks.org/csharp-programming-language/?ref=outind) C# (https://www.geeksforgeeks.org/sql-tutorial/?ref=outind) SQL (https://www.geeksforgeeks.org/scala-programming-language/?ref=outind) Scala (https://www.geeksforgeeks.org/perl-programming-language/?ref=outind) Perl (https://www.geeksforgeeks.org/golang/?ref=outind) Go Language (https://www.geeksforgeeks.org/kotlin-programming-language/?ref=outind) Kotlin System Design System Design Tutorial (https://www.geeksforgeeks.org/what-is-system-design-learn-system-design/?ref=outind) What is System Design (https://www.geeksforgeeks.org/important-key-concepts-and-terminologies-learn-system-design/?ref=outind) Key Terminologies in System Design (https://www.geeksforgeeks.org/analysis-of-monolithic-and-distributed-systems-learn-system-design/?ref=outind) Analysis and Architecture of Systems (https://www.geeksforgeeks.org/what-is-scalability-and-how-to-achieve-it-learn-system-design/?ref=outind) Scalability in System Design (https://www.geeksforgeeks.org/complete-reference-to-databases-in-designing-systems/?ref=outind) Databases in System Design (https://www.geeksforgeeks.org/what-is-high-level-design-learn-system-design/?ref=outind) High Level Design or HLD (https://www.geeksforgeeks.org/what-is-low-level-design-or-lld-learn-system-design/?ref=outind) Low Level Design or LLD (https://www.geeksforgeeks.org/top-10-system-design-interview-questions-and-answers/?ref=outind) Case Studies in Designing Systems (https://www.geeksforgeeks.org/system-design-tutorial/?ref=outind) Complete System Design Tutorial (https://www.geeksforgeeks.org/software-design-patterns/?ref=outind) Software Design Patterns (https://www.geeksforgeeks.org/complete-roadmap-to-learn-system-design/?ref=outind) System Design Roadmap (https://www.geeksforgeeks.org/top-10-system-design-interview-questions-and-answers/?ref=outind) Top 10 System Design Interview Questions and Answers Interview Corner (https://www.geeksforgeeks.org/company-preparation/?ref=outind) Company Preparation (https://www.geeksforgeeks.org/interview-preparation-for-software-developer/?ref=outind) Top Topics (https://practice.geeksforgeeks.org/company-tags/?ref=outind) Practice Company Questions (https://www.geeksforgeeks.org/company-interview-corner/?ref=outind) Interview Experiences (https://www.geeksforgeeks.org/experienced-interview-experiences-company-wise/?ref=outind) Experienced Interviews (https://www.geeksforgeeks.org/internship-interview-experiences-company-wise/?ref=outind) Internship Interviews (https://www.geeksforgeeks.org/competitive-programming-a-complete-guide/?ref=outind) Competitive Programming (https://www.geeksforgeeks.org/quiz-corner-gq/?ref=outind) Multiple Choice Quizzes (https://www.geeksforgeeks.org/aptitude-questions-and-answers/?ref=outind) Aptitude for Placements Computer Science Subjects (https://www.geeksforgeeks.org/operating-systems/?ref=outind) Operating System (https://www.geeksforgeeks.org/dbms/?ref=outind) DBMS (https://www.geeksforgeeks.org/computer-network-tutorials/?ref=outind) Computer Networks (https://www.geeksforgeeks.org/engineering-mathematics-tutorials/?ref=outind) Engineering Mathematics (https://www.geeksforgeeks.org/computer-organization-and-architecture-tutorials/?ref=outind) Computer Organization and Architecture (https://www.geeksforgeeks.org/theory-of-computation-automata-tutorials/?ref=outind) Theory of Computation (https://www.geeksforgeeks.org/compiler-design-tutorials/?ref=outind) Compiler Design (https://www.geeksforgeeks.org/digital-electronics-logic-design-tutorials/#blg/?ref=outind) Digital Logic (https://www.geeksforgeeks.org/software-engineering/?ref=outind) Software Engineering DevOps (https://www.geeksforgeeks.org/git-tutorial/?ref=outind) GIT (https://www.geeksforgeeks.org/aws-tutorial/?ref=outind) AWS (https://www.geeksforgeeks.org/docker-tutorial/?ref=outind) Docker (https://www.geeksforgeeks.org/kubernetes-tutorial/?ref=outind) Kubernetes (https://www.geeksforgeeks.org/microsoft-azure/?ref=outind) Microsoft Azure Tutorial (https://www.geeksforgeeks.org/google-cloud-platform-tutorial/?ref=outind) Google Cloud Platform Linux (https://www.geeksforgeeks.org/linux-tutorial/?ref=outind) Linux Tutorial (https://www.geeksforgeeks.org/linux-commands/?ref=outind) Linux Commands A-Z (https://www.geeksforgeeks.org/linux-commands-cheat-sheet/?ref=outind) Linux Commands Cheatsheet (https://www.geeksforgeeks.org/permissions-in-linux/?ref=outind) File Permission Commands (https://www.geeksforgeeks.org/beginners-guide-to-linux-system-administration/?ref=outind) Linux System Administration (https://www.geeksforgeeks.org/linux-file-system/?ref=outind) Linux File System (https://www.geeksforgeeks.org/introduction-linux-shell-shell-scripting/?ref=outind) Linux Shell Scripting (https://www.geeksforgeeks.org/network-configuration-trouble-shooting-commands-linux/?ref=outind) Linux Networking (https://www.geeksforgeeks.org/linux-interview-questions/?ref=outind) Linux Interview Questions Software Testing (https://www.geeksforgeeks.org/software-testing-tutorial/?ref=outind) Software Testing Tutorial (https://www.geeksforgeeks.org/software-engineering/?ref=outind) Software Engineering Tutorial (https://www.geeksforgeeks.org/software-testing-interview-questions/?ref=outind) Testing Interview Questions (https://www.geeksforgeeks.org/jira-tutorial/?ref=outind) Jira Databases (https://www.geeksforgeeks.org/dbms/?ref=outind) DBMS Tutorial (https://www.geeksforgeeks.org/sql-tutorial/?ref=outind) SQL Tutorial (https://www.geeksforgeeks.org/postgresql-tutorial/?ref=outind) PostgreSQL Tutorial (https://www.geeksforgeeks.org/mongodb-tutorial/?ref=outind) MongoDB Tutorial (https://www.geeksforgeeks.org/sql-interview-questions/?ref=outind) SQL Interview Questions (https://www.geeksforgeeks.org/mysql-interview-questions/?ref=outind) MySQL Interview Questions (https://www.geeksforgeeks.org/pl-sql-interview-questions/?ref=outind) PL/SQL Interview Questions Android (https://www.geeksforgeeks.org/android-tutorial/?ref=outind) Android Tutorial (https://www.geeksforgeeks.org/android-studio-tutorial/?ref=outind) Android Studio Tutorial (https://www.geeksforgeeks.org/kotlin-android-tutorial/?ref=outind) Kotlin For Android (https://www.geeksforgeeks.org/android-projects-from-basic-to-advanced-level/?ref=outind) Android Projects (https://www.geeksforgeeks.org/top-50-android-interview-questions-answers-sde-i-to-sde-iii/?ref=outind) Android Interview Questions (https://www.geeksforgeeks.org/6-weeks-of-android-app-development-free-project-based-learning/?ref=outind) 6 Weeks of Android App Development Excel (https://www.geeksforgeeks.org/excel-tutorial/?ref=outind) MS Excel Tutorial (https://www.geeksforgeeks.org/introduction-to-ms-excel/?ref=outind) Introduction to MS Excel (https://www.geeksforgeeks.org/data-analysis-in-excel/?ref=outind) Data Analysis in Excel (https://www.geeksforgeeks.org/basic-excel-formulas-and-functions/?ref=outind) Basic Excel Formulas & Functions (https://www.geeksforgeeks.org/instant-data-analysis-in-advanced-excel/?ref=outind) Data Analysis in Advanced Excel (https://www.geeksforgeeks.org/workbooks-in-microsoft-excel/?ref=outind) Workbooks (https://www.geeksforgeeks.org/statistical-functions-in-excel-with-examples/?ref=outind) Statistical Functions (https://www.geeksforgeeks.org/data-visualization-in-excel/?ref=outind) Data Visualization in Excel (https://www.geeksforgeeks.org/pivot-tables-in-excel/?ref=outind) Pivot Tables in Excel (https://www.geeksforgeeks.org/working-with-excel-spreadsheets-in-python/?ref=outind) Excel Spreadsheets in Python (https://www.geeksforgeeks.org/basic-excel-shortcuts/?ref=outind) Basic Excel Shortcuts Mathematics (https://www.geeksforgeeks.org/number-theory/?ref=outind) Number System (https://www.geeksforgeeks.org/algebra/?ref=outind) Algebra (https://www.geeksforgeeks.org/linear-algebra/?ref=outind) Linear Algebra (https://www.geeksforgeeks.org/math-trigonometry/?ref=outind) Trigonometry (https://www.geeksforgeeks.org/set-theory/?ref=outind) Set Theory (https://www.geeksforgeeks.org/statistics/?ref=outind) Statistics (https://www.geeksforgeeks.org/probability-in-maths/?ref=outind) Probability (https://www.geeksforgeeks.org/geometry/?ref=outind) Geometry (https://www.geeksforgeeks.org/mensuration/?ref=outind) Mensuration (https://www.geeksforgeeks.org/logarithms/?ref=outind) Logarithms (https://www.geeksforgeeks.org/math-calculus/?ref=outind) Calculus DSA Data Structures (https://www.geeksforgeeks.org/complete-guide-to-arrays-data-structure/?ref=outind) Arrays (https://www.geeksforgeeks.org/introduction-to-matrix-or-grid-data-structure-and-algorithms-tutorial/?ref=outind) Matrix (https://www.geeksforgeeks.org/complete-guide-to-string-data-structure/?ref=outind) Strings Linked List (https://www.geeksforgeeks.org/singly-linked-list-definition-meaning-dsa/?ref=outind) Singly Linked List (https://www.geeksforgeeks.org/introduction-and-insertion-in-a-doubly-linked-list/?=ref=outind) Doubly Linked List (https://www.geeksforgeeks.org/circular-linked-list/?ref=outind) Circular Linked List (https://www.geeksforgeeks.org/insertion-in-doubly-circular-linked-list/?ref=outind) Doubly Circular Linked List (https://www.geeksforgeeks.org/introduction-to-linked-list-data-structure-and-algorithm-tutorial/?ref=outind) Linked List Tutorial (https://www.geeksforgeeks.org/introduction-to-stack-data-structure-and-algorithm-tutorials/?ref=outind) Stack (https://www.geeksforgeeks.org/introduction-to-queue-data-structure-and-algorithm-tutorials/?ref=outind) Queue Tree (https://www.geeksforgeeks.org/generic-treesn-array-trees/?ref=outind) Generic Tree (https://www.geeksforgeeks.org/introduction-to-binary-tree-data-structure-and-algorithm-tutorials/?ref=outind) Binary Tree (https://www.geeksforgeeks.org/introduction-to-binary-search-tree-data-structure-and-algorithm-tutorials/?ref=outind) Binary Search Tree (https://www.geeksforgeeks.org/introduction-to-avl-tree/?ref=outind) AVL Tree (https://www.geeksforgeeks.org/introduction-of-b-tree-2/?ref=outind) B Tree (https://www.geeksforgeeks.org/introduction-of-b-tree/?ref=outind) B+ Tree (https://www.geeksforgeeks.org/introduction-to-red-black-tree/?ref=outind) Red Black Tree (https://www.geeksforgeeks.org/introduction-to-tree-data-structure-and-algorithm-tutorials/?ref=outind) Tree Data Structure Tutorial (https://www.geeksforgeeks.org/introduction-to-heap-data-structure-and-algorithm-tutorials/?ref=outind) Heap (https://www.geeksforgeeks.org/introduction-to-hashing-data-structure-and-algorithm-tutorials/?ref=outind) Hashing (https://www.geeksforgeeks.org/introduction-to-graphs-data-structure-and-algorithm-tutorials/?ref=outind) Graph (https://www.geeksforgeeks.org/introduction-to-set-data-structure-and-algorithm-tutorials/?ref=outind) Set Data Structure (https://www.geeksforgeeks.org/introduction-to-map-data-structure-and-algorithm-tutorials/?ref=outind) Map Data Structure (https://www.geeksforgeeks.org/advanced-data-structures/?ref=outind) Advanced Data Structure (https://www.geeksforgeeks.org/introduction-to-data-structures/?ref=outind) Data Structures Tutorial Algorithms Analysis of Algorithms (https://www.geeksforgeeks.org/design-and-analysis-of-algorithms/?ref=outind) Design and Analysis of Algorithms (https://www.geeksforgeeks.org/asymptotic-notation-and-analysis-based-on-input-size-of-algorithms/?ref=outind) Asymptotic Analysis (https://www.geeksforgeeks.org/types-of-asymptotic-notations-in-complexity-analysis-of-algorithms/?ref=outind) Asymptotic Notations (https://www.geeksforgeeks.org/worst-average-and-best-case-analysis-of-algorithms/?ref=outind) Worst, Average and Best Cases Searching Algorithms (https://www.geeksforgeeks.org/linear-search/?ref=outind) Linear Search (https://www.geeksforgeeks.org/binary-search/?ref=outind) Binary Search (https://www.geeksforgeeks.org/searching-algorithms/?ref=outind) Searching Algorithms Tutorial Sorting Algorithms (https://www.geeksforgeeks.org/selection-sort/?ref=outind) Selection Sort (https://www.geeksforgeeks.org/bubble-sort/?ref=outind) Bubble Sort (https://www.geeksforgeeks.org/insertion-sort/?ref=outind) Insertion Sort (https://www.geeksforgeeks.org/merge-sort/?ref=outind) Merge Sort (https://www.geeksforgeeks.org/quick-sort/?ref=outind) Quick Sort (https://www.geeksforgeeks.org/heap-sort/?ref=outind) Heap Sort (https://www.geeksforgeeks.org/counting-sort/?ref=outind) Counting Sort (https://www.geeksforgeeks.org/radix-sort/?ref=outind) Radix Sort (https://www.geeksforgeeks.org/bucket-sort-2/?ref=outind) Bucket Sort (https://www.geeksforgeeks.org/introduction-to-sorting-algorithm/?ref=outind) Sorting Algorithms Tutorial (https://www.geeksforgeeks.org/introduction-to-greedy-algorithm-data-structures-and-algorithm-tutorials/?ref=outind) Greedy Algorithms (https://www.geeksforgeeks.org/introduction-to-dynamic-programming-data-structures-and-algorithm-tutorials/?ref=outind) Dynamic Programming (https://www.geeksforgeeks.org/introduction-to-graphs-data-structure-and-algorithm-tutorials/?ref=outind) Graph Algorithms (https://www.geeksforgeeks.org/introduction-to-pattern-searching-data-structure-and-algorithm-tutorial/?ref=outind) Pattern Searching (https://www.geeksforgeeks.org/introduction-to-recursion-data-structure-and-algorithm-tutorials/?ref=outind) Recursion (https://www.geeksforgeeks.org/introduction-to-backtracking-data-structure-and-algorithm-tutorials/?ref=outind) Backtracking (https://www.geeksforgeeks.org/introduction-to-divide-and-conquer-algorithm-data-structure-and-algorithm-tutorials/?ref=outind) Divide and Conquer (https://www.geeksforgeeks.org/mathematical-algorithms/?ref=outind) Mathematical Algorithms (https://www.geeksforgeeks.org/geometric-algorithms/?ref=outind) Geometric Algorithms (https://www.geeksforgeeks.org/introduction-to-bitwise-algorithms-data-structures-and-algorithms-tutorial/?ref=outind) Bitwise Algorithms (https://www.geeksforgeeks.org/randomized-algorithms/?ref=outind) Randomized Algorithms (https://www.geeksforgeeks.org/introduction-to-branch-and-bound-data-structures-and-algorithms-tutorial/?ref=outind) Branch and Bound (https://www.geeksforgeeks.org/introduction-to-algorithms/?ref=outind) Algorithms Tutorial (https://www.geeksforgeeks.org/learn-data-structures-and-algorithms-dsa-tutorial/?ref=outind) DSA Tutorial Practice (https://www.geeksforgeeks.org/explore?page=1&sortBy=submissions&itm_source=geeksforgeeks&itm_medium=main_header_outIndia&itm_campaign=DSA_Header) All DSA Problems (https://www.geeksforgeeks.org/problem-of-the-day?itm_source=geeksforgeeksitm_source=geeksforgeeks&itm_medium=main_header_outIndia&itm_campaign=DSA_Header) Problem of the Day Company Wise Coding Practice (https://www.geeksforgeeks.org/explore?page=1&company=Amazon&sortBy=submissions&itm_source=geeksforgeeks&itm_medium=main_header_outIndia&itm_campaign=DSA_Header) Amazon (https://www.geeksforgeeks.org/explore?page=1&company=Microsoft&sortBy=submissions&itm_source=geeksforgeeks&itm_medium=main_header_outIndia&itm_campaign=DSA_Header) Microsoft (https://www.geeksforgeeks.org/explore?page=1&company=Flipkart&sortBy=submissions&itm_source=geeksforgeeks&itm_medium=main_header_outIndia&itm_campaign=DSA_Header) Flipkart (https://www.geeksforgeeks.org/explore?page=1&sortBy=submissions&itm_source=geeksforgeeks&itm_medium=main_header_outIndia&itm_campaign=DSA_Header) Explore All (https://www.geeksforgeeks.org/explore?page=1&curated[]=1&sortBy=submissions&curated_names[]=SDE Sheet?itm_source=geeksforgeeks&itm_medium=main_header_outIndia&itm_campaign=DSA_Header) GfG SDE Sheet Practice Problems Difficulty Wise (https://www.geeksforgeeks.org/explore?page=1&difficulty=School&itm_source=geeksforgeeks&itm_medium=main_header_outIndia&itm_campaign=DSA_Header) School (https://www.geeksforgeeks.org/explore?page=1&difficulty=Basic&itm_source=geeksforgeeks&itm_medium=main_header_outIndia&itm_campaign=DSA_Header) Basic (https://www.geeksforgeeks.org/explore?page=1&difficulty=Easy&itm_source=geeksforgeeks&itm_medium=main_header_outIndia&itm_campaign=DSA_Header) Easy (https://www.geeksforgeeks.org/explore?page=1&difficulty=Medium&itm_source=geeksforgeeks&itm_medium=main_header_outIndia&itm_campaign=DSA_Header) Medium (https://www.geeksforgeeks.org/explore?page=1&difficulty=Hard&itm_source=geeksforgeeks&itm_medium=main_header_outIndia&itm_campaign=DSA_Header) Hard Language Wise Coding Practice (https://www.geeksforgeeks.org/explore?page=1&category=CPP&itm_source=geeksforgeeks&itm_medium=main_header_outIndia&itm_campaign=DSA_Header) CPP (https://www.geeksforgeeks.org/explore?page=1&category=Java&itm_source=geeksforgeeks&itm_medium=main_header_outIndia&itm_campaign=DSA_Header) Java (https://www.geeksforgeeks.org/explore?category=python&itm_source=geeksforgeeks&itm_medium=main_header_outIndia&itm_campaign=DSA_Header) Python Curated DSA Lists (https://www.geeksforgeeks.org/explore?page=1&sprint=ca8ae412173dbd8346c26a0295d098fd&sortBy=submissions&sprint_name=Beginner's DSA Sheet&itm_source=geeksforgeeks&itm_medium=main_header_outIndia&itm_campaign=DSA_Header) Beginner's DSA Sheet (https://www.geeksforgeeks.org/explore?page=1&sprint=50746f92a895c22a50504ac0c1fb9c84&sortBy=submissions&sprint_name=Top 50 Array Problems&itm_source=geeksforgeeks&itm_medium=main_header_outIndia&itm_campaign=DSA_Header) Top 50 Array Problems (https://www.geeksforgeeks.org/explore?page=1&sprint=57184072610b884e5df3584cc534115d&sortBy=submissions&sprint_name=Top 50 String Problems&itm_source=geeksforgeeks&itm_medium=main_header_outIndia&itm_campaign=DSA_Header) Top 50 String Problems (https://www.geeksforgeeks.org/explore?page=1&sprint=93d672753b74440c7427214c8ebf866d&sortBy=submissions&sprint_name=Top 50 DP Problems&itm_source=geeksforgeeks&itm_medium=main_header_outIndia&itm_campaign=DSA_Header) Top 50 DP Problems (https://www.geeksforgeeks.org/explore?page=1&sprint=405e9db0f353691ad3b2d546b19145e9&sortBy=submissions&sprint_name=Top 50 Graph Problems&itm_source=geeksforgeeks&itm_medium=main_header_outIndia&itm_campaign=DSA_Header) Top 50 Graph Problems (https://www.geeksforgeeks.org/explore?page=1&sprint=5f24de84b65bf7c4f4399c8111e26b81&sortBy=submissions&sprint_name=Top 50 Tree Problems&itm_source=geeksforgeeks&itm_medium=main_header_outIndia&itm_campaign=DSA_Header) Top 50 Tree Problems (https://www.geeksforgeeks.org/competitive-programming-a-complete-guide/?ref=outind) Competitive Programming Company Wise SDE Sheets (https://www.geeksforgeeks.org/facebookmeta-sde-sheet-interview-questions-and-answers/?ref=outind) Facebook SDE Sheet (https://www.geeksforgeeks.org/amazon-sde-sheet-interview-questions-and-answers/?ref=outind) Amazon SDE Sheet (https://www.geeksforgeeks.org/apple-sde-sheet-interview-questions-and-answers/?ref=outind) Apple SDE Sheet (https://www.geeksforgeeks.org/netflix-sde-sheet-interview-questions-and-answers/?ref=outind) Netflix SDE Sheet (https://www.geeksforgeeks.org/google-sde-sheet-interview-questions-and-answers/?ref=outind) Google SDE Sheet DSA Cheat Sheets (https://www.geeksforgeeks.org/sde-sheet-a-complete-guide-for-sde-preparation/?ref=outind) SDE Sheet (https://www.geeksforgeeks.org/most-asked-dsa-interview-problems-for-beginners/?ref=outind) DSA Sheet for Beginners (https://www.geeksforgeeks.org/must-do-coding-questions-for-companies-like-amazon-microsoft-adobe/?ref=outind) FAANG Coding Sheet (https://www.geeksforgeeks.org/must-do-coding-questions-for-product-based-companies/?ref=outind) Product-Based Coding Sheet (https://www.geeksforgeeks.org/must-coding-questions-company-wise/?ref=outind) Company-Wise Preparation Sheet (https://www.geeksforgeeks.org/top-100-data-structure-and-algorithms-dsa-interview-questions-topic-wise/?ref=outind) Top Interview Questions Puzzles (https://www.geeksforgeeks.org/puzzles/?ref=outind) All Puzzles (https://www.geeksforgeeks.org/top-100-puzzles-asked-in-interviews/?ref=outind) Top 100 Puzzles Asked In Interviews (https://www.geeksforgeeks.org/top-20-puzzles-commonly-asked-during-sde-interviews/?ref=outind) Top 20 Puzzles Commonly Asked During SDE Interviews Data Science (https://www.geeksforgeeks.org/python-programming-language/?ref=outind) Python Tutorial (https://www.geeksforgeeks.org/r-tutorial/?ref=outind) R Tutorial (https://www.geeksforgeeks.org/machine-learning/?ref=outind) Machine Learning (https://www.geeksforgeeks.org/data-science-with-python-tutorial/?ref=outind) Data Science using Python (https://www.geeksforgeeks.org/r-programming-for-data-science/?ref=outind) Data Science using R Data Science Packages (https://www.geeksforgeeks.org/pandas-tutorial/?ref=outind) Pandas Tutorial (https://www.geeksforgeeks.org/numpy-tutorial/?ref=outind) NumPy Tutorial Data Visualization (https://www.geeksforgeeks.org/python-data-visualization-tutorial/?ref=outind) Python Data Visualization Tutorial (https://www.geeksforgeeks.org/data-visualization-in-r/?ref=outind) Data Visualization with R Data Analysis (https://www.geeksforgeeks.org/data-analysis-with-python/?ref=outind) Data Analysis with Python (https://www.geeksforgeeks.org/data-analysis-using-r/?ref=outind) Data Analysis with R (https://www.geeksforgeeks.org/deep-learning-tutorial/?ref=outind) Deep Learning (https://www.geeksforgeeks.org/natural-language-processing-nlp-tutorial/?ref=outind) NLP Tutorial Web Tech (https://www.geeksforgeeks.org/html-tutorial/?ref=outind) HTML Tutorial (https://www.geeksforgeeks.org/css-tutorial/?ref=outind) CSS Tutorial (https://www.geeksforgeeks.org/javascript/?ref=outind) JavaScript Tutorial (https://www.geeksforgeeks.org/php-tutorial/?ref=outind) PHP Tutorial (https://www.geeksforgeeks.org/react-tutorial/?ref=outind) ReactJS Tutorial (https://www.geeksforgeeks.org/nodejs/?ref=outind) NodeJS Tutorial (https://www.geeksforgeeks.org/introduction-to-angularjs/?ref=outind) AngularJS Tutorial (https://www.geeksforgeeks.org/bootstrap/?ref=outind) Bootstrap Tutorial (https://www.geeksforgeeks.org/typescript/?ref=outind) Typescript Web Development Using Python Django (https://www.geeksforgeeks.org/django-tutorial/?ref=outind) Django Tutorial (https://www.geeksforgeeks.org/top-django-projects-for-beginners/?ref=outind) Django Projects (https://www.geeksforgeeks.org/django-interview-questions/?ref=outind) Django Interview Questions Flask (https://www.geeksforgeeks.org/flask-tutorial/?ref=outind) Flask Tutorial (https://www.geeksforgeeks.org/flask-projects/?ref=outind) Flask Projects (https://www.geeksforgeeks.org/flask-interview-questions-and-answers/?ref=outind) Flask Interview Questions (https://www.geeksforgeeks.org/postman-tutorial/?ref=outind) Postman (https://www.geeksforgeeks.org/introduction-to-github/?ref=outind) Github (https://www.geeksforgeeks.org/wordpress-tutorial/?ref=outind) Wordpress Tutorial (https://www.geeksforgeeks.org/web-design/?ref=outind) Web Design Cheat Sheets (https://www.geeksforgeeks.org/html-cheat-sheet-a-basic-guide-to-html/?ref=outind) HTML Cheat Sheet (https://www.geeksforgeeks.org/css-cheat-sheet-a-basic-guide-to-css/?ref=outind) CSS Cheat Sheet (https://www.geeksforgeeks.org/javascript-cheat-sheet-a-basic-guide-to-javascript/?ref=outind) JavaScript Cheat Sheet (https://www.geeksforgeeks.org/react-cheat-sheet/?ref=outind) React Cheat Sheet (https://www.geeksforgeeks.org/angular-cheat-sheet-a-basic-guide-to-angular/?ref=outind) Angular Cheat Sheet (https://www.geeksforgeeks.org/jquery-cheat-sheet-a-basic-guide-to-jquery/?ref=outind) jQuery Cheat Sheet (https://www.geeksforgeeks.org/bootstrap-cheatsheet-a-basic-guide-to-bootstrap/?ref=outind) Bootstrap Cheat Sheet (https://www.geeksforgeeks.org/web-development/?ref=outind) Learn Complete Web Development Courses (https://www.geeksforgeeks.org/courses/coding-for-everyone?itm_source=geeksforgeeks&itm_medium=main_header&itm_campaign=courses) Coding for Everyone (https://www.geeksforgeeks.org/courses/dsa-to-development-coding-guide?itm_source=geeksforgeeks&itm_medium=main_header&itm_campaign=courses) DSA to Development (https://www.geeksforgeeks.org/courses/data-science-live?itm_source=geeksforgeeks&itm_medium=main_header&itm_campaign=courses) Machine Learning & Data Science (https://www.geeksforgeeks.org/courses/mastering-generative-ai-and-chat-gpt?itm_source=geeksforgeeks&itm_medium=main_header&itm_campaign=courses) Generative AI & ChatGPT (https://www.geeksforgeeks.org/courses/search?query=AWS&itm_source=geeksforgeeks&itm_medium=main_header&itm_campaign=courses) Become AWS Certified DSA Courses (https://www.geeksforgeeks.org/courses/dsa-self-paced?itm_source=geeksforgeeks&itm_medium=main_header&itm_campaign=courses) Data Structure & Algorithm(C++/JAVA) (https://www.geeksforgeeks.org/courses/Data-Structures-With-Python?itm_source=geeksforgeeks&itm_medium=main_header&itm_campaign=courses) Data Structure & Algorithm(Python) (https://www.geeksforgeeks.org/courses/data-structures-and-algorithms-in-javascript?itm_source=geeksforgeeks&itm_medium=main_header&itm_campaign=courses) Data Structure & Algorithm(JavaScript) Programming Languages (https://www.geeksforgeeks.org/courses/cpp-programming-basic-to-advanced?itm_source=geeksforgeeks&itm_medium=main_header&itm_campaign=courses) CPP (https://www.geeksforgeeks.org/courses/Java-Programming-basic-to-advanced?itm_source=geeksforgeeks&itm_medium=main_header&itm_campaign=courses) Java (https://www.geeksforgeeks.org/courses/Python-Foundation?itm_source=geeksforgeeks&itm_medium=main_header&itm_campaign=courses) Python (https://www.geeksforgeeks.org/courses/javascript?itm_source=geeksforgeeks&itm_medium=main_header&itm_campaign=courses) JavaScript (https://www.geeksforgeeks.org/courses/c-Programming-basic-to-advanced?itm_source=geeksforgeeks&itm_medium=main_header&itm_campaign=courses) C (Search...) Switch to Dark Mode (https://www.geeksforgeeks.org/introduction-linux-shell-shell-scripting/?ref=shm) Shell Scripting (https://www.geeksforgeeks.org/introduction-to-kali-linux/?ref=shm) Kali Linux (https://www.geeksforgeeks.org/how-to-install-ubuntu-on-virtualbox/?ref=shm) Ubuntu (https://www.geeksforgeeks.org/tag/red-hat/?ref=shm) Red Hat (https://www.geeksforgeeks.org/getting-started-with-centos/?ref=shm) CentOS (https://www.geeksforgeeks.org/introduction-to-docker/?ref=shm) Docker in Linux (https://www.geeksforgeeks.org/introduction-to-kubernetes-k8s/?ref=shm) Kubernetes in Linux (https://www.geeksforgeeks.org/linux-interview-questions/?ref=shm) Linux interview question (https://www.geeksforgeeks.org/python-programming-language/?ref=shm) Python (https://www.geeksforgeeks.org/r-tutorial/?ref=shm) R (https://www.geeksforgeeks.org/java/?ref=shm) Java (https://www.geeksforgeeks.org/c-programming-language/?ref=shm) C (https://www.geeksforgeeks.org/c-plus-plus/?ref=shm) C++ (https://www.geeksforgeeks.org/javascript/?ref=shm) JavaScript (https://www.geeksforgeeks.org/learn-data-structures-and-algorithms-dsa-tutorial/?ref=shm) DSA (Scroll to Top) ▲ (https://geeksforgeeksapp.page.link/?link=https://www.geeksforgeeks.org/cp-command-linux-examples/?type%3Darticle%26id%3D165246&apn=free.programming.programming&isi=1641848816&ibi=org.geeksforgeeks.GeeksforGeeksDev&efr=1) Open In App How to Copy Files and Directories in Linux | cp Command Last Updated : 12 Jul, 2024 Comments Improve Summarize Suggest changes Like Article Like Save Share Report (https://news.google.com/publications/CAAqBwgKMLTrzwsw44bnAw?hl=en-IN&gl=IN&ceid=IN%3Aen) (News) Follow In the world of Linux computers, a common and important job is copying files. The key tool for this task is the “cp” command. In this simple guide, we’ll explore how to copy a file in Linux, looking at the basic steps, different choices you can make, and giving clear examples. We’ll also take a peek behind the scenes to understand how the “cp” command works. Let’s get started on this easy journey to become familiar with the ins and outs of copying files in Linux! Table of Content Syntax of cp Command How to Copy files in Linux with the cp Command 1. Copying Between Two Files in Linux 2. Copy files to a Directory in Linux 3. How to Copy Directories in Linux Options Available in `cp` Command in Linux Syntax of cp Command The basic syntax for copying a file using the cp command is as follows: cp source_file destination This command creates a copy of the ` source_file` at the specified ` destination` . If the destination is a (https://www.geeksforgeeks.org/linux-directory-structure/) directory , the file is copied into that directory. How to Copy files in Linux with the cp Command The ` cp` command is a versatile tool used in Unix-like operating systems for copying files and directories. It offers three principal modes of operation, each serving different purposes. 1. Copying Between Two Files in Linux If the ` cp` command contains two file names, it copies the contents of the first file to the second file. If the second file doesn’t exist, it is created, and the content is copied into it. However, if the second file already exists, it is overwritten without warning. cp Src_file Dest_file (1) If ` Dest_file` does not exist, it is created. (2) If ` Dest_file` already exists, it is overwritten without any warning. Example 1: (1) Initially, there is only one file (` a.txt` ) in the directory. (2) The ` cp` command is used to copy the contents of ` a.txt` to ` b.txt` . (3) After the command execution, both ` a.txt` and the newly created ` b.txt` coexist in the directory. cp a.txt b.txt (Copy a file in Linux) copy a file in Linux We used ` ls ` command to display all the file in the current directory. Example 2: (1) Initially, there are two files (` a.txt` and ` c.txt` ) in the directory. (2) The ` cp` command is used to copy the contents of ` a.txt` to ` c.txt` . (3) After the command execution, the content of ` c.txt` is overwritten with the content of ` a.txt`. cp a.txt c.txt (Copy a file in Linux) Copy a file in Linux We used ` ls ` command to display all the file in the current directory and used ` cat `command to display the content in the text file. 2. Copy files to a Directory in Linux When the cp command has one or more source file arguments and is followed by a destination directory argument, it copies each source file to the destination directory with the same name. If the destination directory does not exist, it is created. If it already exists, the files are overwritten without warning. cp Src_file1 Src_file2 Src_file3 Dest_directory Example: Suppose we have to copy three files name “ a.txt “, “ b.txt ” and “ c.txt ” to a directory name “ new ” cp a.txt b.txt c.txt new/ (Copy multiple files to another directory) Copy multiple files to another directory We used ` ls ` command to display all the file in the “new” directory to confirm the successful copy of file in that directory. 3. How to Copy Directories in Linux In this mode, if the cp command contains two directory names, it copies all files from the source directory to the destination directory. The ` -R` option is typically used to indicate recursive copying for directories. cp -R Src_directory Dest_directory (copying files between two directories) copying files between two directories The behavior depends on whether ` Dest_directory` exists or not. If it doesn’t exist, ` cp` creates it and copies the content of ` Src_directory` recursively. If ` Dest_directory` exists, the copy of ` Src_directory` becomes a sub-directory under ` Dest_directory` Options Available in cp Command in Linux There are many options of cp command, here we will discuss some of the useful options: Option Detail -i Interactive copying with a warning before overwriting the destination file. -b Creates a backup of the destination file in the same folder with a different name and format. -f Forces copying, even if the user lacks writing permission; deletes destination file if necessary. -r or -R Copies directory structure recursively. -p Preserves file characteristics (modification time, access time, ownership, permission-bits). `*` Uses the * wildcard to represent all files and directories matching a pattern. 1. Copy a File in Linux Using `-i` Option -i(interactive): i stands for Interactive copying. With this option the system first warns the user before overwriting the destination file. cp prompts for a response, if you press y then it overwrites the file and with any other option leaves it uncopied. Basic Syntax: cp -i [Source_file] [Destination_file] Example: cp -i a.txt b.txt (Copy a File in Linux Using `-i`) Copy a File in Linux Using `-i` Here, (1) `ls` command shows existing files: ` a.txt` and ` b.txt` . (2) `cat a.txt` displays the content of ` a.txt` . (3) `cat b.txt` displays the content of ` b.txt` . (4) `cp -i a.txt b.txt` initiates an interactive copy. (5) System prompts to confirm overwrite of` b.txt` . (6) User responds with ‘y’ to confirm. (7) `cat b.txt` shows the updated content, which now matches ` a.txt` . 2. Copy a File in Linux Using `-f` Option -f(force): If the system is unable to open destination file for writing operation because the user doesn’t have writing permission for this file then by using -f option with cp command, destination file is deleted first and then copying of content is done from source to destination file. Basic Syntax: cp -f [Source_file] [Destination_file] Example: cp -f a.txt b.txt (Copy a File in Linux Using `-f`) Copy a File in Linux Using `-f` Here, (1) `ls` command shows existing files: ` a.txt` and ` b.txt` . (2) `cat a.txt` displays the content of ` a.txt` . (3) `cat b.txt` displays the content of ` b.txt` . (4) `cp -f a.txt b.txt` initiates a forceful copy. (5) Destination file (b.txt) is overwritten without prompting. (6) `cat b.txt` shows the updated content, which now matches ` a.txt` . 3. Copy a File in Linux Using `-r` or `-R` Option Copying directory structure recursively. With this option cp command shows its recursive behavior by copying the entire directory structure recursively. Basic Syntax: cp -r [Directory_name1] [Directory_name2] Example: cp -r geeksforgeeks gfg 4. Copy a File in Linux Using `-p` Option -p(preserve): With -p option cp preserves the following characteristics of each source file in the corresponding destination file: the time of the last data modification and the time of the last access, the ownership (only if it has permissions to do this), and the file permission-bits. Note: For the preservation of characteristics, you must be the root user of the system, otherwise characteristics change. Basic Syntax: cp -p [Source_file] [Destination_file] Example: cp -p a.txt c.txt 5. Copy a File in Linux Using `*` Option Copying using * wildcard: The star wildcard represents anything i.e., all files and directories. Suppose we have many texts documents in a directory and want to copy it to another directory, it takes lots of time if we copy files 1 by 1 or command becomes too long if specify all these file names as the argument, but by using * wildcard it becomes simple. Basic Syntax: cp *.txt [Destination Directory or file] Example: cp *.txt Folder1 (Copy a File in Linux Using `*`) Copy a File in Linux Using `*` Conclusion The `cp` command is an essential tool which is used for copying files or groups of files and directories in Unix-Like operating systems. If we talk about its syntax it takes at least two filenames in as an argument (source and destination). As mentioned, the command has three principles: copying two file names, copying one or more arguments, and copying two directory names. Then we also mention the multiple options available while using `cp` command: `-i` , `-b` , `-f“ , `-r` , `-p` . To work with easy in Unix shell for file management one should know the proper working of `cp` command. How to Copy Files and Directories in Linux | cp Command – FAQs How Do You Copy Files and Directories in Linux? The cp command is used in Linux to copy files and directories from one location to another. Below are the steps and options commonly used with this command: Copying Files To copy a single file from one location to another, you can use: cp source_file_path destination_file_path For example: cp /home/user/file1.txt /home/user/backup/file1.txt This command copies file1.txt from the user directory to a backup directory. Copying Directories To copy a directory, including all its contents (files and subdirectories), you use the -r (recursive) option: cp -r source_directory_path destination_directory_path For example: cp -r /home/user/documents /home/user/backup/documents This copies the entire documents directory and its contents into the backup directory. What Command is Used to Copy Files and Directories? The cp command is used to copy both files and directories, often with various options to tailor its functionality: (1) -r : Recursive, for copying directories. (2) -a : Archive, similar to -r and preserves the structure and attributes of files but is generally used for backing up. (3) -v : Verbose, shows what cp is doing (useful for tracking what gets copied). What is the cp -R Command in Linux? The cp -R command is an alternative to cp -r , and it functions the same way by copying directories recursively. Some systems differentiate slightly in how they handle symbolic links and special files between -R and -r , but for most users and typical usage, they behave the same. What is the cp Command in Terminal? In the terminal, the cp command is used to copy files and directories: (1) Syntax : cp [options] source destination (2) Options : Modify behavior (like -r for recursive copy). How Do I Copy a Directory? To copy a directory in Linux, use the cp command with the -r option. Here’s how you might copy a directory from one place to another: cp -r /path/to/original_directory /path/to/copy_directory This command ensures that the entire directory, including all nested files and subdirectories, is copied to the new location. (https://www.geeksforgeeks.org/user/AKASH GUPTA 6/contributions/?itm_source=geeksforgeeks&itm_medium=article_author&itm_campaign=auth_user) A (https://www.geeksforgeeks.org/user/AKASH GUPTA 6/contributions/?itm_source=geeksforgeeks&itm_medium=article_author&itm_campaign=auth_user) AKASH GUPTA 6 (AKASH GUPTA 6) Follow (https://news.google.com/publications/CAAqBwgKMLTrzwsw44bnAw?hl=en-IN&gl=IN&ceid=IN%3Aen) (News) Improve (https://www.geeksforgeeks.org/rm-command-linux-examples/?ref=previous_article) Previous Article (https://www.geeksforgeeks.org/rm-command-linux-examples/?ref=previous_article) rm command in Linux with examples (https://www.geeksforgeeks.org/mv-command-linux-examples/?ref=next_article) Next Article (https://www.geeksforgeeks.org/mv-command-linux-examples/?ref=next_article) How to Move File in Linux | mv Command Please Login to comment... Similar Reads (https://www.geeksforgeeks.org/ways-to-permanently-and-securely-delete-files-and-directories-in-linux/?ref=oin_asr1) Ways to Permanently and Securely Delete ‘Files and Directories’ in Linux Linux is an open-source operating system that is loved by tech geeks. It is a versatile operating system that can be used on thousands of different hardware configurations. The most interesting feature of Linux is its command line interface. This feature allows you to perform multiple operations within the operating system with just a few commands. 8 min read (https://www.geeksforgeeks.org/how-to-copy-a-file-to-multiple-directories-in-linux/?ref=oin_asr2) How to Copy a File to Multiple Directories in Linux In this article, we will discuss how to copy a file to multiple directories in Linux. xargs, find, tee, shell loop, and parallel are the commands that can help you to copy a File to Multiple Directories. Suppose we have a file with the name "xyz.txt" and we want to copy it into 3 directories with the name dir1, dir2, and dir3 then we use the follow 5 min read (https://www.geeksforgeeks.org/urlbuster-linux-tool-to-find-web-hidden-files-or-directories-finder/?ref=oin_asr3) UrlBuster - Linux tool to find Web Hidden Files or Directories Finder Hidden files and directories on the target server can contain some sensitive and crucial information about the target. This revealed information can also compromise the security of the application. To find these directories and files, we need an automated approach as manual testing would make a headache to the tester. UrlBuster is an automated tool 5 min read (https://www.geeksforgeeks.org/scp-command-in-linux-with-examples/?ref=oin_asr4) How to Securely Copy Files in Linux | scp Command scp (secure copy) command in Linux system is used to copy file(s) between servers in a secure way. The SCP command or secure copy allows the secure transferring of files between the local host and the remote host or between two remote hosts. It uses the same authentication and security as it is used in the Secure Shell (SSH) protocol. SCP is known 8 min read (https://www.geeksforgeeks.org/how-to-exclude-files-and-directories-when-creating-a-tar-gz-file/?ref=oin_asr5) How to Exclude Files and Directories When Creating a tar.gz File GNU tar is a type of archiving program that is designed to store multiple files into a single file and to manipulate such archives. The archive can be either a regular file or a device that can be located either locally or on a remote machine. How to Exclude Files and Directories When Creating a tar.gz File Step 1: First we need to create multiple 2 min read (https://www.geeksforgeeks.org/systemd-services-monitoring-files-and-directories/?ref=oin_asr6) Systemd Services: Monitoring Files and Directories It is very important to keep our services running smoothly in Linux system administration and management. Systemd is a versatile tool used in Linux that helps us manage our services and automate our tasks. It can also act as a watch guard to monitor files and directories using "path units". In this article, we will learn how to use Systemd to monit 5 min read (https://www.geeksforgeeks.org/find-and-replace-with-sed-in-directory-and-sub-directories-in-linux/?ref=oin_asr7) Find and Replace with sed in Directory and Sub Directories in Linux sed stands for stream editor. It is a basic utility command in Linux that has basic functionality like inserting, deleting, finding, replacing, and searching text strings in a file. But sed is most commonly used for its substitution function i.e find and replace. Syntaxsed OPTIONS... [script] [input_file] e.g. sed "s/abc/ABC/g" abc.txt Consider the 4 min read (https://www.geeksforgeeks.org/how-to-sync-file-and-directories-to-cloud-storage-in-linux-using-rclone-tool/?ref=oin_asr8) How to Sync File and Directories to Cloud Storage in Linux Using Rclone Tool? Rclone is a command-line tool for synchronizing files and directories between Google Drive, Amazon S3, Openstack Swift / Rackspace cloud files / Memset Memstore, Dropbox, Google Cloud Storage, and the local filesystem. It is a single binary file that contains a Go program. Rclone is an MIT-licensed Free and Open Source Software that can be found in 3 min read (https://www.geeksforgeeks.org/how-to-recursively-grep-all-directories-and-subdirectories-in-linux/?ref=oin_asr9) How to Recursively Grep all Directories and Subdirectories in Linux In this article, we will demonstrate how to grep recursively through all directories and subdirectories. But before I do that, let me define what the term "grep" means. Basically, grep means searching or fetching. The grep is one of the basic utility commands of Linux systems. When one needs to determine whether a specific string is present in a te 3 min read (https://www.geeksforgeeks.org/how-to-transparently-overlaid-two-directories-using-unionfs-in-linux/?ref=oin_asr10) How to Transparently Overlaid Two Directories Using UnionFS in Linux? To transparently overlay two directories one on top of the other using UnionFS following steps must be followed: Step 1: Enter into the superuser mode and install the unionfs-fuse package. $ apt install unionfs-fuse Step 2: Now create a dir1 directory and then create two files f1 and f2 inside that directory. $ mkdir /root/dir1 $ touch /root/dir1/f 1 min read (https://www.geeksforgeeks.org/linux-shell-script-to-sync-directories-interactively/?ref=oin_asr11) Linux Shell Script to Sync Directories Interactively Scripts that sync directories are scripts used to synchronize the contents of two directories. This means that the script will ensure that the two directories have duplicate files and directories and that the contents of the files are the same. There are various ways to sync directories, and the specific approach depends on the requirements of the 7 min read (https://www.geeksforgeeks.org/how-to-manage-directories-in-linux/?ref=oin_asr12) How to Manage Directories in Linux? Directories in Linux or any operating system help to organize the data and files, which is then easier to find and manage. In this article, you will learn everything you will need to manage directories in Linux. We will try to cover every topic from creating, and copying to deleting the directories and many more. We will explore various topics, inc 6 min read (https://www.geeksforgeeks.org/how-to-extract-and-copy-files-from-iso-image-in-linux/?ref=oin_asr13) How to Extract and Copy Files from ISO Image in Linux? The term ISO was derived from the ISO 9660 file system, which is commonly used by optical media. An ISO image is a full copy of everything contained on a physical optical disc, such as a CD, DVD, or Blu-ray disc, including the file system. There is no compression and they are a sector-by-sector copy of the disc. ISO images are designed to allow you 3 min read (https://www.geeksforgeeks.org/how-to-compress-and-extract-files-using-the-tar-command-on-linux/?ref=oin_asr14) How to Compress and Extract Files Using the tar Command on Linux An archive is a special file that contains any number of files inside. It can be restored via special programs, for example, tar.inside. .tar - archive files are usually not compressed..tar.gz - archive file compressed with gzip tool.tar.bz2 - archive file compressed with bzip2 tool Syntax: tar options [archive_name.tar] files_to_archive The tar co 2 min read (https://www.geeksforgeeks.org/how-to-copy-command-output-to-linux-clipboard-directly/?ref=oin_asr15) How To Copy Command Output To Linux Clipboard Directly To copy commands outputs directly to Linux Clipboard we will be using a Program called xclip. xclip is a program that allows us to clip-> copy/crop ->cut and external reference or a block to a specific area. xclip reads text from standard inputs or files and make it available to other application for passing an X section. It reads from all fi 4 min read (https://www.geeksforgeeks.org/linux-installing-locate-command-to-find-files/?ref=oin_asr16) Linux - Installing locate Command to Find Files In this article, we will see how to install locate command to find files in Linux. locate is a command-line interface tool used for finding files by name in Linux systems. This works more efficiently than other commands. It uses one or more databases by updatedb. To check whether locate utility is already installed in your system. Open up your term 2 min read (https://www.geeksforgeeks.org/lsof-command-in-linux-with-examples/?ref=oin_asr17) How to List Open Files in Linux | lsof Command In the world of Linux, understanding and managing open files is crucial for system administrators and users alike. The Linux operating system provides a powerful utility called lsof (List Open Files) that allows users to gain insights into the files currently open on their system. In this article, we will delve into the intricacies of the lsof comm 7 min read (https://www.geeksforgeeks.org/tar-command-linux-examples/?ref=oin_asr18) How to Compress Files in Linux | Tar Command File compression is a fundamental task in managing and transferring data efficiently on a Linux system. The Tar command, short for Tape Archive, is a powerful tool that allows users to create compressed and archived files. In this comprehensive guide, we will explore the various options and examples of using the Tar command to compress files on a L 11 min read (https://www.geeksforgeeks.org/diff-command-linux-examples/?ref=oin_asr19) How to Compare Files Line by Line in Linux | diff Command In the world of Linux, managing and comparing files is a common task for system administrators and developers alike. The ability to compare files line by line is crucial for identifying differences, debugging code, and ensuring the integrity of data. One powerful tool that facilitates this process is the diff command. In this article, we will explo 9 min read (https://www.geeksforgeeks.org/sort-command-linuxunix-examples/?ref=oin_asr20) How to sort lines in text files in Linux | sort Command SORT command is used to sort a file, arranging the records in a particular order. By default, the sort command sorts file assuming the contents are ASCII. Using options in the sort command can also be used to sort numerically.  SORT command sorts the contents of a text file, line by line.sort is a standard command-line program that prints the lines 7 min read (https://www.geeksforgeeks.org/ccat-colorize-cat-command-output-command-in-linux-with-examples/?ref=oin_asr21) Ccat – Colorize Cat Command Output command in Linux with Examples ccat is a command-line tool for Linux and OSX, which is similar to the cat command in Linux. But the difference between cat and ccat is that the ccat shows the content of the file with the syntax highlighted. Currently, ccat supports the following programming languages. JavaScriptJavaRubyPythonGoCJSONInstallation of Ccat First, we are going to see 2 min read (https://www.geeksforgeeks.org/history-command-in-linux-with-examples/?ref=oin_asr22) How to Display Command History in Linux | history Command The command-line interface in Linux provides powerful tools for users, and mastering command history is essential for efficient navigation and retrieval of previously executed commands. The history command is a valuable utility that allows users to view and search through their command history. In this comprehensive guide, we will explore the vario 4 min read (https://www.geeksforgeeks.org/exodus-copy-linux-binaries-from-one-linux-system/?ref=oin_asr23) Exodus - Copy Linux Binaries From One Linux System Exodus is an easy-to-implement program, that is used for bundling dependencies, and also helps to effectively copy Linux ELF binaries from one to another machine securely, and this is very handy when you don't have root access, also if there are issues in the availability of the packages in the Linux distribution, Commonly Server oriented distribut 3 min read (https://www.geeksforgeeks.org/urlbrute-tool-to-brute-forcing-website-sub-domains-and-directories/?ref=oin_asr24) URLBrute – Tool to Brute Forcing Website Sub-Domains and Directories Brute-Forcing is the technique of matching the credentials like Usernames, Passwords, OTPs for unauthenticated access to the target domain. The list of words are been tested against the target to get the exact credentials. All this process is done through automated tools. URLBrute is an automated tool developed in the Golang language which can be b 2 min read (https://www.geeksforgeeks.org/dircoverrb-passive-subdomains-and-web-directories-recon-using-bing/?ref=oin_asr25) DircoverRB - Passive subdomains and web directories recon using Bing Google search engine preferably dislikes the scrapers which are used for the information collection or for crawling. So to get the information Bing search engine is been used. DircoverRB is an automated cyber security tool developed in the Ruby language which finds the passive subdomains and also discovers the directories of the target domain. The 2 min read (https://www.geeksforgeeks.org/how-to-find-difference-between-two-directories-using-diff-and-meld-tools/?ref=oin_asr26) How to Find Difference Between Two Directories Using Diff and Meld Tools The diff is a straightforward, original Unix command-line utility that displays the differences between two computer files. It compares files line by line, is simple to use, and is preinstalled on the majority, if not all, Linux distributions. How can we determine the differences between two folders in Linux is the query. Here, we're interested in 2 min read (https://www.geeksforgeeks.org/how-to-find-hidden-web-directories-with-dirsearch/?ref=oin_asr27) How to Find Hidden Web Directories with Dirsearch Dirsearch tool is a Python language-based tool, which is command-line only. Dirsearch lights when it comes to recursive scanning, so for every directory it identifies, it will go back through and crawl the directory for some additional directories. Dirsearch tool is an advanced command-line tool designed to brute-force directories and files in web 3 min read (https://www.geeksforgeeks.org/shell-script-to-show-names-of-all-sub-directories-present-in-current-directory/?ref=oin_asr28) Shell Script To Show Names of All Sub-Directories Present in Current Directory In this given program, we are required to write a shell script to print the list of all the sub-directories present in the current directory. Currently, when we are running this program, the terminal is opened at the root directory location and hence, we are getting a list of sub-directories present at the root level. Moreover, this script comes in 2 min read (https://www.geeksforgeeks.org/dirhunt-find-web-directories-without-bruteforce/?ref=oin_asr29) Dirhunt - Find Web Directories Without Bruteforce Web directories and files can contain some sensitive data like API Keys or Usernames and Passwords or sometimes SSH Keys. So to get the links to these files and directories we need to use automated tools. Dirhunt tool is an automated cyber security tool that acts as a web crawler for searching directories on a web application. It also detects the 4 2 min read (https://www.geeksforgeeks.org/copy-and-create-destination-directory-if-it-does-not-exist-in-linux/?ref=oin_asr30) Copy and Create Destination Directory if it Does Not Exist in Linux A directory is a file system location for storing and organizing files. A Linux system has many directories, and users can create their own directories. Copying and creating a directory are useful operations for Linux users. To create a new directory, use the command: mkdir new_directory. The 'm' stands for 'modify.' The name of the new directory m 6 min read Article Tags : (https://www.geeksforgeeks.org/category/linux-unix/?ref=article_category) Linux-Unix (https://www.geeksforgeeks.org/tag/linux-command/?ref=article_tag) linux-command (https://www.geeksforgeeks.org/tag/linux-file-commands/?ref=article_tag) Linux-file-commands Like Trending in News (https://www.geeksforgeeks.org/trending/?ref=viewmore_trending) View More (https://www.geeksforgeeks.org/how-to-delete-discord-servers-step-by-step-guide/?ref=article_trending) How to Delete Discord Servers: Step by Step Guide (https://www.geeksforgeeks.org/google-increases-youtube-premium-price-in-india/?ref=article_trending) Google increases YouTube Premium price in India: Check our the latest plans (https://www.geeksforgeeks.org/california-lawmakers-pass-bill-to-limit-ai-replicas/?ref=article_trending) California Lawmakers Pass Bill to Limit AI Replicas (https://www.geeksforgeeks.org/best-10-iptv-service-providers-in-germany/?ref=article_trending) Best 10 IPTV Service Providers in Germany (https://www.geeksforgeeks.org/content-improvement-league/?ref=article_trending) Content Improvement League 2024: From Good To A Great Article Explore More (https://www.geeksforgeeks.org/wp-content/themes/iconic-one/css/articleList.min.css?ver=1.5) (https://www.geeksforgeeks.org/) (geeksforgeeks-footer-logo) Corporate & Communications Address:- A-143, 9th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305) | Registered Address:- K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305 (https://www.facebook.com/geeksforgeeks.org/) (https://www.instagram.com/geeks_for_geeks/) (https://in.linkedin.com/company/geeksforgeeks) (https://twitter.com/geeksforgeeks) (https://www.youtube.com/geeksforgeeksvideos) (https://geeksforgeeksapp.page.link/gfg-app) (GFG App on Play Store) (https://geeksforgeeksapp.page.link/gfg-app) (GFG App on App Store) Company (https://www.geeksforgeeks.org/about/?ref=outindfooter) About Us (https://www.geeksforgeeks.org/legal/?ref=outindfooter) Legal (https://www.geeksforgeeks.org/press-release/?ref=outindfooter) In Media (https://www.geeksforgeeks.org/about/contact-us/?ref=outindfooter) Contact Us (https://www.geeksforgeeks.org/advertise-with-us/?ref=outindfooter) Advertise with us (https://www.geeksforgeeks.org/gfg-corporate-solution/?ref=outindfooter) GFG Corporate Solution (https://www.geeksforgeeks.org/campus-training-program/?ref=outindfooter) Placement Training Program (https://www.geeksforgeeks.org/community/?ref=outindfooter) GeeksforGeeks Community (https://www.geeksforgeeks.org/introduction-to-programming-languages/?ref=outindfooter) Languages (https://www.geeksforgeeks.org/python-programming-language/?ref=outindfooter) Python (https://www.geeksforgeeks.org/java/?ref=outindfooter) Java (https://www.geeksforgeeks.org/c-plus-plus/?ref=outindfooter) C++ (https://www.geeksforgeeks.org/php-tutorials/?ref=outindfooter) PHP (https://www.geeksforgeeks.org/golang/?ref=outindfooter) GoLang (https://www.geeksforgeeks.org/sql-tutorial/?ref=outindfooter) SQL (https://www.geeksforgeeks.org/r-tutorial/?ref=outindfooter) R Language (https://www.geeksforgeeks.org/android-tutorial/?ref=outindfooter) Android Tutorial (https://www.geeksforgeeks.org/geeksforgeeks-online-tutorials-free/?ref=outindfooter) Tutorials Archive (https://www.geeksforgeeks.org/learn-data-structures-and-algorithms-dsa-tutorial/?ref=outindfooter) DSA (https://www.geeksforgeeks.org/data-structures/?ref=outindfooter) Data Structures (https://www.geeksforgeeks.org/fundamentals-of-algorithms/?ref=outindfooter) Algorithms (https://www.geeksforgeeks.org/complete-guide-to-dsa-for-beginners/?ref=outindfooter) DSA for Beginners (https://www.geeksforgeeks.org/basic-coding-problems-in-dsa-for-beginners/?ref=outindfooter) Basic DSA Problems (https://www.geeksforgeeks.org/complete-roadmap-to-learn-dsa-from-scratch/?ref=outindfooter) DSA Roadmap (https://www.geeksforgeeks.org/top-100-data-structure-and-algorithms-dsa-interview-questions-topic-wise/?ref=outindfooter) Top 100 DSA Interview Problems (https://www.geeksforgeeks.org/dsa-roadmap-for-beginner-to-advanced-by-sandeep-jain/?ref=outindfooter) DSA Roadmap by Sandeep Jain (https://www.geeksforgeeks.org/geeksforgeeks-master-sheet-list-of-all-cheat-sheets/?ref=outindfooter) All Cheat Sheets (https://www.geeksforgeeks.org/ai-ml-ds/?ref=outindfooter) Data Science & ML (https://www.geeksforgeeks.org/data-science-tutorial/?ref=outindfooter) Data Science With Python (https://www.geeksforgeeks.org/data-science-for-beginners/?ref=outindfooter) Data Science For Beginner (https://www.geeksforgeeks.org/machine-learning/?ref=outindfooter) Machine Learning (https://www.geeksforgeeks.org/machine-learning-mathematics/?ref=outindfooter) ML Maths (https://www.geeksforgeeks.org/python-data-visualization-tutorial/?ref=outindfooter) Data Visualisation (https://www.geeksforgeeks.org/pandas-tutorial/?ref=outindfooter) Pandas (https://www.geeksforgeeks.org/numpy-tutorial/?ref=outindfooter) NumPy (https://www.geeksforgeeks.org/natural-language-processing-nlp-tutorial/?ref=outindfooter) NLP (https://www.geeksforgeeks.org/deep-learning-tutorial/?ref=outindfooter) Deep Learning (https://www.geeksforgeeks.org/web-technology/?ref=outindfooter) Web Technologies (https://www.geeksforgeeks.org/html/?ref=outindfooter) HTML (https://www.geeksforgeeks.org/css/?ref=outindfooter) CSS (https://www.geeksforgeeks.org/javascript/?ref=outindfooter) JavaScript (https://www.geeksforgeeks.org/typescript/?ref=outindfooter) TypeScript (https://www.geeksforgeeks.org/learn-reactjs/?ref=outindfooter) ReactJS (https://www.geeksforgeeks.org/nextjs/?ref=outindfooter) NextJS (https://www.geeksforgeeks.org/bootstrap/?ref=outindfooter) Bootstrap (https://www.geeksforgeeks.org/web-design/?ref=outindfooter) Web Design (https://www.geeksforgeeks.org/python-programming-language/?ref=outindfooter) Python Tutorial (https://www.geeksforgeeks.org/python-programming-examples/?ref=outindfooter) Python Programming Examples (https://www.geeksforgeeks.org/python-projects-beginner-to-advanced/?ref=outindfooter) Python Projects (https://www.geeksforgeeks.org/python-tkinter-tutorial/?ref=outindfooter) Python Tkinter (https://www.geeksforgeeks.org/python-web-scraping-tutorial/?ref=outindfooter) Web Scraping (https://www.geeksforgeeks.org/opencv-python-tutorial/?ref=outindfooter) OpenCV Tutorial (https://www.geeksforgeeks.org/python-interview-questions/?ref=outindfooter) Python Interview Question (https://www.geeksforgeeks.org/django-tutorial/?ref=outindfooter) Django Computer Science (https://www.geeksforgeeks.org/operating-systems/?ref=outindfooter) Operating Systems (https://www.geeksforgeeks.org/computer-network-tutorials/?ref=outindfooter) Computer Network (https://www.geeksforgeeks.org/dbms/?ref=outindfooter) Database Management System (https://www.geeksforgeeks.org/software-engineering/?ref=outindfooter) Software Engineering (https://www.geeksforgeeks.org/digital-electronics-logic-design-tutorials/?ref=outindfooter) Digital Logic Design (https://www.geeksforgeeks.org/engineering-mathematics-tutorials/?ref=outindfooter) Engineering Maths (https://www.geeksforgeeks.org/software-development/?ref=outindfooter) Software Development (https://www.geeksforgeeks.org/software-testing-tutorial/?ref=outindfooter) Software Testing (https://www.geeksforgeeks.org/devops-tutorial/?ref=outindfooter) DevOps (https://www.geeksforgeeks.org/git-tutorial/?ref=outindfooter) Git (https://www.geeksforgeeks.org/linux-tutorial/?ref=outindfooter) Linux (https://www.geeksforgeeks.org/aws-tutorial/?ref=outindfooter) AWS (https://www.geeksforgeeks.org/docker-tutorial/?ref=outindfooter) Docker (https://www.geeksforgeeks.org/kubernetes-tutorial/?ref=outindfooter) Kubernetes (https://www.geeksforgeeks.org/microsoft-azure/?ref=outindfooter) Azure (https://www.geeksforgeeks.org/google-cloud-platform-tutorial/?ref=outindfooter) GCP (https://www.geeksforgeeks.org/devops-roadmap/?ref=outindfooter) DevOps Roadmap (https://www.geeksforgeeks.org/system-design-tutorial/?ref=outindfooter) System Design (https://www.geeksforgeeks.org/what-is-high-level-design-learn-system-design/?ref=outindfooter) High Level Design (https://www.geeksforgeeks.org/what-is-low-level-design-or-lld-learn-system-design/?ref=outindfooter) Low Level Design (https://www.geeksforgeeks.org/unified-modeling-language-uml-introduction/?ref=outindfooter) UML Diagrams (https://www.geeksforgeeks.org/system-design-interview-guide/?ref=outindfooter) Interview Guide (https://www.geeksforgeeks.org/software-design-patterns/?ref=outindfooter) Design Patterns (https://www.geeksforgeeks.org/object-oriented-analysis-and-design/?ref=outindfooter) OOAD (https://www.geeksforgeeks.org/system-design-interview-bootcamp-guide/?ref=outindfooter) System Design Bootcamp (https://www.geeksforgeeks.org/most-commonly-asked-system-design-interview-problems-questions/?ref=outindfooter) Interview Questions (https://www.geeksforgeeks.org/technical-interview-preparation/?ref=outindfooter) Inteview Preparation (https://www.geeksforgeeks.org/competitive-programming-a-complete-guide/?ref=outindfooter) Competitive Programming (https://www.geeksforgeeks.org/top-algorithms-and-data-structures-for-competitive-programming/?ref=outindfooter) Top DS or Algo for CP (https://www.geeksforgeeks.org/company-wise-recruitment-process/?ref=outindfooter) Company-Wise Recruitment Process (https://www.geeksforgeeks.org/company-preparation/?ref=outindfooter) Company-Wise Preparation (https://www.geeksforgeeks.org/aptitude-questions-and-answers/?ref=outindfooter) Aptitude Preparation (https://www.geeksforgeeks.org/puzzles/?ref=outindfooter) Puzzles School Subjects (https://www.geeksforgeeks.org/maths/?ref=outindfooter) Mathematics (https://www.geeksforgeeks.org/physics/?ref=outindfooter) Physics (https://www.geeksforgeeks.org/chemistry/?ref=outindfooter) Chemistry (https://www.geeksforgeeks.org/biology/?ref=outindfooter) Biology (https://www.geeksforgeeks.org/social-science/?ref=outindfooter) Social Science (https://www.geeksforgeeks.org/english-grammar/?ref=outindfooter) English Grammar (https://www.geeksforgeeks.org/commerce/?ref=outindfooter) Commerce (https://www.geeksforgeeks.org/tag/world-general-knowledge/?ref=outindfooter) World GK (https://www.geeksforgeeks.org/videos/?ref=outindfooter) GeeksforGeeks Videos (https://www.geeksforgeeks.org/videos/category/sde-sheet/?ref=outindfooter) DSA (https://www.geeksforgeeks.org/videos/category/python/?ref=outindfooter) Python (https://www.geeksforgeeks.org/videos/category/java-w6y5f4/?ref=outindfooter) Java (https://www.geeksforgeeks.org/videos/category/c/?ref=outindfooter) C++ (https://www.geeksforgeeks.org/videos/category/web-development/?ref=outindfooter) Web Development (https://www.geeksforgeeks.org/videos/category/data-science/?ref=outindfooter) Data Science (https://www.geeksforgeeks.org/videos/category/cs-subjects/?ref=outindfooter) CS Subjects (https://www.geeksforgeeks.org/) @GeeksforGeeks, Sanchhaya Education Private Limited , (https://www.geeksforgeeks.org/copyright-information/) All rights reserved We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our (https://www.geeksforgeeks.org/cookie-policy/) Cookie Policy & (https://www.geeksforgeeks.org/privacy-policy/) Privacy Policy Got It ! (Lightbox) (https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&family=Source+Sans+3:wght@400;600&display=swap) Improvement Please go through our recently updated (https://write.geeksforgeeks.org/how-to-improve) Improvement Guidelines before submitting any improvements. This improvement is locked by another user right now. You can suggest the changes for now and it will be under 'My Suggestions' Tab on Write. You will be notified via email once the article is available for improvement. Thank you for your valuable feedback! Suggest changes Please go through our recently updated (https://write.geeksforgeeks.org/how-to-improve) Improvement Guidelines before submitting any improvements. Suggest Changes Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal. (geeksforgeeks-suggest-icon) Create Improvement Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all. (geeksforgeeks-improvement-icon) Suggest Changes min 4 words, max CharLimit:2000 (Write your suggestions here) Create Improvement What kind of Experience do you want to share? (https://write.geeksforgeeks.org/posts-new?cid=e8fc46fe-75e7-4a4b-be3c-0c862d655ed0) Interview Experiences (https://write.geeksforgeeks.org/posts-new?cid=82536bdb-84e6-4661-87c3-e77c3ac04ede) Admission Experiences (https://write.geeksforgeeks.org/posts-new?cid=5219b0b2-7671-40a0-9bda-503e28a61c31) Career Journeys (https://write.geeksforgeeks.org/posts-new?cid=22ae3354-15b6-4dd4-a5b4-5c7a105b8a8f) Work Experiences (https://write.geeksforgeeks.org/posts-new?cid=c5e1ac90-9490-440a-a5fa-6180c87ab8ae) Campus Experiences (https://write.geeksforgeeks.org/posts-new?cid=5ebb8fe9-b980-4891-af07-f2d62a9735f2) Competitive Exam Experiences (https://write.geeksforgeeks.org/pick-article?taxonomy=10261&page=1) Can't choose a topic to write? click here for suggested topics (https://write.geeksforgeeks.org/posts-new) Write and publish your own Article