0% found this document useful (0 votes)
15 views8 pages

File Operations Commands

This document provides an overview of basic file operation commands for Linux and Windows, including syntax and examples for file creation, reading, writing, copying, moving/renaming, and deletion. Key commands include 'touch' and 'echo' for creation, 'cat' and 'type' for reading, 'cp' and 'copy' for copying, 'mv' and 'ren/move' for moving/renaming, and 'rm' and 'del' for deletion. Each command is illustrated with specific examples for clarity.

Uploaded by

arijit040504pal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views8 pages

File Operations Commands

This document provides an overview of basic file operation commands for Linux and Windows, including syntax and examples for file creation, reading, writing, copying, moving/renaming, and deletion. Key commands include 'touch' and 'echo' for creation, 'cat' and 'type' for reading, 'cp' and 'copy' for copying, 'mv' and 'ren/move' for moving/renaming, and 'rm' and 'del' for deletion. Each command is illustrated with specific examples for clarity.

Uploaded by

arijit040504pal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

File Operation Commands

Syntax and Examples


Introduction
• This presentation covers basic file operation
commands, their syntax, and examples.
File Creation: 'touch' (Linux) &
'echo' (Windows)
• Linux: touch filename
• Example: touch file.txt

• Windows: echo > filename


• Example: echo. > file.txt
File Reading: 'cat' (Linux) & 'type'
(Windows)
• Linux: cat filename
• Example: cat file.txt

• Windows: type filename


• Example: type file.txt
File Writing: 'echo' & '>' (Both)
• Linux & Windows: echo 'text' > filename
• Example: echo 'Hello' > file.txt
File Copy: 'cp' (Linux) & 'copy'
(Windows)
• Linux: cp source destination
• Example: cp file.txt backup.txt

• Windows: copy source destination


• Example: copy file.txt backup.txt
File Move/Rename: 'mv' (Linux) &
'ren'/'move' (Windows)
• Linux: mv oldname newname
• Example: mv file.txt renamed.txt

• Windows: ren oldname newname


• Example: ren file.txt renamed.txt
File Deletion: 'rm' (Linux) & 'del'
(Windows)
• Linux: rm filename
• Example: rm file.txt

• Windows: del filename


• Example: del file.txt

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy