0% found this document useful (0 votes)
27 views1 page

Linux File Management Commands Guide

The document provides a brief overview of command-line operations for copying, moving, and removing files and directories. It lists the options available for the 'cp', 'mv', and 'rm' commands, including attributes like archive, interactive, recursive, update, and verbose. These commands are essential for managing files and directories in a command-line interface.

Uploaded by

chaitanya jain
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views1 page

Linux File Management Commands Guide

The document provides a brief overview of command-line operations for copying, moving, and removing files and directories. It lists the options available for the 'cp', 'mv', and 'rm' commands, including attributes like archive, interactive, recursive, update, and verbose. These commands are essential for managing files and directories in a command-line interface.

Uploaded by

chaitanya jain
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

cp – to copy file

-a : archive : to copy file with all the attributes


-i : intercative : before copying ask the user for confirmation
-r : recursive : copies directories and their content. This or (-a) is
required when coping the directories.
-u : update : to copy file that are different that don’t exist or any
other newer files.
-v : verbose : display the messages while the copy is performed.

mv : to move or rename the directory of file, options available for


this are: -i , -r , -u , -v

rm : to remove the file or directory, options available are: - I, -f, -r, -v

WORKING WITH THE COMMANDS

You might also like