How to copy move and delete files from command line - Linux Study Group

Group Info

Linux Study Group

Linux Study Group

Created by Joseph Wojcicki

Please join our group to share and discuss Linux

Share:
Joseph wojcicki

example:


itstudyguide@itstudyguide-VGN-NW270F:~$ cp filetocopy.txt ourfiles.txt


First file "filetocopy.txt" is and example file to copy

second file "ourfiles.txt" is an example of where I want to copy my files to.

Joseph wojcicki
Mv: Move command. Mv file.txt/files/marketing (moves the file.txt to the marketing folder.
Joseph wojcicki

wildcards are characters that stand for patterne


*stands for any number of characters

?stand for 1 character


MV *.txt (this command would move all text files.

Joseph wojcicki

rm: rm command is used to delete


example: rm file.txt


type list command ls to see that the file has been deleted.

You need to be a group member to post.